[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CHY83FXQF7SX44P1M4TJFH":3,"skill-same:01M6CHY83FXQF7SX44P1M4TJFH":161},{"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":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6CHY83FXQF7SX44P1M4TJFH","optimize-cc-md",null,"Interactively helps users optimize their CLAUDE.md files. Use when user asks to \"optimize my CLAUDE.md\", \"my CLAUDE.md is too long\", \"improve organization\", or \"split my CLAUDE.md\". Runs validation, explains issues conversationally, and helps create @import files to reduce size and improve structure.","pdugan20\u002Fclaudelint","pdugan20","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1837100?v=4","01M6CHXZYG5NW9VHCYCCVFY54W","Patrick Dugan","01M6CHY02TC6DRKYRK9H3W9C96",15,"MIT","https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Fskills\u002Foptimize-cc-md\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"cc","optimize","optimize cc md","create","validation","issues","Bash","improve","grep","read","write","edit","user","use","files","2026-11-10 10:12:30",false,"---\nname: optimize-cc-md\ndescription: Interactively helps users optimize their CLAUDE.md files. Use when user asks to \"optimize my CLAUDE.md\", \"my CLAUDE.md is too long\", \"improve organization\", or \"split my CLAUDE.md\". Runs validation, explains issues conversationally, and helps create @import files to reduce size and improve structure.\nversion: 1.0.0\nargument-hint: \"[path]\"\nallowed-tools:\n  - Bash(claudelint:*)\n  - Read\n  - Edit\n  - Write\n  - Grep\n---\n\n# Optimize CLAUDE.md\n\nAn interactive skill that helps you optimize your CLAUDE.md file through a 3-phase workflow: validate, assess quality, then make guided improvements. Each phase builds on the previous one so the user understands what's wrong, why it matters, and what to do about it.\n\n## Usage\n\nInvoke with `\u002Foptimize-cc-md` or say \"optimize my CLAUDE.md\". Optionally pass a path: `\u002Foptimize-cc-md CLAUDE.md`. The skill guides you through three phases: validation, quality assessment, and guided improvement.\n\nIf a specific path is provided, optimize that file: $ARGUMENTS\n\n## Workflow Overview\n\n```text\nPhase A: Validate         Phase B: Assess Quality     Phase C: Guided Improvement\n─────────────────         ───────────────────────     ───────────────────────────\nRun claudelint         →  Explain issues plainly   →  Ask user what to fix\nRead CLAUDE.md         →  Check quality criteria   →  Make surgical changes\nCollect violations     →  Identify opportunities   →  Create @import files\n                                                   →  Verify results\n```\n\n## Phase A: Validate\n\nRun automated validation and read the file to understand its current state.\n\n### Step 1: Run Validation\n\nUse the Bash tool to run claudelint validation with verbose output:\n\n```bash\nnpx claude-code-lint validate-claude-md --verbose\n```\n\nThis identifies all CLAUDE.md issues including:\n\n- File size violations (30KB warning, 50KB error)\n- Missing or circular @imports\n- Organization problems\n- Invalid frontmatter in .claude\u002Frules\u002F files\n- Glob pattern issues\n\n### Step 2: Read the CLAUDE.md File\n\nUse the Read tool to examine the user's CLAUDE.md:\n\n```text\nRead(file_path: \"CLAUDE.md\")\n```\n\nUnderstand the current structure, content, and patterns. Note:\n\n- Total file size and number of sections\n- Which sections are project-specific vs generic\n- Existing @import structure (if any)\n- Content that could be scoped with globs\n\n## Phase B: Assess Quality\n\nGo beyond automated checks. Explain issues conversationally and evaluate quality using criteria that linting can't catch.\n\n### Step 3: Explain Issues Conversationally\n\nTranslate validation errors into plain language:\n\n- \"Your CLAUDE.md is 45KB - that's over the 30KB warning threshold\"\n- \"You have generic advice that could be removed\"\n- \"These sections could be split into @import files\"\n\nFocus on the \"why\" not just the \"what\". Help users understand the impact.\n\n### Step 4: Assess Against Quality Criteria\n\nWalk through the key quality dimensions from [quality criteria](.\u002Freferences\u002Fquality-criteria.md):\n\n- **Specificity**: Is every instruction project-specific? Flag generic advice (\"always write clean code\")\n- **Completeness**: Can a new developer build, test, and contribute?\n- **Clarity**: Are instructions directive (\"do X\") vs descriptive (\"X is important\")?\n- **Organization**: Is the most important info near the top? Are related items grouped?\n- **Maintenance**: Do commands and paths still work? Any stale content?\n\nPresent a brief assessment to the user:\n\n```text\n\"Your CLAUDE.md has 3 validation errors and some quality gaps:\n- 45KB (over 30KB threshold) - needs splitting\n- 12 generic statements that should be removed\n- Testing section is thorough but git workflow is missing\n- Good: all commands are current and paths are valid\"\n```\n\n### Step 5: Identify Improvement Opportunities\n\nFor each issue, determine the root cause and link to reference files:\n\n- **Size violations**: See [size optimization](.\u002Freferences\u002Fsize-optimization.md)\n- **Import issues**: See [import patterns](.\u002Freferences\u002Fimport-patterns.md)\n- **Organization**: See [organization guide](.\u002Freferences\u002Forganization-guide.md)\n- **Templates**: See [templates](.\u002Freferences\u002Ftemplates.md) for good CLAUDE.md examples\n\n## Phase C: Guided Improvement\n\nLet the user choose what to fix, then make the changes and verify results.\n\n### Step 6: Ask User What to Fix\n\nUse the AskUserQuestion tool to present prioritized options:\n\n```text\nWhat would you like me to fix first?\n\n1. Reduce file size (45KB → under 30KB)\n2. Fix circular import in git-workflow.md\n3. Split content into organized @imports\n4. Remove generic\u002Fobvious content\n```\n\nLet the user prioritize. Don't assume.\n\n### Step 7: Make the Changes\n\nUse the Edit tool for surgical changes to CLAUDE.md:\n\n```text\nEdit(\n  file_path: \"CLAUDE.md\",\n  old_string: \"existing content to replace\",\n  new_string: \"new content\"\n)\n```\n\nFor removing content:\n\n- Delete generic advice (\"always write clean code\")\n- Remove config duplication (if same rules in .claude\u002Fsettings.json)\n- Clean up obvious statements that add no value\n\n### Step 8: Create @Import Files (If Splitting Content)\n\nUse the Write tool to create new files in .claude\u002Frules\u002F:\n\n```text\nWrite(\n  file_path: \".claude\u002Frules\u002Fgit-workflow.md\",\n  content: \"---\\nglob: \\\"**\u002F*.{ts,js}\\\"\\n---\\n\\n# Git Workflow\\n\\n...\"\n)\n```\n\nThen update CLAUDE.md to import the file:\n\n```text\nEdit(\n  file_path: \"CLAUDE.md\",\n  old_string: \"# Git Workflow\\n\\nLong content here...\",\n  new_string: \"@import .claude\u002Frules\u002Fgit-workflow.md\"\n)\n```\n\n**Best practices for @imports:**\n\n- Use .claude\u002Frules\u002F for project-specific rules\n- Add frontmatter with glob patterns to scope rules\n- Keep import depth under 3 levels\n- Avoid circular imports\n\n### Step 9: Verify Results\n\nRun validation again to confirm fixes:\n\n```bash\nnpx claude-code-lint validate-claude-md --verbose\n```\n\nShow before\u002Fafter comparison:\n\n- \"Before: 45KB with 12 violations\"\n- \"After: 28KB with 0 violations\"\n- \"Changes made: Split 3 sections into @imports, removed 2 generic advice blocks\"\n\n## Common Fixes\n\nFor detailed fix strategies, see [common fixes reference](.\u002Freferences\u002Fcommon-fixes.md).\n\nQuick reference:\n\n- **Size violations**: Move content to @imports, remove generic advice. See [size optimization](.\u002Freferences\u002Fsize-optimization.md)\n- **Import issues**: Check paths, avoid circular imports, limit depth to 3. See [import patterns](.\u002Freferences\u002Fimport-patterns.md)\n- **Organization**: Group related sections, use .claude\u002Frules\u002F for scoped rules. See [organization guide](.\u002Freferences\u002Forganization-guide.md)\n\n## Examples\n\n### Example 1: Full 3-Phase Workflow (Size Reduction)\n\n**User says:** \"My CLAUDE.md is 45KB and I'm getting warnings. How do I reduce it?\"\n\n**Phase A** - Run validation and read the file:\n\n```bash\nnpx claude-code-lint validate-claude-md --verbose\n```\n\nOutput shows: \"Warning: CLAUDE.md is 45KB (threshold: 30KB)\". Read the file and note the largest sections: git workflow (12KB), testing standards (8KB), generic advice (~5KB scattered).\n\n**Phase B** - Assess quality and explain:\n\n\"Your file is 45KB - 15KB over the warning threshold. I found:\n\n- Large git workflow section (12KB) - good candidate for @import\n- Testing standards (8KB) - should move to .claude\u002Frules\u002F\n- Generic advice (~5KB) - can be removed entirely\n- Quality: commands are current, but 12 statements are generic rather than project-specific\"\n\n**Phase C** - Fix with user guidance:\n\nAsk user what to fix. User chooses: \"Split git workflow and remove generic advice.\"\n\n```text\nWrite(.claude\u002Frules\u002Fgit-workflow.md, content: git workflow section)\nEdit(CLAUDE.md, old: git workflow section, new: @import .claude\u002Frules\u002Fgit-workflow.md)\nEdit(CLAUDE.md, old: generic advice blocks, new: [removed])\n```\n\nRe-run validation: \"CLAUDE.md is now 28KB (under 30KB threshold).\"\n\n**Result:** File reduced from 45KB to 28KB by splitting largest section and removing bloat.\n\n### Example 2: Create Import Structure\n\n**User says:** \"My CLAUDE.md has everything in one file. Help me organize it better.\"\n\n**Phase A** - Validate and read. Find 5 distinct topics totaling 1,650 lines.\n\n**Phase B** - Assess: \"I see 5 distinct topics that can each become focused @import files. This will make your config more maintainable. All content is project-specific (good), but nothing is scoped by file type.\"\n\n**Phase C** - Suggest structure, create files with glob frontmatter, update CLAUDE.md:\n\n```text\n.claude\u002Frules\u002F\n├── git-workflow.md (glob: \"**\u002F*\")\n├── testing.md (glob: \"**\u002F*.test.ts\")\n├── typescript.md (glob: \"**\u002F*.{ts,tsx}\")\n├── api-conventions.md (glob: \"src\u002Fapi\u002F**\u002F*.ts\")\n└── style-guide.md (glob: \"src\u002F**\u002F*.ts\")\n```\n\nRe-run validation to confirm no circular imports or depth issues.\n\n**Result:** Well-organized config with 5 focused @import files, each scoped to relevant file types.\n\n### Example 3: Remove Generic Content\n\n**User says:** \"Is my CLAUDE.md too generic? It feels bloated.\"\n\n**Phase A** - Validate and read. Use Grep to find generic patterns (\"always\", \"best practice\", \"should\", \"never\"). Find 47 instances.\n\n**Phase B** - Assess: \"I found 47 generic statements that Claude already knows. These add ~5KB without project-specific value. Example - Generic: 'Always write clean code' vs Project-specific: 'Use PascalCase for React components, camelCase for hooks'\"\n\n**Phase C** - Show the user what will be removed, ask for confirmation, then edit. Re-run validation.\n\n**Result:** Focused config with only project-specific guidance. File size reduced by 5KB.\n\n## Troubleshooting\n\nFor solutions to common problems, see [troubleshooting guide](.\u002Freferences\u002Ftroubleshooting.md).\n\nCommon issues: CLI not found (install claude-code-lint), broken @import paths, size violations persisting after splits, circular imports.\n\n## Important Notes\n\n### When NOT to Use This Skill\n\n- **For initial CLAUDE.md creation**: Use the built-in `\u002Finit` command instead\n- **For general validation only**: Use `\u002Fvalidate-cc-md` for just checking\n- **When you know exactly what to change**: Make direct edits instead\n\n### Dependencies Required\n\nThis skill requires the claudelint npm package:\n\n```bash\nnpm install --save-dev claude-code-lint\n```\n\nThe skill checks for this dependency and will show installation instructions if missing.\n\n### Reference Files\n\nFor detailed strategies, see:\n\n- [size optimization](.\u002Freferences\u002Fsize-optimization.md) - How to reduce CLAUDE.md file size\n- [import patterns](.\u002Freferences\u002Fimport-patterns.md) - Best practices for organizing @imports\n- [organization guide](.\u002Freferences\u002Forganization-guide.md) - Structural organization principles\n- [common fixes](.\u002Freferences\u002Fcommon-fixes.md) - Quick reference for common issues and solutions\n- [troubleshooting](.\u002Freferences\u002Ftroubleshooting.md) - Solutions for common skill problems\n- [quality criteria](.\u002Freferences\u002Fquality-criteria.md) - Manual review checklist for CLAUDE.md quality\n- [templates](.\u002Freferences\u002Ftemplates.md) - Annotated examples of well-structured CLAUDE.md files\n- [file type taxonomy](.\u002Freferences\u002Ffile-type-taxonomy.md) - Complete Claude Code config ecosystem reference\n\nThese files are read on-demand when you need specific guidance.\n\n## See Also\n\n- [validate-cc-md](..\u002Fvalidate-cc-md\u002FSKILL.md) - Validate CLAUDE.md files\n- [validate-all](..\u002Fvalidate-all\u002FSKILL.md) - Run all validators\n","# Optimize CLAUDE.md\n\nAn interactive skill that helps you optimize your CLAUDE.md file through a 3-phase workflow: validate, assess quality, then make guided improvements. Each phase builds on the previous one so the user understands what's wrong, why it matters, and what to do about it.\n\n## Usage\n\nInvoke with `\u002Foptimize-cc-md` or say \"optimize my CLAUDE.md\". Optionally pass a path: `\u002Foptimize-cc-md CLAUDE.md`. The skill guides you through three phases: validation, quality assessment, and guided improvement.\n\nIf a specific path is provided, optimize that file: $ARGUMENTS\n\n## Workflow Overview\n\n```text\nPhase A: Validate         Phase B: Assess Quality     Phase C: Guided Improvement\n─────────────────         ───────────────────────     ───────────────────────────\nRun claudelint         →  Explain issues plainly   →  Ask user what to fix\nRead CLAUDE.md         →  Check quality criteria   →  Make surgical changes\nCollect violations     →  Identify opportunities   →  Create @import files\n                                                   →  Verify results\n```\n\n## Phase A: Validate\n\nRun automated validation and read the file to understand its current state.\n\n### Step 1: Run Validation\n\nUse the Bash tool to run claudelint validation with verbose output:\n\n```bash\nnpx claude-code-lint validate-claude-md --verbose\n```\n\nThis identifies all CLAUDE.md issues including:\n\n- File size violations (30KB warning, 50KB error)\n- Missing or circular @imports\n- Organization problems\n- Invalid frontmatter in .claude\u002Frules\u002F files\n- Glob pattern issues\n\n### Step 2: Read the CLAUDE.md File\n\nUse the Read tool to examine the user's CLAUDE.md:\n\n```text\nRead(file_path: \"CLAUDE.md\")\n```\n\nUnderstand the current structure, content, and patterns. Note:\n\n- Total file size and number of sections\n- Which sections are project-specific vs generic\n- Existing @import structure (if any)\n- Content that could be scoped with globs\n\n## Phase B: Assess Quality\n\nGo beyond automated checks. Explain issues conversationally and evaluate quality using criteria that linting can't catch.\n\n### Step 3: Explain Issues Conversationally\n\nTranslate validation errors into plain language:\n\n- \"Your CLAUDE.md is 45KB - that's over the 30KB warning threshold\"\n- \"You have generic advice that could be removed\"\n- \"These sections could be split into @import files\"\n\nFocus on the \"why\" not just the \"what\". Help users understand the impact.\n\n### Step 4: Assess Against Quality Criteria\n\nWalk through the key quality dimensions from [quality criteria](.\u002Freferences\u002Fquality-criteria.md):\n\n- **Specificity**: Is every instruction project-specific? Flag generic advice (\"always write clean code\")\n- **Completeness**: Can a new developer build, test, and contribute?\n- **Clarity**: Are instructions directive (\"do X\") vs descriptive (\"X is important\")?\n- **Organization**: Is the most important info near the top? Are related items grouped?\n- **Maintenance**: Do commands and paths still work? Any stale content?\n\nPresent a brief assessment to the user:\n\n```text\n\"Your CLAUDE.md has 3 validation errors and some quality gaps:\n- 45KB (over 30KB threshold) - needs splitting\n- 12 generic statements that should be removed\n- Testing section is thorough but git workflow is missing\n- Good: all commands are current and paths are valid\"\n```\n\n### Step 5: Identify Improvement Opportunities\n\nFor each issue, determine the root cause and link to reference files:\n\n- **Size violations**: See [size optimization](.\u002Freferences\u002Fsize-optimization.md)\n- **Import issues**: See [import patterns](.\u002Freferences\u002Fimport-patterns.md)\n- **Organization**: See [organization guide](.\u002Freferences\u002Forganization-guide.md)\n- **Templates**: See [templates](.\u002Freferences\u002Ftemplates.md) for good CLAUDE.md examples\n\n## Phase C: Guided Improvement\n\nLet the user choose what to fix, then make the changes and verify results.\n\n### Step 6: Ask User What to Fix\n\nUse the AskUserQuestion tool to present prioritized options:\n\n```text\nWhat would you like me to fix first?\n\n1. Reduce file size (45KB → under 30KB)\n2. Fix circular import in git-workflow.md\n3. Split content into organized @imports\n4. Remove generic\u002Fobvious content\n```\n\nLet the user prioritize. Don't assume.\n\n### Step 7: Make the Changes\n\nUse the Edit tool for surgical changes to CLAUDE.md:\n\n```text\nEdit(\n  file_path: \"CLAUDE.md\",\n  old_string: \"existing content to replace\",\n  new_string: \"new content\"\n)\n```\n\nFor removing content:\n\n- Delete generic advice (\"always write clean code\")\n- Remove config duplication (if same rules in .claude\u002Fsettings.json)\n- Clean up obvious statements that add no value\n\n### Step 8: Create @Import Files (If Splitting Content)\n\nUse the Write tool to create new files in .claude\u002Frules\u002F:\n\n```text\nWrite(\n  file_path: \".claude\u002Frules\u002Fgit-workflow.md\",\n  content: \"---\\nglob: \\\"**\u002F*.{ts,js}\\\"\\n---\\n\\n# Git Workflow\\n\\n...\"\n)\n```\n\nThen update CLAUDE.md to import the file:\n\n```text\nEdit(\n  file_path: \"CLAUDE.md\",\n  old_string: \"# Git Workflow\\n\\nLong content here...\",\n  new_string: \"@import .claude\u002Frules\u002Fgit-workflow.md\"\n)\n```\n\n**Best practices for @imports:**\n\n- Use .claude\u002Frules\u002F for project-specific rules\n- Add frontmatter with glob patterns to scope rules\n- Keep import depth under 3 levels\n- Avoid circular imports\n\n### Step 9: Verify Results\n\nRun validation again to confirm fixes:\n\n```bash\nnpx claude-code-lint validate-claude-md --verbose\n```\n\nShow before\u002Fafter comparison:\n\n- \"Before: 45KB with 12 violations\"\n- \"After: 28KB with 0 violations\"\n- \"Changes made: Split 3 sections into @imports, removed 2 generic advice blocks\"\n\n## Common Fixes\n\nFor detailed fix strategies, see [common fixes reference](.\u002Freferences\u002Fcommon-fixes.md).\n\nQuick reference:\n\n- **Size violations**: Move content to @imports, remove generic advice. See [size optimization](.\u002Freferences\u002Fsize-optimization.md)\n- **Import issues**: Check paths, avoid circular imports, limit depth to 3. See [import patterns](.\u002Freferences\u002Fimport-patterns.md)\n- **Organization**: Group related sections, use .claude\u002Frules\u002F for scoped rules. See [organization guide](.\u002Freferences\u002Forganization-guide.md)\n\n## Examples\n\n### Example 1: Full 3-Phase Workflow (Size Reduction)\n\n**User says:** \"My CLAUDE.md is 45KB and I'm getting warnings. How do I reduce it?\"\n\n**Phase A** - Run validation and read the file:\n\n```bash\nnpx claude-code-lint validate-claude-md --verbose\n```\n\nOutput shows: \"Warning: CLAUDE.md is 45KB (threshold: 30KB)\". Read the file and note the largest sections: git workflow (12KB), testing standards (8KB), generic advice (~5KB scattered).\n\n**Phase B** - Assess quality and explain:\n\n\"Your file is 45KB - 15KB over the warning threshold. I found:\n\n- Large git workflow section (12KB) - good candidate for @import\n- Testing standards (8KB) - should move to .claude\u002Frules\u002F\n- Generic advice (~5KB) - can be removed entirely\n- Quality: commands are current, but 12 statements are generic rather than project-specific\"\n\n**Phase C** - Fix with user guidance:\n\nAsk user what to fix. User chooses: \"Split git workflow and remove generic advice.\"\n\n```text\nWrite(.claude\u002Frules\u002Fgit-workflow.md, content: git workflow section)\nEdit(CLAUDE.md, old: git workflow section, new: @import .claude\u002Frules\u002Fgit-workflow.md)\nEdit(CLAUDE.md, old: generic advice blocks, new: [removed])\n```\n\nRe-run validation: \"CLAUDE.md is now 28KB (under 30KB threshold).\"\n\n**Result:** File reduced from 45KB to 28KB by splitting largest section and removing bloat.\n\n### Example 2: Create Import Structure\n\n**User says:** \"My CLAUDE.md has everything in one file. Help me organize it better.\"\n\n**Phase A** - Validate and read. Find 5 distinct topics totaling 1,650 lines.\n\n**Phase B** - Assess: \"I see 5 distinct topics that can each become focused @import files. This will make your config more maintainable. All content is project-specific (good), but nothing is scoped by file type.\"\n\n**Phase C** - Suggest structure, create files with glob frontmatter, update CLAUDE.md:\n\n```text\n.claude\u002Frules\u002F\n├── git-workflow.md (glob: \"**\u002F*\")\n├── testing.md (glob: \"**\u002F*.test.ts\")\n├── typescript.md (glob: \"**\u002F*.{ts,tsx}\")\n├── api-conventions.md (glob: \"src\u002Fapi\u002F**\u002F*.ts\")\n└── style-guide.md (glob: \"src\u002F**\u002F*.ts\")\n```\n\nRe-run validation to confirm no circular imports or depth issues.\n\n**Result:** Well-organized config with 5 focused @import files, each scoped to relevant file types.\n\n### Example 3: Remove Generic Content\n\n**User says:** \"Is my CLAUDE.md too generic? It feels bloated.\"\n\n**Phase A** - Validate and read. Use Grep to find generic patterns (\"always\", \"best practice\", \"should\", \"never\"). Find 47 instances.\n\n**Phase B** - Assess: \"I found 47 generic statements that Claude already knows. These add ~5KB without project-specific value. Example - Generic: 'Always write clean code' vs Project-specific: 'Use PascalCase for React components, camelCase for hooks'\"\n\n**Phase C** - Show the user what will be removed, ask for confirmation, then edit. Re-run validation.\n\n**Result:** Focused config with only project-specific guidance. File size reduced by 5KB.\n\n## Troubleshooting\n\nFor solutions to common problems, see [troubleshooting guide](.\u002Freferences\u002Ftroubleshooting.md).\n\nCommon issues: CLI not found (install claude-code-lint), broken @import paths, size violations persisting after splits, circular imports.\n\n## Important Notes\n\n### When NOT to Use This Skill\n\n- **For initial CLAUDE.md creation**: Use the built-in `\u002Finit` command instead\n- **For general validation only**: Use `\u002Fvalidate-cc-md` for just checking\n- **When you know exactly what to change**: Make direct edits instead\n\n### Dependencies Required\n\nThis skill requires the claudelint npm package:\n\n```bash\nnpm install --save-dev claude-code-lint\n```\n\nThe skill checks for this dependency and will show installation instructions if missing.\n\n### Reference Files\n\nFor detailed strategies, see:\n\n- [size optimization](.\u002Freferences\u002Fsize-optimization.md) - How to reduce CLAUDE.md file size\n- [import patterns](.\u002Freferences\u002Fimport-patterns.md) - Best practices for organizing @imports\n- [organization guide](.\u002Freferences\u002Forganization-guide.md) - Structural organization principles\n- [common fixes](.\u002Freferences\u002Fcommon-fixes.md) - Quick reference for common issues and solutions\n- [troubleshooting](.\u002Freferences\u002Ftroubleshooting.md) - Solutions for common skill problems\n- [quality criteria](.\u002Freferences\u002Fquality-criteria.md) - Manual review checklist for CLAUDE.md quality\n- [templates](.\u002Freferences\u002Ftemplates.md) - Annotated examples of well-structured CLAUDE.md files\n- [file type taxonomy](.\u002Freferences\u002Ffile-type-taxonomy.md) - Complete Claude Code config ecosystem reference\n\nThese files are read on-demand when you need specific guidance.\n\n## See Also\n\n- [validate-cc-md](..\u002Fvalidate-cc-md\u002FSKILL.md) - Validate CLAUDE.md files\n- [validate-all](..\u002Fvalidate-all\u002FSKILL.md) - Run all validators\n",{"name":5,"version":39,"description":7,"allowed-tools":40,"argument-hint":46},"1.0.0",[41,42,43,44,45],"Bash(claudelint:*)","Read","Edit","Write","Grep","[path]","main","c019fbcb2b647fcfcfa32c022ba49c200fb43545","skills\u002Foptimize-cc-md",4,"https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint","https:\u002F\u002Fwww.claudelint.com","https:\u002F\u002Fgithub.com\u002Fpdugan20","pdugan.com","Front front, back back, sucker grab a snack pack.","2026-11-14 15:30:10",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add pdugan20\u002Fclaudelint --skill optimize-cc-md",{"tool":63,"command":64},"bunx","bunx skills add pdugan20\u002Fclaudelint --skill optimize-cc-md",{"tool":66,"command":67},"pnpm","pnpm dlx skills add pdugan20\u002Fclaudelint --skill optimize-cc-md","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Fskills\u002Foptimize-cc-md\u002FSKILL.md",true,[71,77,81,87,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,157],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"CHANGELOG.md","REFERENCE","参考文档",546,"https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Fskills\u002Foptimize-cc-md\u002FCHANGELOG.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"forms.md",11854,"https:\u002F\u002Fgithub.com\u002FSESELOVSKYDarian\u002FVase\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf\u002Fforms.md",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"LICENSE.txt","LICENSE","许可证",1467,"https:\u002F\u002Fgithub.com\u002FSESELOVSKYDarian\u002FVase\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf\u002FLICENSE.txt",{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"optimize-cc-md.sh","SCRIPT","脚本",871,"https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Fskills\u002Foptimize-cc-md\u002Foptimize-cc-md.sh",{"path":94,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":95,"sourceHtmlUrl":96},"reference.md",16692,"https:\u002F\u002Fgithub.com\u002FSESELOVSKYDarian\u002FVase\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf\u002Freference.md",{"path":98,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fcommon-fixes.md",1884,"https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Fskills\u002Foptimize-cc-md\u002Freferences\u002Fcommon-fixes.md",{"path":102,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Ffile-type-taxonomy.md",6450,"https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Fskills\u002Foptimize-cc-md\u002Freferences\u002Ffile-type-taxonomy.md",{"path":106,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Fimport-patterns.md",9344,"https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Fskills\u002Foptimize-cc-md\u002Freferences\u002Fimport-patterns.md",{"path":110,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":111,"sourceHtmlUrl":112},"references\u002Forganization-guide.md",8298,"https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Fskills\u002Foptimize-cc-md\u002Freferences\u002Forganization-guide.md",{"path":114,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Fquality-criteria.md",3718,"https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Fskills\u002Foptimize-cc-md\u002Freferences\u002Fquality-criteria.md",{"path":118,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":119,"sourceHtmlUrl":120},"references\u002Fsize-optimization.md",6958,"https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Fskills\u002Foptimize-cc-md\u002Freferences\u002Fsize-optimization.md",{"path":122,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":123,"sourceHtmlUrl":124},"references\u002Ftemplates.md",6891,"https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Fskills\u002Foptimize-cc-md\u002Freferences\u002Ftemplates.md",{"path":126,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Ftroubleshooting.md",3540,"https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Fskills\u002Foptimize-cc-md\u002Freferences\u002Ftroubleshooting.md",{"path":130,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":131,"sourceHtmlUrl":132},"scripts\u002Fcheck_bounding_boxes.py",2774,"https:\u002F\u002Fgithub.com\u002FSESELOVSKYDarian\u002FVase\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf\u002Fscripts\u002Fcheck_bounding_boxes.py",{"path":134,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":135,"sourceHtmlUrl":136},"scripts\u002Fcheck_fillable_fields.py",268,"https:\u002F\u002Fgithub.com\u002FSESELOVSKYDarian\u002FVase\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf\u002Fscripts\u002Fcheck_fillable_fields.py",{"path":138,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":139,"sourceHtmlUrl":140},"scripts\u002Fconvert_pdf_to_images.py",1008,"https:\u002F\u002Fgithub.com\u002FSESELOVSKYDarian\u002FVase\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf\u002Fscripts\u002Fconvert_pdf_to_images.py",{"path":142,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":143,"sourceHtmlUrl":144},"scripts\u002Fcreate_validation_image.py",1258,"https:\u002F\u002Fgithub.com\u002FSESELOVSKYDarian\u002FVase\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf\u002Fscripts\u002Fcreate_validation_image.py",{"path":146,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":147,"sourceHtmlUrl":148},"scripts\u002Fextract_form_field_info.py",4300,"https:\u002F\u002Fgithub.com\u002FSESELOVSKYDarian\u002FVase\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf\u002Fscripts\u002Fextract_form_field_info.py",{"path":150,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":151,"sourceHtmlUrl":152},"scripts\u002Fextract_form_structure.py",3945,"https:\u002F\u002Fgithub.com\u002FSESELOVSKYDarian\u002FVase\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf\u002Fscripts\u002Fextract_form_structure.py",{"path":154,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":155,"sourceHtmlUrl":156},"scripts\u002Ffill_fillable_fields.py",3819,"https:\u002F\u002Fgithub.com\u002FSESELOVSKYDarian\u002FVase\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf\u002Fscripts\u002Ffill_fillable_fields.py",{"path":158,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":159,"sourceHtmlUrl":160},"scripts\u002Ffill_pdf_form_with_annotations.py",3235,"https:\u002F\u002Fgithub.com\u002FSESELOVSKYDarian\u002FVase\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpdf\u002Fscripts\u002Ffill_pdf_form_with_annotations.py",[162,188,201,216,231,253],{"skillNo":163,"name":164,"nameZh":165,"description":166,"descriptionZh":167,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":180,"publishedAt":34},"01M6CHZFHQSY664AF5VNA0WEB2","test-skill","技能校验测试样例","A valid test skill for testing purposes. Use this when you want to test skill validation.","一个有效的测试技能，用于测试目的。当你想测试技能校验时使用此技能。","https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fvalid\u002FSKILL.md",[170,175],{"categoryNo":171,"categoryName":172,"taxonomyType":173,"taxonomyTypeDesc":174},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":176,"categoryName":177,"taxonomyType":178,"taxonomyTypeDesc":179},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[181,182,183,184,185,23,186,187,25,28,32],"Test Skill","test","skill validation","testing","valid","npm","package",{"skillNo":189,"name":190,"nameZh":191,"description":192,"descriptionZh":193,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":198,"publishedAt":34},"01M6CHZDBSQ0420H4C7K3NMFC0","no-version-skill","缺失版本字段测试技能","This skill is missing the version field for testing purposes.","本技能缺少 version 字段，用于测试目的。","https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fno-version\u002FSKILL.md",[196,197],{"categoryNo":171,"categoryName":172,"taxonomyType":173,"taxonomyTypeDesc":174},{"categoryNo":176,"categoryName":177,"taxonomyType":178,"taxonomyTypeDesc":179},[199,200,184,25],"version","no version skill",{"skillNo":202,"name":203,"nameZh":204,"description":205,"descriptionZh":206,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":207,"categories":208,"keywords":213,"publishedAt":34},"01M6CHZAZNT9325HAHNM1PPA7E","dangerous-skill","危险命令安全测试","This skill contains dangerous commands for testing security validation.","本技能包含用于测试安全校验的危险命令。","https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fdangerous-command\u002FSKILL.md",[209,210],{"categoryNo":176,"categoryName":177,"taxonomyType":178,"taxonomyTypeDesc":179},{"categoryNo":211,"categoryName":212,"taxonomyType":173,"taxonomyTypeDesc":174},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",[214,23,25,215,184],"dangerous skill","security",{"skillNo":217,"name":218,"nameZh":219,"description":220,"descriptionZh":221,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":222,"categories":223,"keywords":226,"publishedAt":34},"01M6CHZ8DGCR8TJYYFH5F8PTEA","example-skill","完整测试套件运行","Use this to run the complete test suite for the project","用于运行项目的完整测试套件。","https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fprojects\u002Fvalid-complete\u002F.claude\u002Fskills\u002Fexample-skill\u002FSKILL.md",[224,225],{"categoryNo":171,"categoryName":172,"taxonomyType":173,"taxonomyTypeDesc":174},{"categoryNo":176,"categoryName":177,"taxonomyType":178,"taxonomyTypeDesc":179},[227,228,182,229,25,28,32,230],"example","example skill","run","test suite",{"skillNo":232,"name":233,"nameZh":234,"description":235,"descriptionZh":236,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":237,"categories":238,"keywords":245,"publishedAt":34},"01M6CHZ5YH5D51B5JCBVJNKXMK","advanced-skill","Firebase 项目部署","Use this to deploy the project using Firebase tools and MCP integration","使用 Firebase 工具和 MCP 集成来部署项目。","https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fprojects\u002Fvalid-complete\u002F.claude\u002Fskills\u002Fadvanced-skill\u002FSKILL.md",[239,242],{"categoryNo":240,"categoryName":241,"taxonomyType":173,"taxonomyTypeDesc":174},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":243,"categoryName":244,"taxonomyType":178,"taxonomyTypeDesc":179},"01M8C8NWX3SJGG0E5PTK3XXQ1K","Firebase 开发",[246,29,247,248,249,250,251,252,25,32],"advanced skill","MCP","deploy","integration","Tools","firebase","MCP Integration",{"skillNo":254,"name":255,"nameZh":256,"description":257,"descriptionZh":258,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":259,"categories":260,"keywords":267,"publishedAt":34},"01M6CHZ3Q0J7W745YQC4126XZF","WRONG_NAME","错误名称","I do it","我来做。","https:\u002F\u002Fgithub.com\u002Fpdugan20\u002Fclaudelint\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fprojects\u002Finvalid-all-categories\u002F.claude\u002Fskills\u002Fbad-skill\u002FSKILL.md",[261,264],{"categoryNo":262,"categoryName":263,"taxonomyType":173,"taxonomyTypeDesc":174},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":265,"categoryName":266,"taxonomyType":178,"taxonomyTypeDesc":179},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[268,25,29,269],"wrong name","do"]