optimize-cc-md
Interactively helps users optimize their CLAUDE.md files. Use when user asks to "optimize my CLAUDE.md", "my CLAUDE.md is too…
Formats Claude Code files with markdownlint, prettier, and shellcheck. Use when user asks to "format my files", "fix markdown formatting", "clean up CLAUDE.md", or "check shell scripts". Auto-fixes markdown, JSON, YAML formatting and analyzes shell script quality.
Claude Code
$ npx -y skills add pdugan20/claudelint --skill format-cc --agent claude-code
Codex
$ npx skills add pdugan20/claudelint --skill format-cc -a codex -y
Cursor
$ npx skills add pdugan20/claudelint --skill format-cc -a cursor -y
Gemini CLI
$ npx skills add pdugan20/claudelint --skill format-cc -a gemini-cli -y
GitHub Copilot
$ npx skills add pdugan20/claudelint --skill format-cc -a github-copilot -y
OpenCode
$ npx skills add pdugan20/claudelint --skill format-cc -a opencode -y
Windsurf
$ npx skills add pdugan20/claudelint --skill format-cc -a windsurf -y
name: format-cc description: Formats Claude Code files with markdownlint, prettier, and shellcheck. Use when user asks to "format my files", "fix markdown formatting", "clean up CLAUDE.md", or "check shell scripts". Auto-fixes markdown, JSON, YAML formatting and analyzes shell script quality. version: 1.0.0 argument-hint: "[flags]" allowed-tools: - Bash(claudelint:*)
Runs `claudelint format` to format Claude Code project files using industry-standard tools:
claudelint format --fix $ARGUMENTS
Auto-fix formatting issues:
claudelint format --fix
Or simply:
claudelint format
Check formatting without making changes:
claudelint format --check
Useful for CI/CD to verify formatting.
Tools:
Tool: prettier
Tool: prettier
Tool: shellcheck (analysis only, no auto-fix)
Format all Claude files:
claudelint format --fix
Check formatting in CI:
claudelint format --check
Verbose output:
claudelint format --fix --verbose
Install formatting tools globally or in your project:
npm install -g markdownlint-cli # or npm install --save-dev markdownlint-cli
npm install -g prettier # or npm install --save-dev prettier
brew install shellcheck # or npm install -g shellcheck
The format command automatically scopes to Claude files only, so it won't conflict with your project's existing formatters.
Create `.markdownlint.json` in your project root:
{
"default": true,
"MD013": false,
"MD033": {
"allowed_elements": ["kbd", "br"]
},
"MD041": true,
"MD031": true,
"MD032": true,
"MD040": true,
"MD022": true
}`claudelint format` will automatically use this configuration.
Create `.prettierrc.json` in your project root:
{
"semi": true,
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"arrowParens": "always",
"endOfLine": "lf",
"proseWrap": "preserve"
}`claudelint format` will automatically use this configuration.
Add to package.json scripts:
{
"scripts": {
"format:claude": "claudelint format --fix",
"format:claude:check": "claudelint format --check",
"lint:claude": "claudelint check-all"
}
}Add to pre-commit hooks:
#!/bin/sh claudelint format --check claudelint check-all
A linter for Claude Code projects. Validates CLAUDE.md files, skills, settings, hooks, MCP servers, plugins, and more.
Interactively helps users optimize their CLAUDE.md files. Use when user asks to "optimize my CLAUDE.md", "my CLAUDE.md is too…
Runs comprehensive claudelint validation on all Claude Code project files. Use when user asks to "check everything", "run all…
Validates CLAUDE.md files for size, imports, and structure. Use when user asks to "check my CLAUDE.md", "why is my CLAUDE.md too…
Validates Claude Code hooks.json files for schema, events, and commands. Use when user asks to "check my hooks", "validate…
Validates MCP server configuration files (.mcp.json). Use when user asks to "check my .mcp.json", "why isn't my MCP working",…
Validates Claude Code plugin manifest files (plugin.json). Use when user asks to "check my plugin.json", "validate plugin.json",…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.