validate-cc-md

validate-cc-md is a skill for Claude Code from pdugan20/claudelint. It costs 88 tokens per session (1,421 once invoked), scanned A, original, MIT.

A checker for CLAUDE.md files, which contain instructions that Claude Code follows in a project. It checks size, imports, frontmatter, and section structure.

In plain words
What is it for?
It is for validating one or more CLAUDE.md files, checking @import references and rule-file metadata, and showing explanations or fix suggestions.
Why use it?
It helps explain why instructions are not loading, are too large, or refer to missing files.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

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

Good fit It is for validating one or more CLAUDE.md files, checking @import references and rule-file metadata, and showing explanations or fix suggestions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pdugan20/claudelint/validate-cc-md
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 validate-cc-md
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 validate-cc-md

README.md
[![agentmods](https://agentmods.dev/badge/skills/pdugan20/claudelint/validate-cc-md/github.svg)](https://agentmods.dev/skills/pdugan20/claudelint/validate-cc-md)
Your own site
<a href="https://agentmods.dev/skills/pdugan20/claudelint/validate-cc-md"><img src="https://agentmods.dev/badge/skills/pdugan20/claudelint/validate-cc-md/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 validate-cc-md

Your own site · 80×15
<a href="https://agentmods.dev/skills/pdugan20/claudelint/validate-cc-md"><img src="https://agentmods.dev/badge/skills/pdugan20/claudelint/validate-cc-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,421 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.00088 $0.01421
Opus 5 $0.00044 $0.00711
Sonnet 5 $0.00018 $0.00284
Haiku 4.5 $0.00009 $0.00142

Measured 9d ago against content hash a7168d9cd3f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

validate-cc-md 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (validate-cc-md.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/validate-cc-md/SKILL.md · 189 lines

How it starts

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

Validate CLAUDE.md Files

Runs claudelint validate-claude-md to validate CLAUDE.md files including:

  • File size limits (30KB warning, 50KB error)
  • @import directive validation
  • Frontmatter validation in .claude/rules/ files
  • Section organization

Usage

claudelint validate-claude-md $ARGUMENTS

Options

  • --path <path> - Validate specific CLAUDE.md file
  • --verbose - Show detailed output
  • --warnings-as-errors - Treat warnings as errors
  • --explain - Show detailed explanations and fix suggestions

Examples

Example 1: Claude says context is too large

User says: "Claude keeps saying my instructions are too long and won't load them" What happens:

  1. Skill runs claudelint validate-claude-md
  2. Shows CLAUDE.md is 52KB (exceeds 50KB hard limit)
  3. Identifies 3 largest sections: API docs (18KB), Git workflow (12KB), Testing guide (8KB)
  4. Shows how to split: create .claude/rules/api.md and add @import .claude/rules/api.md

Result: User splits sections, CLAUDE.md now 28KB, Claude loads it successfully

Example 2: Import shows "file not found" in Claude

User says: "I added @import .claude/rules/testing.md but Claude says the file doesn't exist" What happens:

  1. Skill validates @import path
  2. Finds file is at .claude/rules/tests.md not testing.md (typo)
  3. Also checks .claude/rules/tests.md exists and has valid frontmatter
  4. Shows corrected import line

Result: User fixes filename typo, import loads correctly

Example 3: Rules file won't apply to specific paths

User says: "My .claude/rules/backend.md isn't applying when I edit backend files" What happens:

  1. Skill checks frontmatter in .claude/rules/backend.md
  2. Finds paths: "backend/*" (string) should be paths: ["backend/**/*"] (array with glob)
  3. Explains paths field requires array of glob patterns
  4. Shows corrected frontmatter

Result: Rules now apply to backend directory correctly

Command Examples

Validate all CLAUDE.md files:

Read the full file on GitHub · 189 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. 9d ago First seen · 189 lines · 88 tokens per session scan A a7168d9cd3f2

Subscribe to this mod's changes

validate-cc-md is a skill published in the GitHub repository pdugan20/claudelint (12 stars, last pushed today), licensed MIT. It adds 88 tokens to every session and 1,421 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

migrate-oxlint

Guide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to Oxlint.

oxc-project/oxc · 44 tokens

performance-lint-rules

Performance review guidance for Oxc linter rule implementations. Use only when reviewing Rust rule code under crates/oxclinter/src/rules/ or when explicitly auditing those rules for performance improvements.

oxc-project/oxc · 45 tokens

ultracite

Ultracite is a zero-config linting and formatting preset for JavaScript/TypeScript projects. Use when: (1) Setting up or initializing Ultracite in a project (ultracite init), (2) Running linting or formatting commands (check, fix, doctor), (3) Writing or reviewing JS/TS code in a project that uses Ultracite — to…

haydenbleasel/ultracite · 142 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

ship-safe-red-team

Run a multi-agent red team scan — 29 specialized security agents scan for 80+ attack classes including injection, auth bypass, SSRF, supply chain, Supabase RLS, MCP security, agentic AI, RAG poisoning, PII compliance, and more. Use when the user wants a deep security analysis beyond just secrets.

asamassekou10/ship-safe · 73 tokens

video-production

Produce programmable videos with Remotion using scene planning, asset orchestration, and validation gates for automated, brand-consistent video content.

Marve10s/Better-Fullstack · 29 tokens