/claudelint:format-cc [flags]from claudelint
Formats Claude Code files with markdownlint, prettier, and shellcheck. Auto-fixes markdown, JSON, YAML; checks shell scripts. Invoked by user requests like 'format my files' or 'fix markdown'.
Ships in claudelint. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
--check - Check formatting without making changes--fix - Fix formatting issues (default)--verbose - Show detailed command outputCLAUDE.md.claude/**/*.mdTools:
.claude/**/*.json.mcp.json.claude-plugin/**/*.jsonTool: prettier
.claude/**/*.{yaml,yml}Tool: prettier
.claude/**/*.sh.claude/hooks/*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
0 - All formatting checks passed1 - Formatting issues foundWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
claude-code-formatting, markdownlint, prettier, shellcheck, auto-fix
npx claudepluginhub pdugan20/claudelint --plugin claudelint9 skills in this plugin
/optimize-cc-mdInteractively 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./validate-allRuns comprehensive claudelint validation on all Claude Code project files. Use when user asks to "check everything", "run all validators", "full audit", "validate my entire project", or "what's wrong with my config". Validates CLAUDE.md, skills, settings, hooks, MCP servers, and plugin manifests./validate-cc-mdValidates 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 "fix CLAUDE.md errors". Checks file size limits (30KB warning, 50KB error), @import directives, frontmatter in .claude/rules/, and section organization.Other plugins' skills for the same job