scaffold

scaffold is a skill for Claude Code from AnantKumar17/repo-scaffold. It costs 59 tokens per session (8,110 once invoked), scanned C, original, MIT.

A repository setup tool that studies a codebase and creates guidance files for Claude Code, including CLAUDE.md, AGENTS.md, and project-specific skills. A monorepo is one repository containing several related packages; this tool can target one package in that setup.

In plain words
What is it for?
Use it to initialize Claude Code context, regenerate the guidance, preview changes without writing files, or create only the selected guidance files or skills.
Why use it?
It saves developers from writing project instructions by hand and gives coding agents information about the repository’s structure, tools, and conventions.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the repo-scaffold plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it to initialize Claude Code context, regenerate the guidance, preview changes without writing files, or create only the selected guidance files or skills.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anantkumar17/repo-scaffold/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 AnantKumar17/repo-scaffold --skill scaffold
Clone the repo
git clone --depth 1 https://github.com/AnantKumar17/repo-scaffold

Made for: Claude Code.

Or install repo-scaffold, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

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 scaffold

README.md
[![agentmods](https://agentmods.dev/badge/skills/anantkumar17/repo-scaffold/scaffold/github.svg)](https://agentmods.dev/skills/anantkumar17/repo-scaffold/scaffold)
Your own site
<a href="https://agentmods.dev/skills/anantkumar17/repo-scaffold/scaffold"><img src="https://agentmods.dev/badge/skills/anantkumar17/repo-scaffold/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 scaffold

Your own site · 80×15
<a href="https://agentmods.dev/skills/anantkumar17/repo-scaffold/scaffold"><img src="https://agentmods.dev/badge/skills/anantkumar17/repo-scaffold/scaffold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,110 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00059 $0.08110
Opus 5 $0.00030 $0.04055
Sonnet 5 $0.00012 $0.01622
Haiku 4.5 $0.00006 $0.00811

Measured 10d ago against content hash b2d8cc421711, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

scaffold scanned grade C with 2 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 10d ago.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat ~/.claude/plugins/cache/local/repo-scaffold/1.0.0/skills/scaffold/templates/claude-md.template.md

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

ls -1 .claude/skills/ 2>/dev/null || echo "NONE"
skills/scaffold/SKILL.md · 933 lines

How it starts

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

Scaffold Skill

Overview

When invoked, perform a complete repository analysis and generate CLAUDE.md and skills. Follow these steps exactly and in order.

Step 1: Parse Arguments and Check Current State

Parse Mode Flags

Check the arguments for flags:

  • --dry-run: Preview mode, don't write files
  • --force: Regenerate everything, skip confirmations
  • --skills-only: Only generate skills (skip CLAUDE.md and AGENTS.md)
  • --claude-md-only: Only generate CLAUDE.md (skip skills and AGENTS.md)
  • --agents-md-only: Only generate AGENTS.md (skip CLAUDE.md and skills)
  • --package <name>: Monorepo mode, target specific package

If no flag is specified, perform a full generation (CLAUDE.md + AGENTS.md + skills).

Store the mode for later steps.

Check Current State

Run these checks:

  1. Check if CLAUDE.md exists:

    test -f CLAUDE.md && echo "EXISTS" || echo "MISSING"
    
  2. Check if .claude/skills/ directory exists:

    test -d .claude/skills && echo "EXISTS" || echo "MISSING"
    
  3. If CLAUDE.md exists, read its first line to check for the scaffold marker:

    head -1 CLAUDE.md
    
  4. If .claude/skills/ exists, list all skill directories:

    ls -1 .claude/skills/ 2>/dev/null || echo "NONE"
    
  5. Check for monorepo structure:

    ls -1 {turbo.json,nx.json,lerna.json,pnpm-workspace.yaml} 2>/dev/null | head -1
    

Store these results as your "current state".

Step 2: Reconnaissance

Gather comprehensive repository data. Use Read, Glob, and Bash tools.

A. Configuration Files

Read full content if found (use Read tool):

  • package.json / pyproject.toml / Cargo.toml / go.mod / pom.xml / build.gradle
  • tsconfig.json / jsconfig.json
  • .eslintrc* / .prettierrc* / ruff.toml / .rubocop.yml / golangci.yml
  • next.config.* / vite.config.* / webpack.config.* / nuxt.config.*
  • docker-compose.yml / Dockerfile
  • .env.example / .env.template
  • turbo.json / nx.json / lerna.json / pnpm-workspace.yaml (for monorepos)

Read the full file on GitHub · 933 lines

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. 10d ago First seen · 933 lines · 59 tokens per session scan C b2d8cc421711

Subscribe to this mod's changes

scaffold is a skill published in the GitHub repository AnantKumar17/repo-scaffold (2 stars, last pushed 4mo ago), licensed MIT. It adds 59 tokens to every session and 8,110 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 2 findings (reads agent configuration directories, enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

miniapp-devtools-cli-repair

Diagnose WeChat DevTools failures through the official CLI instead of relying only on GUI screenshots. Use when Codex needs to run open, preview, or related commands, discover the live service port, classify whether a failure is CLI-visible, host-side, or outside preview scope, and apply or suggest only safe…

Sun-sunshine06/miniprogram-skills · 76 tokens

miniapp-center-hub-refactor

Refactor a growing WeChat Mini Program whose top-level navigation has become scattered across tabs such as home, profile, inbox, integrations, or settings into a clearer hub or center structure. Use when Codex needs to regroup top-level tabs, separate high-frequency action flows from low-frequency settings, define…

Sun-sunshine06/miniprogram-skills · 83 tokens

miniapp-devtools-gui-check

Use host-side WeChat DevTools automation to inspect GUI-only runtime and interaction failures that do not show up in CLI preview. Trigger when page entry, taps, websocket-based DevTools automation, or run-directory evidence such as report.json and trace.log are needed to separate repo bugs from IDE session problems…

Sun-sunshine06/miniprogram-skills · 83 tokens

miniapp-devtools-recovery

Recover a WeChat Mini Program repository after wrong-root import, DevTools template residue, stale compile conditions, or TypeScript-recognition drift. Use when Codex needs to restore the intended repo shape, remove generated clutter, or tell the user exactly what to fix inside DevTools.

Sun-sunshine06/miniprogram-skills · 63 tokens

miniapp-official-scaffold-alignment

Validate or design a WeChat Mini Program scaffold, repository layout, or TypeScript setup against official platform rules. Use when Codex needs to review project.config.json, app.json, miniprogramRoot, page or component file sets, or the initial repo skeleton before feature work begins.

Sun-sunshine06/miniprogram-skills · 69 tokens

miniapp-user-facing-copy-trim

Simplify on-page WeChat Mini Program copy so main surfaces become shorter, more action-first, and more user-facing. Use when Codex needs to trim verbose labels, mixed implementation detail, over-explained settings, or long empty-state and status text without changing the underlying business flow.

Sun-sunshine06/miniprogram-skills · 66 tokens