agentsmd-scaffold

agentsmd-scaffold is a skill for Claude Code, Codex from majiayu000/spellbook. It costs 73 tokens per session (1,346 once invoked), scanned A, original, MIT.

A guide for creating repository-specific AGENTS.md instruction files, which tell coding agents how to work in a code repository and its folders.

In plain words
What is it for?
Use it to inspect a repository, plan scoped instruction files, draft their contents, and validate commands before applying changes.
Why use it?
It bases the instructions on the repository's actual structure and commands, reducing vague or misplaced guidance for agents.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Codex.

Good fit Use it to inspect a repository, plan scoped instruction files, draft their contents, and validate commands before applying changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/majiayu000/spellbook/agentsmd-scaffold
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.

Any agent
npx skills add majiayu000/spellbook --skill agentsmd-scaffold
Clone the repo
git clone --depth 1 https://github.com/majiayu000/spellbook

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agentsmd-scaffold

README.md
[![agentmods](https://agentmods.dev/badge/skills/majiayu000/spellbook/agentsmd-scaffold/github.svg)](https://agentmods.dev/skills/majiayu000/spellbook/agentsmd-scaffold)
Your own site
<a href="https://agentmods.dev/skills/majiayu000/spellbook/agentsmd-scaffold"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/agentsmd-scaffold/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agentsmd-scaffold

Your own site · 80×15
<a href="https://agentmods.dev/skills/majiayu000/spellbook/agentsmd-scaffold"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/agentsmd-scaffold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,346 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00073 $0.01346
Opus 5.5 $0.00029 $0.00538
Sonnet 5.5 $0.00015 $0.00269
Haiku 4.5 $0.00007 $0.00135

Measured 3mo ago against content hash fd8b7a97a7b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agentsmd-scaffold 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan_repo_context.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/agentsmd-scaffold/SKILL.md · 152 lines

How it starts

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

AGENTS.md Scaffold

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.

Operating Contract

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:

  • Run read-only discovery, scanner commands, and repo command inspection.
  • Produce a scoped AGENTS.md plan with evidence and validation commands.
  • Draft exact file contents when the user asks for proposed text.

Escalate before:

  • Creating or editing high-context files when the user only asked for an audit.
  • Rewriting existing AGENTS.md, CLAUDE.md, or WARP.md instead of adding a short pointer or scoped complement.
  • Batch-normalizing multiple repositories.

Evidence-backed pushback:

  • Challenge new scoped files when the directory has no distinct local rules.
  • Challenge guessed commands, ownership, or generated-file rules unless repo evidence supports them.

Feedback loop:

  • Promote repeated false starts into references/scaffold-agents.md, scanner signals, or eval prompts.

Workflow

1. Discover Existing Context

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

Then inspect the files that matter:

  • existing AGENTS.md, CLAUDE.md, WARP.md, .claude/instructions.md, and .github/copilot-instructions.md
  • README.md, CONTRIBUTING.md, package manifests, Makefiles, CI workflows, and documented test commands
  • generated files and their generators
  • high-risk directories such as migrations, deploy scripts, auth, secrets, payments, registry metadata, generated clients, and production operations

Read the full file on GitHub · 152 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 152 lines · 73 tokens per session scan A fd8b7a97a7b4

Subscribe to this mod's changes

agentsmd-scaffold is a skill published in the GitHub repository majiayu000/spellbook (303 stars, last pushed 4d ago), licensed MIT. It adds 73 tokens to every session and 1,346 once invoked, about $0.0003 per session on Opus 5.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-30.

Related

agentsmd-scaffold compared with skills from other repositories

agentsmd-scaffold next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agentsmd-scaffoldmajiayu000/spellbookSkill3034d agoMITA73Claude Code, Codex
cao-session-managementawslabs/cli-agent-orchestratorSkill1.9kyesterdayApache-2.0B83Claude Code
workflowzhinkgit/embeddedskillsSkill829yesterdayMITA65Claude Code
agent-deckasheshgoplani/agent-deckSkill1.4kyesterdayMITA63Claude Code, Codex
fast-resumeangristan/fast-resumeSkill198yesterdayMITA50Claude Code, Codex
pneuma-sessionpandazki/pneuma-skillsSkill1624d agoMITA127Claude Code, Codex
lov-organize-storagelovstudio/skillsSkill72todayMITA58Claude Code