Install the skill above, then run this in your AI tool:
/coding-standards <your description>
About
Baseline coding conventions applicable across projects.
Source
What gets added to your project
Preview every file this package writes on install before you run the command above.
Summary
Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.
Skill instructions
Coding Standards & Best Practices
Baseline coding conventions applicable across projects.
This skill is the shared floor, not the detailed framework playbook.
Use frontend-patterns for React, state, forms, rendering, and UI architecture.
Use backend-patterns or api-design for repository/service layers, endpoint design, validation, and server-specific concerns.
Use rules/common/coding-style.md when you need the shortest reusable rule layer instead of a full skill walkthrough.
When to Activate
Starting a new project or module
Reviewing code for quality and maintainability
Refactoring existing code to follow conventions
Enforcing naming, formatting, or structural consistency
Setting up linting, formatting, or type-checking rules
Onboarding new contributors to coding conventions
Scope Boundaries
Activate this skill for:
descriptive naming
immutability defaults
readability, KISS, DRY, and YAGNI enforcement
error-handling expectations and code-smell review
Do not use this skill as the primary source for:
React composition, hooks, or rendering patterns
backend architecture, API design, or database layering
domain-specific framework guidance when a narrower ECC skill already exists
// PASS: GOOD: Proper state updatesconst [count, setCount] = useState(0)
// Functional update for state based on previous statesetCount(prev => prev + 1)
// FAIL: BAD: Direct state referencesetCount(count + 1) // Can be stale in async scenarios
GET /api/markets # List all markets
GET /api/markets/:id # Get specific market
POST /api/markets # Create new market
PUT /api/markets/:id # Update market (full)
PATCH /api/markets/:id # Update market (partial)
DELETE /api/markets/:id # Delete market
# Query parameters for filtering
GET /api/markets?status=active&limit=10&offset=0
components/Button.tsx # PascalCase for components
hooks/useAuth.ts # camelCase with 'use' prefix
lib/formatDate.ts # camelCase for utilities
types/market.types.ts # camelCase with .types suffix
Comments & Documentation
When to Comment
typescript
// PASS: GOOD: Explain WHY, not WHAT// Use exponential backoff to avoid overwhelming the API during outagesconst delay = Math.min(1000 * Math.pow(2, retryCount), 30000)
// Deliberately using mutation here for performance with large arrays
items.push(newItem)
// FAIL: BAD: Stating the obvious// Increment counter by 1
count++
// Set name to user's name
name = user.name
JSDoc for Public APIs
typescript
/**
* Searches markets using semantic similarity.
*
* @paramquery - Natural language search query
* @paramlimit - Maximum number of results (default: 10)
* @returns Array of markets sorted by similarity score
* @throws {Error} If OpenAI API fails or Redis unavailable
*
* @example
* ```typescript
* const results = await searchMarkets('election', 5)
* console.log(results[0].name) // "Trump vs Biden"
* ```
*/exportasyncfunctionsearchMarkets(query: string,
limit: number = 10): Promise<Market[]> {
// Implementation
}
Add this badge to a GitHub README so readers can open the package page and install the same version.
[](https://www.aipm-registry.com/skills/affaan-m/coding-standards/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)
This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.
AI assistant context
What this skill is for
@affaan-m/coding-standards@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns. Use when reviewing code quality or naming with no framewor...
Vite build tool patterns including config, plugins, HMR, env variables, proxy setup, SSR, library mode, dependency pre-bundling, and build optimization. Activate when working with vite.config.ts, Vite plugins, or Vite-based projects.
Translate visa document images (bank deposit, employment, income, and retirement certificates; HEIC, PNG, or JPG) into English via OCR and produce a bilingual PDF pairing the original image with a formatted certified-style translation. U...
Ingest, index, search, edit, and monitor video and audio with the VideoDB Python SDK — upload from files, URLs, or RTSP feeds, build spoken and scene indexes with timestamped search and playable clips, transcode and reframe, do timeline...
Run aipm add @affaan-m/coding-standards@1.0.0 in a project that has AIPM initialized.
Supported tools
@affaan-m/coding-standards@1.0.0 supports All tools.
Before installing
AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.