skillcraft CLAUDE.md

A command-line tool for checking and managing instructions used by coding agents, such as AGENTS.md, CLAUDE.md, and editor rule files. It keeps one AGENTS.md source in sync with those other formats.

In plain words
What is it for?
Use it to create a starter configuration, lint instruction files, regenerate managed copies, preview changes, and detect drift in continuous integration.
Why use it?
Agent instructions are often spread across several files and can drift apart. This tool finds errors, detects differences, and helps keep them consistent.

Instructions file

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.

agentmods
npx agentmods add instructions/cloudroad-io/skillcraft/claude-md
Clone the repo
git clone --depth 1 https://github.com/cloudroad-io/skillcraft
Per session 919 This file is loaded in full into every session.
When invoked 919 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00919 $0.00919
Opus 5 $0.00460 $0.00460
Sonnet 5 $0.00184 $0.00184
Haiku 4.5 $0.00092 $0.00092

Measured 2d ago against content hash 367f0c3730aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

skillcraft CLAUDE.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 2d ago.

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.

CLAUDE.md · 71 lines

How it starts

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

skillcraft

ESLint + Jest for agent-config files. skillcraft lints, syncs and scaffolds the fragmented ecosystem of SKILL.md, CLAUDE.md, AGENTS.md, .cursor/rules, .claude/rules and copilot-instructions. One canonical source, many managed targets, drift detection in CI.

Install

uv tool install skillcraft
# or: pip install skillcraft

Commands

Command Purpose
skillcraft lint [--check] [-f plain|json|github|sarif] Run the rule set over discovered config files; exit 1 on any ERROR.
skillcraft sync [--check] [--diff] [--adopt <file>] Regenerate managed targets from AGENTS.md; detect drift.
skillcraft init [--name <name>] Scaffold a minimal AGENTS.md + .skillcraft.toml.
skillcraft version Print the version.

How it works

  • Canonical source = AGENTS.md (vendor-neutral, schema-less). Richer metadata (name, description, scope, license, …) rides in invisible <!-- skillcraft:meta <json> --> comments — valid markdown to every consumer, machine-readable to skillcraft.
  • IR: ConfigDoc. Every parser emits it, every renderer consumes it. Same-format parse→render is lossless; extra_frontmatter escape hatch guarantees no field is silently dropped.
  • Sync. skillcraft sync renders each target from the canonical doc and writes it with a <!-- skillcraft:managed-source path=AGENTS.md --> marker. skillcraft sync --check exits 1 if any managed target drifted (CI). Unmanaged files are never overwritten; opt in with --adopt.
  • Plugins. Subclass Rule or Converter, decorate with @register_rule / @register_converter, and (for external packages) declare an entry-point in skillcraft.rules / skillcraft.converters. See CONTRIBUTING.md.

Rules

ID Scope Rule
SC101 SKILL name is kebab-case, ≤64 chars
SC102 SKILL in a skills/<name>/ folder, name matches the folder
SC103 SKILL description present, ≤1024 chars
SC104 SKILL body ≈ <5000 tokens (warn past 4000)
SC105 SKILL description ≥40 chars for triggerability (warn)
SC201 CLAUDE @path imports resolve, no cycles, ≤4 hops
SC202 CLAUDE line count <200 (warn), <500 (error)
SC203 CLAUDE @imports resolve inside the repo root (error)
SC204 ALL no skipped heading levels (warn)
SC301 ALL required frontmatter present iff the format requires it
SC302 ALL no merge-conflict markers in the body
SC304 ALL body ends with a trailing newline (warn)
SC401 CURSOR globs well-formed and the rule is reachable (error/warn)
SC402 CURSOR not both alwaysApply: true and globs (warn)

Read the full file on GitHub · 71 lines

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. 2d ago First seen · 71 lines · 919 tokens per session scan A 367f0c3730aa

Subscribe to this mod's changes

skillcraft CLAUDE.md is an instructions file published in the GitHub repository cloudroad-io/skillcraft (2 stars, last pushed 1mo ago), licensed MIT. It adds 919 tokens to every session, about $0.0046 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-31.

Related

Other instructions, from other repositories