
Agentsmd scaffold
Generates or updates scoped AGENTS.md instruction files from real repo evidence
Agentsmd scaffold is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- Python
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 303
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Agentsmd scaffold
This skill helps an agent build a small stack of AGENTS.md files for a repository, with a root router and nested files only where a directory has its own rules. It defaults to producing a plan with the paths, reasons, rules and validation commands for each file, and only writes files when the user explicitly asks for them to be applied. Existing CLAUDE.md, WARP.md and AGENTS.md files are preserved or pointed to rather than overwritten.
The workflow starts with a bundled read-only Python scanner that reports high-context files, command hints, specs, local skills and scoped candidates. The agent then reads the manifests, CI workflows, docs and generator files to confirm each command and ownership claim before including it. Commands or ownership rules that cannot be verified are left as open facts instead of being guessed.
It expects a repository to scaffold and access to a shell to run the Python scanner. Root files are kept short, and the skill includes a reference guide with scaffold selection rules and templates for root, generated metadata, scripts, skill libraries and tests.
When your agent uses it
Generate or update repository-specific AGENTS.md instruction files from real repo evidence. Use when asked to create, design, scaffold, split, or improve root or scoped AGENTS.md files for Codex/Claude/agent workflows, especially when a repo needs directory-specific rules, validation commands, generated-file boundaries, or a short agent onboarding router.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs Python scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 4 files (26 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/agentsmd-scaffold to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agentsmd-scaffold &&
cp -R "$tmp/skills/agentsmd-scaffold" ~/.claude/skills/agentsmd-scaffold &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/agentsmd-scaffold inside it instead.
Copy the skill folder to ~/.agents/skills/agentsmd-scaffold to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agentsmd-scaffold &&
cp -R "$tmp/skills/agentsmd-scaffold" ~/.agents/skills/agentsmd-scaffold &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/agentsmd-scaffold inside it instead.
Copy the skill folder to ~/.cursor/skills/agentsmd-scaffold to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agentsmd-scaffold &&
cp -R "$tmp/skills/agentsmd-scaffold" ~/.cursor/skills/agentsmd-scaffold &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/agentsmd-scaffold inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/majiayu000/spellbook.git --path skills/agentsmd-scaffoldOr copy the folder to ~/.gemini/skills/agentsmd-scaffold yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/agentsmd-scaffold:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agentsmd-scaffold &&
cp -R "$tmp/skills/agentsmd-scaffold" ~/.copilot/skills/agentsmd-scaffold &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/agentsmd-scaffold inside it instead.
Get the folder:
git clone --depth 1 https://github.com/majiayu000/spellbook.gitThen copy spellbook/skills/agentsmd-scaffold into your agent's skills folder as agentsmd-scaffold. Agents that support SKILL.md read one folder per skill.
What it does
- Repository evidence scanning
- A read-only Python scanner lists existing agent context files, command hints and scoped candidates.
- Scoped instruction plan
- Produces a table of AGENTS.md paths with reasons, rules and validation commands before any edits.
- Verified commands only
- Cites the manifest, CI workflow or script behind each command and leaves unknown facts open.
- Preservation of existing files
- Keeps existing CLAUDE.md, WARP.md and AGENTS.md files intact unless a rewrite is requested.
- Decision gates for file creation
- Sets rules for when a nested file is justified, such as generated outputs or distinct safety rules.
- Post-apply verification
- Runs narrow validation for the affected scope and rechecks that scoped files are discoverable.
Good for
- Create a root AGENTS.md for a repository with validation commands
- Split a long agent instruction file into scoped files for subdirectories
- Document generated-file boundaries and regeneration commands for agents
- Audit which directories need their own agent rules
- Draft a short agent onboarding router for a codebase
Agentsmd scaffold FAQ
When does the skill write files?
By default it produces a scoped plan. It only writes or modifies AGENTS.md, CLAUDE.md, WARP.md, hooks, settings or generated docs when the user explicitly asks to apply the scaffold.
Does Agentsmd scaffold guess build or test commands?
No. The skill instructs the agent to cite a manifest, CI workflow, script or doc for each command and to leave missing commands as open facts.
What does the bundled scanner do?
It is a read-only Python script, scripts/scan_repo_context.py, that reports high-context files, command hints, specs, local skills and scoped AGENTS.md candidates.
Will Agentsmd scaffold overwrite an existing CLAUDE.md or WARP.md?
No. The skill says to preserve existing files, point to them, or propose a split first, unless the user asks for a rewrite.
How do I install Agentsmd scaffold in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/agentsmd-scaffold to use it in all your projects, or to .claude/skills/agentsmd-scaffold in one project.
Does Agentsmd scaffold run scripts?
Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Agentsmd scaffold?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Agentsmd scaffold?
The closest alternatives to Agentsmd scaffold are Agents md, Wiki agents md, Agents md authoring, Agentsmd optimize and Create agentsmd.
Where this comes from
- Description: from the skill's own SKILL.md.
More from majiayu000/spellbook

Gives your agent cross-domain analogies and yes-and extensions to spark new ideas
- Open source
- 303 GitHub stars
- Productivity

Stress-tests an idea by hunting hidden assumptions, counterexamples and failure points
- Open source
- 303 GitHub stars
- Productivity

Gathers sourced facts, competitors and 2026 data on an idea without judging it
- Open source
- 303 GitHub stars
- Research workflow

Runs a three-role AI group chat that surfaces blind spots in a one-line idea
- Open source
- 303 GitHub stars
- Productivity

Coaches you from a one-line idea to a PRD and clickable HTML prototype
- Open source
- 303 GitHub stars
- Productivity

Guides an agent through mobile app UI design for iOS and Android
- Open source
- 303 GitHub stars
- Design and media




