Intent Layer
crafter-station/skills
Set up hierarchical Intent Layer (AGENTS.md files) for codebases.
Scans a repository for real evidence and proposes, or on request writes, a small stack of root and scoped AGENTS.md files with validation commands and generated-file boundaries.
$ npx skills add majiayu000/spellbook --skill agentsmd-scaffold -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install majiayu000/spellbook agentsmd-scaffold --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/agentsmd-scaffold .claude/skills/agentsmd-scaffold && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "agentsmd-scaffold" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/agentsmd-scaffold into .claude/skills/agentsmd-scaffold/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agentsmd-scaffold", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/majiayu000/spellbook/tree/main/skills/agentsmd-scaffoldType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add majiayu000/spellbook --skill agentsmd-scaffold -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install majiayu000/spellbook agentsmd-scaffold --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/agentsmd-scaffold .agents/skills/agentsmd-scaffold && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "agentsmd-scaffold" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/agentsmd-scaffold into .agents/skills/agentsmd-scaffold/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agentsmd-scaffold", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add majiayu000/spellbook --skill agentsmd-scaffold -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install majiayu000/spellbook agentsmd-scaffold --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/agentsmd-scaffold .cursor/skills/agentsmd-scaffold && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "agentsmd-scaffold" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/agentsmd-scaffold into .cursor/skills/agentsmd-scaffold/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agentsmd-scaffold", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/majiayu000/spellbook.git --path skills/agentsmd-scaffold--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add majiayu000/spellbook --skill agentsmd-scaffold -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install majiayu000/spellbook agentsmd-scaffold --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/agentsmd-scaffold .gemini/skills/agentsmd-scaffold && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "agentsmd-scaffold" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/agentsmd-scaffold into .gemini/skills/agentsmd-scaffold/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agentsmd-scaffold", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install majiayu000/spellbook agentsmd-scaffoldInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add majiayu000/spellbook --skill agentsmd-scaffold -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/agentsmd-scaffold .github/skills/agentsmd-scaffold && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "agentsmd-scaffold" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/agentsmd-scaffold into .github/skills/agentsmd-scaffold/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agentsmd-scaffold", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add majiayu000/spellbook --skill agentsmd-scaffold -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install majiayu000/spellbook agentsmd-scaffold --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/agentsmd-scaffold .opencode/skills/agentsmd-scaffold && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "agentsmd-scaffold" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/agentsmd-scaffold into .opencode/skills/agentsmd-scaffold/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agentsmd-scaffold", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
agentsmd-scaffoldScans a repository for real evidence and proposes, or on request writes, a small stack of root and scoped AGENTS.md files with validation commands and generated-file boundaries.
The result is a plan by default, exact proposed file contents on request, and applied files only when you explicitly ask for them to be written. The agent runs scripts/scan_repo_context.py, then reads existing AGENTS.md, CLAUDE.md, WARP.md and Copilot instructions along with the README, CONTRIBUTING, manifests, Makefiles, CI workflows, generated files and risky areas such as migrations, auth, secrets and payments.
It picks the smallest instruction stack that changes agent behavior: a root file for repo-wide routing and validation, and nested files only where a directory's rules differ. Guessed commands, ownership or generated-file rules are challenged unless the repo supports them, existing files get short pointers instead of rewrites, and batch changes across several repositories need your confirmation. A reference file and an evals file support the workflow, and a separate audit skill answers whether current agent context is healthy.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit ed52af7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
python3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
AGENTS.md Scaffold loads about 1.5k tokens when it runs, and up to ~2.9k if it reads all its reference files. Until then it costs about 94 tokens; SKILL.md has 674 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from majiayu000/spellbook at commit ed52af7, republished under its MIT licence (© majiayu000). 674 words, ~1,518 tokens.
.claude/skills/agentsmd-scaffold/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Use this skill to generate a small, evidence-backed AGENTS.md stack for a
repository. The output may be a plan, exact proposed file contents, or applied
files when the user explicitly asks to write them.
This skill is for instruction scaffolding. Use repo-agent-context-audit first
when the user only asks whether the repo's agent context is healthy.
Default to a scoped plan before editing. Only write or modify AGENTS.md,
CLAUDE.md, WARP.md, hooks, settings, or generated docs when the user has
explicitly asked to apply the scaffold.
Direct actions:
AGENTS.md plan with evidence and validation commands.Escalate before:
AGENTS.md, CLAUDE.md, or WARP.md instead of adding a
short pointer or scoped complement.Evidence-backed pushback:
Feedback loop:
references/scaffold-agents.md, scanner
signals, or eval prompts.Run the scanner from this skill directory when possible:
python3 scripts/scan_repo_context.py <repo-root>
python3 scripts/scan_repo_context.py <repo-root> --jsonThen inspect the files that matter:
AGENTS.md, CLAUDE.md, WARP.md, .claude/instructions.md, and
.github/copilot-instructions.mdREADME.md, CONTRIBUTING.md, package manifests, Makefiles, CI workflows,
and documented test commandsDo not infer commands or ownership from names alone. Use scanner output as a lead, then verify with actual files.
Read references/scaffold-agents.md before proposing files. Choose the
smallest stack that changes agent behavior:
AGENTS.md for repo-wide routing and validationAGENTS.md only where directory rules differ from rootBefore editing, report:
## Scoped AGENTS Plan
| Path | Why here | Rules to include | Validation |
|---|---|---|---|
| `AGENTS.md` | <repo evidence> | <root topics> | `<command>` |
| `<dir>/AGENTS.md` | <repo evidence> | <scoped topics> | `<command>` |
## Files To Preserve
- `<existing high-context file>` - <how it will be referenced or left alone>
## Open Facts
- <missing command or ownership fact that cannot be inferred>When applying the scaffold:
| Situation | Action |
|---|---|
Existing CLAUDE.md or WARP.md is already a good router | Add a short AGENTS.md pointer only if cross-runtime routing helps. |
| Root instruction file exceeds roughly 200 lines | Propose root router plus scoped files or references. |
| Directory has generated outputs | Add scoped rules naming source of truth and regenerate/check commands. |
| Directory has distinct safety rules | Add scoped rules with escalation boundaries. |
| Directory has ordinary implementation files only | Keep guidance in root unless conventions differ. |
| Commands cannot be verified from repo evidence | Leave an open fact instead of guessing. |
AGENTS.md files for every directory. Add them only where
local rules differ from root.CLAUDE.md, WARP.md, or AGENTS.md just to
normalize naming. Preserve it, point to it, or propose a split first.AGENTS.md; route to
references or existing docs instead.After applying changes:
python3 scripts/scan_repo_context.py <repo-root> if using the bundled
scanner to confirm scoped files are discoverableIf verification cannot run, report the exact missing precondition and the command that should be run later.
scripts/scan_repo_context.py: read-only scanner for high-context files,
command hints, specs, local skills, and scoped AGENTS.md candidates.references/scaffold-agents.md: scaffold selection rules and templates for
root, generated metadata, scripts/tools, skill libraries, and tests.evals/evals.json: lightweight prompts for future behavior checks.© majiayu000, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (scripts, references) in skills/agentsmd-scaffold of majiayu000/spellbook.
Open the folder on GitHubat commit ed52af7
AGENTS.md Scaffold next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| AGENTS.md Scaffold this skillmajiayu000/spellbook | 287 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Intent Layercrafter-station/skills | 112 | 1 repos | ~633 | Automated safety check: Pass | MIT | |
| AI Bomcdxgen/cdxgen | 1.1k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| AI Context Workspace Initkvker/ai-context-workspace | 101 | — | ~948 | Automated safety check: Pass | MIT | |
| Add Remote Endpointnextcloud/android-library | 106 | — | ~1.1k | Automated safety check: Pass | Custom licence | |
| Scaffold Clauderagnar-pwninskjold/tech-snacks | 137 | — | ~1.7k | Automated safety check: Pass | MIT |
crafter-station/skills
Set up hierarchical Intent Layer (AGENTS.md files) for codebases.
cdxgen/cdxgen
Generates AI-BOM, MCP inventory, AI skill inventory, and AI authorship provenance documents with cdxgen, cataloging models, inference services, Hugging Face purls, MCP servers and their…
kvker/ai-context-workspace
Turns existing work units or an empty directory into an AI Context Workspace by scanning materials, generating background and conventions, and installing runtime skills.
nextcloud/android-library
A skill your agent uses when adding a new remote/network endpoint (a RemoteOperation / OCSRemoteOperation) to this Nextcloud Android library, or when the user says "add an endpoint", "new remote…
ragnar-pwninskjold/tech-snacks
A skill your agent uses when the user wants to create, draft, or scaffold a CLAUDE.md (or AGENTS.md) file for their project.
k1ein-chen/Harness-Starter
Initialize this project with the Harness Engineering starter template.
majiayu000/spellbook
Audits and repairs how coding-agent Skills are owned, copied and exposed across runtimes, from canonical sources to quarantine and retirement.
majiayu000/spellbook
Plans, produces or diagnoses evidence-backed product demo videos: script, capture plan, pacing checks and verified final media built on real product behavior.
majiayu000/spellbook
Single entry point that routes long or ambiguous agent tasks, checks live state, bounds autonomous loops and leaves a resumable handoff.
majiayu000/spellbook
Scans a repository, its lockfiles and node_modules for known malicious npm package versions and install-time indicators, using a read-only Python scanner.
majiayu000/spellbook
Product management helpers: a RICE scoring script, an interview transcript analyzer and PRD templates for prioritizing features, synthesizing research and writing requirements.
majiayu000/spellbook
Audits a repository's agent-readable context, from AGENTS.md and CLAUDE.md to skills and PRODUCT or TECH specs, and recommends the smallest useful improvements.
Categories
Scans a repository for real evidence and proposes, or on request writes, a small stack of root and scoped AGENTS.md files with validation commands and generated-file boundaries. The result is a plan by default, exact proposed file contents on request, and applied files only when you explicitly ask for them to be written.md and Copilot instructions along with the README, CONTRIBUTING, manifests, Makefiles, CI workflows, generated files and risky areas such as migrations, auth, secrets and payments.
AGENTS.md Scaffold fits situations like: creating a root AGENTS.md for a repository that has none; splitting instructions into scoped files for directories with different rules; improving an AGENTS.md so it lists real validation commands and generated-file boundaries.
Run `npx skills add majiayu000/spellbook --skill agentsmd-scaffold -a claude-code`. Or copy the skill folder (skills/agentsmd-scaffold in majiayu000/spellbook) into .claude/skills/agentsmd-scaffold in your project. Claude Code loads it when a task matches its description.
Run `npx skills add majiayu000/spellbook --skill agentsmd-scaffold -a codex`. Or copy the skill folder (skills/agentsmd-scaffold in majiayu000/spellbook) into .agents/skills/agentsmd-scaffold in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add majiayu000/spellbook --skill agentsmd-scaffold -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agentsmd-scaffold, .gemini/skills/agentsmd-scaffold, .github/skills/agentsmd-scaffold and .opencode/skills/agentsmd-scaffold in your project.
Going by SKILL.md and its folder, AGENTS.md Scaffold needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: python3 to run the repository scanner.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
AGENTS.md Scaffold is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with AGENTS.md Scaffold: Intent Layer (crafter-station/skills, 112 stars), AI Bom (cdxgen/cdxgen, 1.1k stars), AI Context Workspace Init (kvker/ai-context-workspace, 101 stars) and Add Remote Endpoint (nextcloud/android-library, 106 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
majiayu000 (a GitHub user) maintains it in majiayu000/spellbook, which has 287 GitHub stars. The repository holds 97 skills in this directory. The repository was last updated on October 8, 2026.
Source: majiayu000/spellbook on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.