claude-code-unplugged
AGENTS.md1 starsChanged 6 months agoMITView on GitHub
A collection of portable agent skills extracted from Claude Code, packaged as standard SKILL.md files. Distributable via npx skills add. Zero npm dependencies — pure Node.js (CommonJS), vanilla JS, Markdown. Env vars: SKILLS_DIR (override skills path, default ./skills), SKILL_VERSION (default 0.1.0). Each skill is a directory under skills/ with a SKILL.md file. YAML frontmatter limited to name, description, and platformExempt: Optional subdirectories: scripts/, references/, examples/. Version and source provenance live in skills.json, not frontmatter. Skills that inherently discuss specific model…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository22 other files it gives its agents.
- agent-developmentSkill
- agent-sdk-devSkill
- claude-opus-4-5-migrationSkill
- code-reviewSkill
- command-developmentSkill
- commit-commandsSkill
- explanatory-output-styleSkill
- feature-devSkill
- frontend-designSkill
- github-managementSkill
- hook-developmentSkill
- hookifySkill
- learning-output-styleSkill
- mcp-integrationSkill
- plugin-devSkill
- plugin-settingsSkill
- plugin-structureSkill
- pr-review-toolkitSkill
- ralph-wiggumSkill
- security-guidanceSkill
- skill-developmentSkill
- writing-rulesSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Never edit files under
skills/directly: All skill content is produced by scripts/extract.js. - Very specific: line 72
Model-tier neutral: no provider-specific model tier names (haiku, sonnet, opus) except in exempt skills — enforced by …
- Very specific: line 78
Add platformExempt: true to the skill's YAML frontmatter
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Project
A collection of portable agent skills extracted from Claude Code, packaged as standard SKILL.md files. Distributable via npx skills add. Zero npm dependencies — pure Node.js (CommonJS), vanilla JS, Markdown.
Commands
npm test # 21 tests across 3 test suites: validate, generate-manifest, extract
npm run test:all # all 10+ test files (lib tests too)
npm run validate # validate all skills (exits 0 on success, 1 on failure)
npm run check-lock # check skills-lock.json staleness
npm run extract -- --source <path> --target <path> --commit auto # run 5-stage extraction pipeline
npm run generate-manifest # regenerate skills.json from skill directoriesEnv vars: SKILLS_DIR (override skills path, default ./skills), SKILL_VERSION (default 0.1.0).
Architecture
scripts/lib/— 7 shared modules:cli.js,context.js,files.js,frontmatter.js,gates.js,platform.js,skill-md.jsscripts/pipeline/— 5 sequential extraction stages:copy-direct→merge-commands→output-styles→security-guidance→github-managementscripts/test/— Tests per lib module + integration tests for validate/manifest/extract
Invariants
- Never edit files under
skills/directly. All skill content is produced byscripts/extract.js. Manual edits will be overwritten on next extraction and caught bynpm run check-lock. - skills-lock.json tracks SHA-256 hashes of all tracked files per skill. Run
npm run check-lockto verify the skills tree matches the lockfile. This is part of the default CI workflow. - skills.json provenance (sourceCommit, sourceRepository) is read from
skills-lock.json, which is written byextract.js. Do not editskills.jsonprovenance manually. - Extract.js accepts
--commit autoto auto-detect the source commit SHA from the upstream git repository.
End-to-end update workflow
# 1. Pull latest upstream
git -C /path/to/claude-code pull origin main
# 2. Re-extract all skills (auto-detects commit from source dir)
node scripts/extract.js --source /path/to/claude-code --target . --commit auto
# 3. Regenerate manifest (reads provenance from skills-lock.json)
node scripts/generate-manifest.js
# 4. Validate everything
npm test
node scripts/validate.js
node scripts/check-lock-staleness.js
# 5. Commit with upstream SHA in message
git add .
git commit -m "sync: update from upstream (SHA)"Skill format
Each skill is a directory under skills/ with a SKILL.md file. YAML frontmatter limited to name, description, and platformExempt:
---
name: skill-slug # must match directory name; lowercase, dashes only
description: ... # required
platformExempt: true # optional; exempts skill from model-tier neutrality checks
---Optional subdirectories: scripts/, references/, examples/. Version and source provenance live in skills.json, not frontmatter.
Content rules
- Platform-neutral: no "Claude Code",
hooks.json,${CLAUDE_PLUGIN_ROOT},.claude/paths, or/commandsyntax — enforced byscripts/lib/platform.js - Model-tier neutral: no provider-specific model tier names (haiku, sonnet, opus) except in exempt skills — enforced by
scripts/lib/platform.js - Skills are ported source artifacts, not agent instructions for this repo
Platform exemptions
Skills that inherently discuss specific model versions (e.g., migration guides) can opt out of model-tier neutralization:
- Add
platformExempt: trueto the skill's YAML frontmatter - Also register in
MODEL_TIER_EXEMPT_SKILLSinscripts/lib/platform.js(required for pipeline stages that process partial content) - Both mechanisms are checked at validation time
Verification gates
Skills with pre-execution verification gates are defined in scripts/lib/gates.js. Current gated skills:
security-guidance— secrets, input sanitization, path traversalcommit-commands— conventions, correctnesscode-review— conventions, correctnessfeature-dev— phase verificationhookify— Hookify rule scanningralph-wiggum— Ralph feedback loop
Development workflow (openspec)
Proposals and specs live under openspec/:
openspec/changes/<name>/proposal.md— what and whyopenspec/changes/<name>/design.md— technical designopenspec/changes/<name>/tasks.md— implementation tasksopenspec/specs/— finalized specs
Prime directive: do not alter behavior of extracted source plugins. Only platform-neutrality transformations are permitted.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

