format-cc

format-cc is a skill for Claude Code from pdugan20/claudelint. It costs 62 tokens per session (955 once invoked), scanned A, original, MIT.

A formatter and checker for Claude Code project files, including Markdown, JSON, YAML, and shell scripts.

In plain words
What is it for?
It is for fixing or checking formatting in CLAUDE.md, .claude files, .mcp.json, YAML files, hooks, and shell scripts. Shell scripts are analyzed but not automatically changed.
Why use it?
It applies consistent formatting and points out shell-script problems, making configuration and instruction files easier to read and review.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

Part of the claudelint plugin — 10 skills, 1 agent, 1 hook shipped together

Good fit It is for fixing or checking formatting in CLAUDE.md, .claude files, .mcp.json, YAML files, hooks, and shell scripts. Shell scripts are analyzed but not automatically changed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pdugan20/claudelint/format-cc
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pdugan20/claudelint --skill format-cc
Clone the repo
git clone --depth 1 https://github.com/pdugan20/claudelint

Made for: Claude Code.

Or install claudelint, the plugin that ships this one along with the rest of its 10 skills, 1 agent, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for format-cc

README.md
[![agentmods](https://agentmods.dev/badge/skills/pdugan20/claudelint/format-cc/github.svg)](https://agentmods.dev/skills/pdugan20/claudelint/format-cc)
Your own site
<a href="https://agentmods.dev/skills/pdugan20/claudelint/format-cc"><img src="https://agentmods.dev/badge/skills/pdugan20/claudelint/format-cc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for format-cc

Your own site · 80×15
<a href="https://agentmods.dev/skills/pdugan20/claudelint/format-cc"><img src="https://agentmods.dev/badge/skills/pdugan20/claudelint/format-cc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 955 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00955
Opus 5.5 $0.00025 $0.00382
Sonnet 5.5 $0.00012 $0.00191
Haiku 4.5 $0.00006 $0.00096

Measured 3mo ago against content hash 2826ab53f540, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

format-cc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (format-cc.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/format-cc/SKILL.md · 212 lines

How it starts

The opening of the file, as written. The whole thing — 212 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

claudelint format --fix $ARGUMENTS

Modes

Fix Mode (default)

Auto-fix formatting issues:

claudelint format --fix

Or simply:

claudelint format

Check Mode

Check formatting without making changes:

claudelint format --check

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:

claudelint format --fix

Check formatting in CI:

claudelint format --check

Verbose output:

claudelint format --fix --verbose

Required Tools

Install formatting tools globally or in your project:

markdownlint

npm install -g markdownlint-cli
# or
npm install --save-dev markdownlint-cli

prettier

npm install -g prettier
# or
npm install --save-dev prettier

shellcheck

brew install shellcheck
# or
npm install -g 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:

{
  "default": true,
  "MD013": false,
  "MD033": {
    "allowed_elements": ["kbd", "br"]
  },
  "MD041": true,
  "MD031": true,
  "MD032": true,
  "MD040": true,
  "MD022": true
}

Read the full file on GitHub · 212 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 212 lines · 62 tokens per session scan A 2826ab53f540

Subscribe to this mod's changes

format-cc is a skill published in the GitHub repository pdugan20/claudelint (16 stars, last pushed 3d ago), licensed MIT. It adds 62 tokens to every session and 955 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

format-cc compared with skills from other repositories

format-cc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
format-ccpdugan20/claudelintSkill163d agoMITA62Claude Code
scopeYuriNachos/claude-scopeSkill111mo agoMITA33Claude Code
pump-ts-vanitynirholas/pump-fun-sdkSkill152yesterdaynoneA45Claude Code, Codex
pump-sdk-typescriptnirholas/pump-fun-sdkSkill152yesterdaynoneA58Claude Code
monetize-with-x402-deploynirholas/x402-deploySkill262d agononeA72Claude Code
migrate-oxlintoxc-project/oxcSkill24ktodayMITA52Claude Code, Codex
triageoxc-project/oxcSkill24ktodayMITA35Claude Code, Codex