skills/format-cc/SKILL.md
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 skillsauth add pdugan20/claudelint format-ccInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 foundtesting
A valid test skill for testing purposes. Use this when you want to test skill validation.
testing
This skill is missing the version field for testing purposes.
testing
This skill contains dangerous commands for testing security validation.
tools
Validates Claude Code skills for schema, naming, documentation, and security. Use when user asks to "check my skill", "validate skill syntax", "why isn't my skill loading", "skill errors", or "dangerous command detected". Validates SKILL.md frontmatter, allowed-tools, file references, directory organization, and shell script security.