pdugan20/claudelint/format-cc
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install pdugan20/claudelint/format-ccSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Format Claude Code Files
Runs claudelint format to format Claude Code project files using industry-standard tools:
- markdownlint - Markdown structure and formatting
- prettier - Code formatting for markdown, JSON, YAML
- shellcheck - Shell script analysis
Usage
Modes
Fix Mode (default)
Auto-fix formatting issues:
Or simply:
Check Mode
Check formatting without making changes:
Useful for CI/CD to verify formatting.
Options
--check- Check formatting without making changes--fix- Fix formatting issues (default)--verbose- Show detailed command output
What Gets Formatted
Markdown Files
CLAUDE.md.claude/**/*.md
Tools:
- markdownlint - MD041, MD031, MD032, MD040, MD022
- prettier - Line wrapping, indentation
JSON Files
.claude/**/*.json.mcp.json.claude-plugin/**/*.json
Tool: prettier
YAML Files
.claude/**/*.{yaml,yml}
Tool: prettier
Shell Scripts
.claude/**/*.sh.claude/hooks/*
Tool: shellcheck (analysis only, no auto-fix)
Examples
Format all Claude files:
Check formatting in CI:
Verbose output:
Required Tools
Install formatting tools globally or in your project:
markdownlint
prettier
shellcheck
Configuration
The format command automatically scopes to Claude files only, so it won't conflict with your project's existing formatters.
Customizing Markdownlint
Create .markdownlint.json in your project root:
claudelint format will automatically use this configuration.
Customizing Prettier
Create .prettierrc.json in your project root:
claudelint format will automatically use this configuration.
Integration
Add to package.json scripts:
Add to pre-commit hooks:
Exit Codes
0- All formatting checks passed1- Formatting issues found
See Also
- validate-all - Validate Claude files
- CLI Reference - Complete CLI documentation
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/format-cc/SKILL.md
Popularity
- Repository stars
- 12
- Repository forks
- 4
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pdugan20/claudelint/format-cc)