# Agentsmd scaffold

> Agentsmd scaffold is an open-source agent skill for developer tools. Generates or updates scoped AGENTS.md instruction files from real repo evidence. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/majiayu000/spellbook/tree/main/skills/agentsmd-scaffold
- **Repository:** https://github.com/majiayu000/spellbook
- **GitHub stars:** 303
- **License:** MIT
- **Skill name:** agentsmd-scaffold
- **Collection:** https://github.com/majiayu000/spellbook
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/majiayu000/spellbook/tree/HEAD/skills/agentsmd-scaffold)
- [No network calls found in its scripts](https://github.com/majiayu000/spellbook/tree/HEAD/skills/agentsmd-scaffold)
- [License: MIT](https://github.com/majiayu000/spellbook/tree/HEAD/skills/agentsmd-scaffold)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/agentsmd-scaffold` to use it in all your projects:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/agentsmd-scaffold` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/agentsmd-scaffold` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/majiayu000/spellbook.git --path skills/agentsmd-scaffold
```

Or copy the folder to `~/.gemini/skills/agentsmd-scaffold` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/agentsmd-scaffold`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/majiayu000/spellbook.git
```

Then copy `spellbook/skills/agentsmd-scaffold` into your agent's skills folder as `agentsmd-scaffold`. Agents that support SKILL.md read one folder per skill.

## 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.

## Alternatives

- [Agents md](https://ai-powered.com/skills/agents-md-scaledockhq): Agents md is an open-source agent skill for developer tools.
- [Wiki agents md](https://ai-powered.com/skills/wiki-agents-md): Wiki agents md is an open-source agent skill for knowledge and memory.
- [Agents md authoring](https://ai-powered.com/skills/agents-md-authoring): Agents md authoring is an open-source agent skill for developer tools.
- [Agentsmd optimize](https://ai-powered.com/skills/agentsmd-optimize): Agentsmd optimize is an open-source agent skill for developer tools.
- [Create agentsmd](https://ai-powered.com/skills/create-agentsmd): Create agentsmd is an open-source agent skill for developer tools.
- [Agents md](https://ai-powered.com/skills/agents-md): Agents md is an open-source agent skill for files and documents.
- [Agents md improver](https://ai-powered.com/skills/agents-md-improver): Agents md improver is an open-source agent skill for developer tools.
- [Map](https://ai-powered.com/skills/map-duthaho): Map is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/agentsmd-scaffold
