[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M782X1JG5NCP3N0Z9J3CV8XV":3,"skill-same:01M782X1JG5NCP3N0Z9J3CV8XV":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M782X1JG5NCP3N0Z9J3CV8XV","accelint-ts-documentation",null,"Audit and improve JavaScript\u002FTypeScript documentation including JSDoc comments (@param, @returns, @template, @example), comment markers (TODO, FIXME, HACK), and code comment quality. Use when asked to 'add JSDoc', 'document this function', 'audit documentation', 'fix comments', 'add TODO\u002FFIXME markers', or 'improve code documentation'.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_gohypergiant_agent-skills_accelint-ts-documentation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: accelint-ts-documentation\ndescription: Audit and improve JavaScript\u002FTypeScript documentation including JSDoc comments (@param, @returns, @template, @example), comment markers (TODO, FIXME, HACK), and code comment quality. Use when asked to 'add JSDoc', 'document this function', 'audit documentation', 'fix comments', 'add TODO\u002FFIXME markers', or 'improve code documentation'.\nlicense: Apache-2.0\nmetadata:\n  author: accelint\n  version: \"1.1.0\"\n---\n\n# Code Documentation Skill\n\nComprehensive skill for improving JavaScript\u002FTypeScript documentation, including JSDoc comments, comment markers, and general comment quality.\n\n## When to Activate This Skill\n\nUse this skill when the task involves:\n\n### JSDoc Documentation\n- Adding JSDoc comments to exported functions, types, interfaces, or classes\n- Validating JSDoc completeness (missing @param, @returns, @template tags)\n- Ensuring JSDoc @example tags use proper code fences\n- Documenting object parameters with destructuring using dot notation\n\n### Comment Quality\n- Identifying and categorizing comments using proper markers (TODO, FIXME, HACK, NOTE, PERF, REVIEW, DEBUG, REMARK)\n- Removing unnecessary comments (commented-out code, edit history, obvious statements)\n- Preserving important comments (markers, linter directives, business logic)\n- Improving comment placement (moving end-of-line comments above code)\n\n### Documentation Audits\n- Reviewing code for documentation completeness\n- Ensuring exported code has comprehensive documentation\n- Validating internal code has minimum required documentation\n\n## When NOT to Use This Skill\n\nDo not activate for:\n- General code quality issues (use accelint-ts-best-practices instead)\n- Performance optimization (use accelint-ts-performance instead)\n- Type safety improvements (use accelint-ts-best-practices instead)\n- Framework-specific documentation (React PropTypes, Vue props, etc.)\n\n## How to Use\n\n### 1. Load References Based on Task Type\n\n**For JSDoc additions\u002Fvalidation:**\n\n**MANDATORY**: Read [`jsdoc.md`](references\u002Fjsdoc.md) in full before implementing.\nCritical content: @example code fence syntax (failures common here), object parameter dot notation, @template requirements, edge cases.\n\n**Do NOT load** `comments.md` unless the task explicitly mentions comment markers (TODO, FIXME, etc.) or comment quality issues.\n\n**For comment quality audits:**\n\n**MANDATORY**: Read [`comments.md`](references\u002Fcomments.md) in full before implementing.\nCritical content: Comment marker standards, what to remove vs preserve, placement rules.\n\n**Do NOT load** `jsdoc.md` unless the task explicitly mentions JSDoc tags (@param, @returns, etc.) or function\u002Ftype documentation.\n\n**Do NOT load any references** when only answering questions (not implementing changes) or task is general code quality.\n\n### 2. Expert Judgment Framework\n\nApply this thinking framework before auditing:\n\n**Question 1: Who is the reader?**\n- API consumers: Lack implementation context → Document comprehensively\n- Team members: Have codebase context → Document non-self-evident behaviors only\n- Future you (6 months): Will forget subtle decisions → Document rationale\n\n**Question 2: Opacity vs Complexity?**\n- Opacity = Intent is hidden → Must document (e.g., cache.invalidate() - why? performance? correctness?)\n- Complexity = Implementation is intricate → Implementation comments, not JSDoc\n\n**Question 3: Maintenance cost trade-off?**\n- High churn code: Minimal docs (won't stay accurate)\n- Stable API: Comprehensive docs (will stay accurate)\n- Internal utilities: Brief docs (low reader count × low frequency = minimal ROI)\n\n#### Two-Tier Decision Rule\n\nAfter applying the thinking framework:\n\n**Is this exported (public API)?**\n→ YES: Comprehensive documentation REQUIRED\n- All @param, @returns, @template, @throws, @example\n- Even if \"obvious\" - consumers lack your context\n\n**Is this internal code?**\n→ Apply judgment: Document what's NOT self-evident from:\n1. Function name and type signature\n2. Parameter names and types\n3. Standard patterns in the codebase\n\n**Rule of thumb**: If a competent team member would ask \"why?\" or \"what's the edge case?\" - document it. If they'd say \"obvious\" - skip it.\n\n### 3. Evaluating Documentation Sufficiency\n\nUse this decision tree to determine if documentation is complete:\n\n**Step 1: Determine visibility tier**\n```\nIs it exported (public API)?\n  YES → Tier 1: Comprehensive documentation required\n  NO  → Tier 2: Judgment-based minimal documentation\n```\n\n**Step 2: Apply entity-specific requirements**\n\n**Tier 1 (Exported) - Always Required:**\n- Description (purpose, usage context, \"when to use\" for appropriate entities)\n- All @param with property documentation for objects\n- @returns (unless void)\n- @template with constraint explanations for generics\n- @throws with triggering conditions\n- At least one realistic @example\n\n**Tier 2 (Internal) - Judgment-Based:**\n- Brief description (one line acceptable)\n- @param for non-obvious parameters only\n- @returns if non-obvious\n- @template for generics\n- @example only if behavior is complex\n\n**Entity-Specific Additions:**\n- **Classes (Tier 1)**: Constructor docs, public method docs, instantiation example\n- **Types\u002FInterfaces (Tier 1)**: Property descriptions for all public properties\n- **Constants\u002FVariables**: Units\u002Fconstraints if applicable (e.g., \"milliseconds\", \"must be positive\")\n\n**Sufficiency Checklist:**\n\nBefore marking documentation as \"sufficient\", verify:\n- [ ] All exported items have comprehensive documentation\n- [ ] All @param tags describe what the parameter does (not just type info)\n- [ ] All @returns tags describe what is returned in different scenarios\n- [ ] All @example tags use proper code fences with language identifier\n- [ ] No @returns on void functions\n- [ ] Generic functions have @template for each type parameter\n- [ ] Object parameters use dot notation for property documentation\n- [ ] Descriptions focus on WHAT\u002FWHY, not HOW\n\n### 4. When References Are Insufficient\n\nIf you encounter scenarios not covered in references or standard patterns:\n\n**Fallback strategy:**\n1. Apply the two-tier rule (export vs internal) as your foundation\n2. Prioritize clarity over completeness - better to document what you know than guess syntax\n3. Use standard JSDoc conventions from TypeScript\u002FJSDoc official documentation\n4. Document your uncertainty with a NOTE marker: `\u002F\u002F NOTE: JSDoc syntax may need review for [specific case]`\n5. If truly ambiguous, ask the user for clarification rather than making assumptions\n\n**Common uncovered scenarios:**\n- Exotic TypeScript features (mapped types, conditional types, template literal types)\n- Framework-specific patterns (React hooks with generics, Vue composables)\n- Complex callback signatures with multiple overloads\n\nFor these, default to clear descriptions in natural language rather than incomplete JSDoc tags.\n\n### 4. Use the Report Template (For Explicit Audit Requests)\n\nWhen users explicitly request a documentation audit or invoke the skill directly (`\u002Faccelint-ts-documentation \u003Cpath>`), use the standardized report format:\n\n**Template:** [`assets\u002Foutput-report-template.md`](assets\u002Foutput-report-template.md)\n\nThe audit report format provides:\n- Numbered findings with clear before\u002Fafter examples\n- Categorization (Missing, Incomplete, Incorrect Syntax, Quality, Internal)\n- References to detailed guidance (jsdoc.md, comments.md)\n- Summary table for tracking all issues\n\n**When to use the audit template:**\n- Skill invoked directly via `\u002Faccelint-ts-documentation \u003Cpath>`\n- User explicitly requests \"documentation audit\" or \"audit documentation\"\n- User asks to \"review all documentation\" across file(s)\n\n**When NOT to use the audit template:**\n- User asks to \"add JSDoc to this function\" (direct implementation)\n- User asks \"what's wrong with this comment?\" (answer the question)\n- User requests specific fixes (apply fixes directly without formal report)\n\n## Documentation Audit Anti-Patterns\n\nWhen performing documentation audits, avoid these common mistakes:\n\n### ❌ Incorrect: Over-documenting internal code\n\n```typescript\n\u002F\u002F Internal utility with verbose documentation\n\u002F**\n * Internal helper function that validates input\n * @internal\n * @param x - The input value\n * @returns True if valid, false otherwise\n * @example\n * ```typescript\n * if (isValid(data)) { ... }\n * ```\n *\u002F\nfunction isValid(x: unknown): boolean {\n  return x != null;\n}\n```\n\nWhy this is wrong: Internal docs rot faster than public API docs because they're adjacent to frequently-changed implementation. Team members can read the actual implementation faster than reading outdated documentation that creates confusion. Reserve comprehensive docs for stable exported APIs where consumers cannot access implementation.\n\n### ✅ Correct: Minimal internal docs, comprehensive public API docs\n\n```typescript\n\u002F\u002F Internal utility - minimal documentation\n\u002F** Checks if value is not null\u002Fundefined *\u002F\nfunction isValid(x: unknown): boolean {\n  return x != null;\n}\n\n\u002F\u002F Public API - comprehensive documentation even if \"obvious\"\n\u002F**\n * Validates user input data\n * @param data - User input to validate\n * @returns True if data is defined and not null\n * @example\n * ```typescript\n * if (validateInput(userData)) {\n *   processData(userData);\n * }\n * ```\n *\u002F\nexport function validateInput(data: unknown): boolean {\n  return data != null;\n}\n```\n\n### ❌ Incorrect: Documenting HOW instead of WHAT\u002FWHY\n\n```typescript\n\u002F\u002F JSDoc describes implementation details\n\u002F**\n * Loops through array using reduce to accumulate values into a sum\n *\u002F\nfunction sum(numbers: number[]): number {\n  return numbers.reduce((a, b) => a + b, 0);\n}\n```\n\nWhy this is wrong: JSDoc appears in IDE autocomplete for API consumers who don't have access to implementation. Explaining HOW in JSDoc creates confusion (\"why am I seeing implementation details in my autocomplete?\") and increases refactoring surface area - every implementation change requires doc updates, leading to drift.\n\n### ✅ Correct: Describe purpose and behavior, not implementation\n\n```typescript\n\u002F**\n * Calculates the sum of all numbers in the array\n * @param numbers - Array of numbers to sum\n * @returns The total sum, or 0 for empty array\n *\u002F\nfunction sum(numbers: number[]): number {\n  return numbers.reduce((a, b) => a + b, 0);\n}\n```\n\n### ❌ Incorrect: Using vague comment markers\n\n```typescript\n\u002F\u002F Not actionable\n\u002F\u002F TODO: fix this\n\u002F\u002F TODO: improve performance\n```\n\nWhy this is wrong: \"TODO: fix this\" creates diffusion of responsibility. After months pass, nobody knows if it's still relevant, who should fix it, or what \"this\" refers to. Vague markers accumulate as noise that reduces trust in ALL markers, making developers ignore even critical ones.\n\n### ✅ Correct: Specific markers with ownership and context\n\n```typescript\n\u002F\u002F TODO(username): Replace with binary search for O(log n) lookup\n\u002F\u002F FIXME(username): Throws error on empty array, add guard clause\n```\n\n## Documentation Quality Example\n\n### Excellent Public API Documentation\n\n```typescript\n\u002F**\n * Fetches user profile data from the authentication service\n *\n * Automatically retries up to 3 times on network failures with exponential\n * backoff. Throws if user is not authenticated or profile doesn't exist.\n *\n * @param userId - Unique identifier for the user profile to fetch\n * @param options - Configuration for fetch behavior\n * @param options.includeMetadata - Include account metadata (creation date, last login)\n * @param options.timeout - Request timeout in milliseconds (default: 5000)\n * @returns User profile with email, name, and optional metadata\n * @throws {AuthenticationError} When user session is expired or invalid\n * @throws {NotFoundError} When user profile doesn't exist\n * @throws {NetworkError} When all retry attempts are exhausted\n *\n * @example\n * ```typescript\n * \u002F\u002F Basic usage\n * const profile = await fetchUserProfile('user-123');\n * console.log(profile.email);\n *\n * \u002F\u002F With metadata and custom timeout\n * const profile = await fetchUserProfile('user-123', {\n *   includeMetadata: true,\n *   timeout: 10000\n * });\n * ```\n *\u002F\nexport async function fetchUserProfile(\n  userId: string,\n  options?: { includeMetadata?: boolean; timeout?: number }\n): Promise\u003CUserProfile> {\n  \u002F\u002F implementation\n}\n```\n\n**What makes this excellent:**\n- Describes hidden behaviors (retry logic with exponential backoff)\n- Documents object parameters with dot notation (options.*)\n- @throws lists all possible errors with triggering conditions\n- @example shows both basic and advanced usage patterns\n- Mentions defaults and constraints (timeout default: 5000)\n- Focuses on WHAT\u002FWHY (user needs), not HOW (implementation details)\n\n## Conflict Resolution Principles\n\nWhen judgment calls conflict, apply these priorities:\n\n1. **Consistency > Perfection**: Follow existing codebase patterns\n2. **Consumer > Maintainer**: Public API docs serve users without your context - be comprehensive\n3. **Intent > Implementation**: Document WHAT\u002FWHY, not HOW\n4. **Stable > Churning**: Comprehensive docs for stable code, minimal for high-churn code\n5. **Future clarity test**: \"Would this help me in 6 months?\" If no, remove it\n\n## Edge Cases Require Reference Loading\n\nComplex scenarios (deprecated APIs, overloaded functions, generic utility types, callback parameters, builder patterns, event emitters) require detailed syntax guidance. When encountering these:\n\n**Load jsdoc.md reference** - Contains comprehensive examples for all edge cases with correct syntax patterns.\n\nKey principle: Edge cases still follow the two-tier rule (export vs internal), but syntax details matter more. Don't guess - load the reference.\n","# Code Documentation Skill\n\nComprehensive skill for improving JavaScript\u002FTypeScript documentation, including JSDoc comments, comment markers, and general comment quality.\n\n## When to Activate This Skill\n\nUse this skill when the task involves:\n\n### JSDoc Documentation\n- Adding JSDoc comments to exported functions, types, interfaces, or classes\n- Validating JSDoc completeness (missing @param, @returns, @template tags)\n- Ensuring JSDoc @example tags use proper code fences\n- Documenting object parameters with destructuring using dot notation\n\n### Comment Quality\n- Identifying and categorizing comments using proper markers (TODO, FIXME, HACK, NOTE, PERF, REVIEW, DEBUG, REMARK)\n- Removing unnecessary comments (commented-out code, edit history, obvious statements)\n- Preserving important comments (markers, linter directives, business logic)\n- Improving comment placement (moving end-of-line comments above code)\n\n### Documentation Audits\n- Reviewing code for documentation completeness\n- Ensuring exported code has comprehensive documentation\n- Validating internal code has minimum required documentation\n\n## When NOT to Use This Skill\n\nDo not activate for:\n- General code quality issues (use accelint-ts-best-practices instead)\n- Performance optimization (use accelint-ts-performance instead)\n- Type safety improvements (use accelint-ts-best-practices instead)\n- Framework-specific documentation (React PropTypes, Vue props, etc.)\n\n## How to Use\n\n### 1. Load References Based on Task Type\n\n**For JSDoc additions\u002Fvalidation:**\n\n**MANDATORY**: Read [`jsdoc.md`](references\u002Fjsdoc.md) in full before implementing.\nCritical content: @example code fence syntax (failures common here), object parameter dot notation, @template requirements, edge cases.\n\n**Do NOT load** `comments.md` unless the task explicitly mentions comment markers (TODO, FIXME, etc.) or comment quality issues.\n\n**For comment quality audits:**\n\n**MANDATORY**: Read [`comments.md`](references\u002Fcomments.md) in full before implementing.\nCritical content: Comment marker standards, what to remove vs preserve, placement rules.\n\n**Do NOT load** `jsdoc.md` unless the task explicitly mentions JSDoc tags (@param, @returns, etc.) or function\u002Ftype documentation.\n\n**Do NOT load any references** when only answering questions (not implementing changes) or task is general code quality.\n\n### 2. Expert Judgment Framework\n\nApply this thinking framework before auditing:\n\n**Question 1: Who is the reader?**\n- API consumers: Lack implementation context → Document comprehensively\n- Team members: Have codebase context → Document non-self-evident behaviors only\n- Future you (6 months): Will forget subtle decisions → Document rationale\n\n**Question 2: Opacity vs Complexity?**\n- Opacity = Intent is hidden → Must document (e.g., cache.invalidate() - why? performance? correctness?)\n- Complexity = Implementation is intricate → Implementation comments, not JSDoc\n\n**Question 3: Maintenance cost trade-off?**\n- High churn code: Minimal docs (won't stay accurate)\n- Stable API: Comprehensive docs (will stay accurate)\n- Internal utilities: Brief docs (low reader count × low frequency = minimal ROI)\n\n#### Two-Tier Decision Rule\n\nAfter applying the thinking framework:\n\n**Is this exported (public API)?**\n→ YES: Comprehensive documentation REQUIRED\n- All @param, @returns, @template, @throws, @example\n- Even if \"obvious\" - consumers lack your context\n\n**Is this internal code?**\n→ Apply judgment: Document what's NOT self-evident from:\n1. Function name and type signature\n2. Parameter names and types\n3. Standard patterns in the codebase\n\n**Rule of thumb**: If a competent team member would ask \"why?\" or \"what's the edge case?\" - document it. If they'd say \"obvious\" - skip it.\n\n### 3. Evaluating Documentation Sufficiency\n\nUse this decision tree to determine if documentation is complete:\n\n**Step 1: Determine visibility tier**\n```\nIs it exported (public API)?\n  YES → Tier 1: Comprehensive documentation required\n  NO  → Tier 2: Judgment-based minimal documentation\n```\n\n**Step 2: Apply entity-specific requirements**\n\n**Tier 1 (Exported) - Always Required:**\n- Description (purpose, usage context, \"when to use\" for appropriate entities)\n- All @param with property documentation for objects\n- @returns (unless void)\n- @template with constraint explanations for generics\n- @throws with triggering conditions\n- At least one realistic @example\n\n**Tier 2 (Internal) - Judgment-Based:**\n- Brief description (one line acceptable)\n- @param for non-obvious parameters only\n- @returns if non-obvious\n- @template for generics\n- @example only if behavior is complex\n\n**Entity-Specific Additions:**\n- **Classes (Tier 1)**: Constructor docs, public method docs, instantiation example\n- **Types\u002FInterfaces (Tier 1)**: Property descriptions for all public properties\n- **Constants\u002FVariables**: Units\u002Fconstraints if applicable (e.g., \"milliseconds\", \"must be positive\")\n\n**Sufficiency Checklist:**\n\nBefore marking documentation as \"sufficient\", verify:\n- [ ] All exported items have comprehensive documentation\n- [ ] All @param tags describe what the parameter does (not just type info)\n- [ ] All @returns tags describe what is returned in different scenarios\n- [ ] All @example tags use proper code fences with language identifier\n- [ ] No @returns on void functions\n- [ ] Generic functions have @template for each type parameter\n- [ ] Object parameters use dot notation for property documentation\n- [ ] Descriptions focus on WHAT\u002FWHY, not HOW\n\n### 4. When References Are Insufficient\n\nIf you encounter scenarios not covered in references or standard patterns:\n\n**Fallback strategy:**\n1. Apply the two-tier rule (export vs internal) as your foundation\n2. Prioritize clarity over completeness - better to document what you know than guess syntax\n3. Use standard JSDoc conventions from TypeScript\u002FJSDoc official documentation\n4. Document your uncertainty with a NOTE marker: `\u002F\u002F NOTE: JSDoc syntax may need review for [specific case]`\n5. If truly ambiguous, ask the user for clarification rather than making assumptions\n\n**Common uncovered scenarios:**\n- Exotic TypeScript features (mapped types, conditional types, template literal types)\n- Framework-specific patterns (React hooks with generics, Vue composables)\n- Complex callback signatures with multiple overloads\n\nFor these, default to clear descriptions in natural language rather than incomplete JSDoc tags.\n\n### 4. Use the Report Template (For Explicit Audit Requests)\n\nWhen users explicitly request a documentation audit or invoke the skill directly (`\u002Faccelint-ts-documentation \u003Cpath>`), use the standardized report format:\n\n**Template:** [`assets\u002Foutput-report-template.md`](assets\u002Foutput-report-template.md)\n\nThe audit report format provides:\n- Numbered findings with clear before\u002Fafter examples\n- Categorization (Missing, Incomplete, Incorrect Syntax, Quality, Internal)\n- References to detailed guidance (jsdoc.md, comments.md)\n- Summary table for tracking all issues\n\n**When to use the audit template:**\n- Skill invoked directly via `\u002Faccelint-ts-documentation \u003Cpath>`\n- User explicitly requests \"documentation audit\" or \"audit documentation\"\n- User asks to \"review all documentation\" across file(s)\n\n**When NOT to use the audit template:**\n- User asks to \"add JSDoc to this function\" (direct implementation)\n- User asks \"what's wrong with this comment?\" (answer the question)\n- User requests specific fixes (apply fixes directly without formal report)\n\n## Documentation Audit Anti-Patterns\n\nWhen performing documentation audits, avoid these common mistakes:\n\n### ❌ Incorrect: Over-documenting internal code\n\n```typescript\n\u002F\u002F Internal utility with verbose documentation\n\u002F**\n * Internal helper function that validates input\n * @internal\n * @param x - The input value\n * @returns True if valid, false otherwise\n * @example\n * ```typescript\n * if (isValid(data)) { ... }\n * ```\n *\u002F\nfunction isValid(x: unknown): boolean {\n  return x != null;\n}\n```\n\nWhy this is wrong: Internal docs rot faster than public API docs because they're adjacent to frequently-changed implementation. Team members can read the actual implementation faster than reading outdated documentation that creates confusion. Reserve comprehensive docs for stable exported APIs where consumers cannot access implementation.\n\n### ✅ Correct: Minimal internal docs, comprehensive public API docs\n\n```typescript\n\u002F\u002F Internal utility - minimal documentation\n\u002F** Checks if value is not null\u002Fundefined *\u002F\nfunction isValid(x: unknown): boolean {\n  return x != null;\n}\n\n\u002F\u002F Public API - comprehensive documentation even if \"obvious\"\n\u002F**\n * Validates user input data\n * @param data - User input to validate\n * @returns True if data is defined and not null\n * @example\n * ```typescript\n * if (validateInput(userData)) {\n *   processData(userData);\n * }\n * ```\n *\u002F\nexport function validateInput(data: unknown): boolean {\n  return data != null;\n}\n```\n\n### ❌ Incorrect: Documenting HOW instead of WHAT\u002FWHY\n\n```typescript\n\u002F\u002F JSDoc describes implementation details\n\u002F**\n * Loops through array using reduce to accumulate values into a sum\n *\u002F\nfunction sum(numbers: number[]): number {\n  return numbers.reduce((a, b) => a + b, 0);\n}\n```\n\nWhy this is wrong: JSDoc appears in IDE autocomplete for API consumers who don't have access to implementation. Explaining HOW in JSDoc creates confusion (\"why am I seeing implementation details in my autocomplete?\") and increases refactoring surface area - every implementation change requires doc updates, leading to drift.\n\n### ✅ Correct: Describe purpose and behavior, not implementation\n\n```typescript\n\u002F**\n * Calculates the sum of all numbers in the array\n * @param numbers - Array of numbers to sum\n * @returns The total sum, or 0 for empty array\n *\u002F\nfunction sum(numbers: number[]): number {\n  return numbers.reduce((a, b) => a + b, 0);\n}\n```\n\n### ❌ Incorrect: Using vague comment markers\n\n```typescript\n\u002F\u002F Not actionable\n\u002F\u002F TODO: fix this\n\u002F\u002F TODO: improve performance\n```\n\nWhy this is wrong: \"TODO: fix this\" creates diffusion of responsibility. After months pass, nobody knows if it's still relevant, who should fix it, or what \"this\" refers to. Vague markers accumulate as noise that reduces trust in ALL markers, making developers ignore even critical ones.\n\n### ✅ Correct: Specific markers with ownership and context\n\n```typescript\n\u002F\u002F TODO(username): Replace with binary search for O(log n) lookup\n\u002F\u002F FIXME(username): Throws error on empty array, add guard clause\n```\n\n## Documentation Quality Example\n\n### Excellent Public API Documentation\n\n```typescript\n\u002F**\n * Fetches user profile data from the authentication service\n *\n * Automatically retries up to 3 times on network failures with exponential\n * backoff. Throws if user is not authenticated or profile doesn't exist.\n *\n * @param userId - Unique identifier for the user profile to fetch\n * @param options - Configuration for fetch behavior\n * @param options.includeMetadata - Include account metadata (creation date, last login)\n * @param options.timeout - Request timeout in milliseconds (default: 5000)\n * @returns User profile with email, name, and optional metadata\n * @throws {AuthenticationError} When user session is expired or invalid\n * @throws {NotFoundError} When user profile doesn't exist\n * @throws {NetworkError} When all retry attempts are exhausted\n *\n * @example\n * ```typescript\n * \u002F\u002F Basic usage\n * const profile = await fetchUserProfile('user-123');\n * console.log(profile.email);\n *\n * \u002F\u002F With metadata and custom timeout\n * const profile = await fetchUserProfile('user-123', {\n *   includeMetadata: true,\n *   timeout: 10000\n * });\n * ```\n *\u002F\nexport async function fetchUserProfile(\n  userId: string,\n  options?: { includeMetadata?: boolean; timeout?: number }\n): Promise\u003CUserProfile> {\n  \u002F\u002F implementation\n}\n```\n\n**What makes this excellent:**\n- Describes hidden behaviors (retry logic with exponential backoff)\n- Documents object parameters with dot notation (options.*)\n- @throws lists all possible errors with triggering conditions\n- @example shows both basic and advanced usage patterns\n- Mentions defaults and constraints (timeout default: 5000)\n- Focuses on WHAT\u002FWHY (user needs), not HOW (implementation details)\n\n## Conflict Resolution Principles\n\nWhen judgment calls conflict, apply these priorities:\n\n1. **Consistency > Perfection**: Follow existing codebase patterns\n2. **Consumer > Maintainer**: Public API docs serve users without your context - be comprehensive\n3. **Intent > Implementation**: Document WHAT\u002FWHY, not HOW\n4. **Stable > Churning**: Comprehensive docs for stable code, minimal for high-churn code\n5. **Future clarity test**: \"Would this help me in 6 months?\" If no, remove it\n\n## Edge Cases Require Reference Loading\n\nComplex scenarios (deprecated APIs, overloaded functions, generic utility types, callback parameters, builder patterns, event emitters) require detailed syntax guidance. When encountering these:\n\n**Load jsdoc.md reference** - Contains comprehensive examples for all edge cases with correct syntax patterns.\n\nKey principle: Edge cases still follow the two-tier rule (export vs internal), but syntax details matter more. Don't guess - load the reference.\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26},"accelint","1.1.0","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fskills_sh\u002Fs\u002Fskills-sh_gohypergiant_agent-skills_accelint-ts-documentation",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill accelint-ts-documentation",{"tool":42,"command":43},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill accelint-ts-documentation",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill accelint-ts-documentation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_gohypergiant_agent-skills_accelint-ts-documentation\u002FSKILL.md",true,[],[51,59,66,73,80,87],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]