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 long", "improve organization", or…
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.
$ npx -y skills add pdugan20/claudelint --skill format-cc --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/format-ccContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
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.
Repo: pdugan20/claudelint
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…
Runs comprehensive claudelint validation on all Claude Code project files. Use when user asks to "check everything", "run all validators", "full audit",…
Validates CLAUDE.md files for size, imports, and structure. Use when user asks to "check my CLAUDE.md", "why is my CLAUDE.md too long", "validate imports", or…
Validates Claude Code hooks.json files for schema, events, and commands. Use when user asks to "check my hooks", "validate hooks.json", "hook errors", "why…
Validates MCP server configuration files (.mcp.json). Use when user asks to "check my .mcp.json", "why isn't my MCP working", ".mcp.json errors", "validate MCP…
Validates Claude Code plugin manifest files (plugin.json). Use when user asks to "check my plugin.json", "validate plugin.json", "plugin errors", or "why isn't…