scaffold

scaffold is a skill for Claude Code, Codex from mhmdreza-rafiei/agent-tools. It costs 77 tokens per session (694 once invoked), scanned A, original, MIT.

A feature-skeleton workflow that creates the basic files, types, test placeholders, documentation stub, and registration needed to start implementation.

In plain words
What is it for?
Use it after planning a feature to create a module, type definitions, starter tests, documentation, and required registration.
Why use it?
It prevents repeated boilerplate work and keeps new features aligned with the project's existing file and testing conventions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after planning a feature to create a module, type definitions, starter tests, documentation, and required registration.

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

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 scaffold

README.md
[![agentmods](https://agentmods.dev/badge/skills/mhmdreza-rafiei/agent-tools/scaffold/github.svg)](https://agentmods.dev/skills/mhmdreza-rafiei/agent-tools/scaffold)
Your own site
<a href="https://agentmods.dev/skills/mhmdreza-rafiei/agent-tools/scaffold"><img src="https://agentmods.dev/badge/skills/mhmdreza-rafiei/agent-tools/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/mhmdreza-rafiei/agent-tools/scaffold"><img src="https://agentmods.dev/badge/skills/mhmdreza-rafiei/agent-tools/scaffold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 694 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.
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.00077 $0.00694
Opus 5 $0.00039 $0.00347
Sonnet 5 $0.00015 $0.00139
Haiku 4.5 $0.00008 $0.00069

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

Security

Grade A, and why

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

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/workflow/scaffold/SKILL.md · 75 lines

How it starts

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

/scaffold

Lay down the skeleton of a feature in one pass so the implementer starts at the logic, not the boilerplate. Scaffold reads the project's existing conventions and mimics them — naming, layout, test runner, doc style.

When to use

After /spec and /architect, before the real implementation; when the user says "scaffold " or "stub "; on /scaffold.

Commands

  • /scaffold <feature> — scaffold a named feature.
  • /scaffold <feature> --type <api|cli|ui|lib> — hint the shape.
  • /scaffold --dry-run — print the file list without writing.

Step 1 — Read the project's conventions

  • Find a neighbor module of the same kind and copy its: file layout, naming (snake_case / camelCase), test runner + location, doc style, export style.
  • Detect the language/framework from the manifest.
  • If no clear neighbor, ask once which convention to follow.

Step 2 — Plan the file set

A feature skeleton usually includes (omit what doesn't apply):

  • Module — the entry file (empty or with the type signature + TODO).
  • Types — a types file if the language separates them.
  • Tests stub — one passing trivial test + one TODO test, so the runner is wired.
  • Docs stub — a one-line module doc + a TODO for the real doc.
  • Registration — wire the new module into the index/router/CLI as the project expects.

Step 3 — Write + verify

  • Write the files using the detected conventions.
  • Run the test stub to confirm the runner sees it (one passing trivial test).
  • Run the linter/typecheck if present.

Output

  • The skeleton files, committed per git-workflow as feat(<feature>): scaffold skeleton.
  • A passing trivial test proving the runner is wired.

Constraints

  • Mimic existing conventions; do not introduce a new pattern.
  • Stubs only — no real logic. The implementer fills the TODOs.
  • One passing trivial test, not a real test suite.
  • Follow rule/files-folders-structure for paths.

Read the full file on GitHub · 75 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. 7d ago First seen · 75 lines · 77 tokens per session scan A cc53780f4b7f

Subscribe to this mod's changes

scaffold is a skill published in the GitHub repository mhmdreza-rafiei/agent-tools (5 stars, last pushed 23d ago), licensed MIT. It adds 77 tokens to every session and 694 once invoked, about $0.0004 per session on Opus 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-09-03.

Related

Other skills, from other repositories

ag-pipeline-issue

Pipeline Issue→SPEC→Build→Verify→Test. Toda GitHub Issue gera SPEC antes de implementar, e toda implementacao e verificada contra a SPEC e testada. Use when starting work on a GitHub Issue.

andregusman-raiz/a-gusman-claude · 51 tokens

hardening-gate-fixtures

Build truthful hardening-gate fixture scenarios for blocked, approved-deferral, and ready contract coverage.

alonf/specrew · 27 tokens

ds-build

Plan executor — take an issue, a specs/{feature}/tasks.md, or a plain request and implement it unit by unit with a verify signal per unit, red-proven tests, budgeted backtracking, and a code-proven close. Use when the plan exists and the work is to be done, not planned.

sungurerdim/dev-skills · 68 tokens

project-setup

Bootstrap new projects with strong typing, linting, formatting, and testing. Supports Python, TypeScript, and other languages with research fallback.

ratacat/claude-skills · 32 tokens

bmad-agent-dev

Senior software engineer for story execution and code implementation. Use when the user asks to talk to Amelia or requests the developer agent.

pedrol-cmd/brain-drin · 30 tokens

migrate-xunit-to-xunit-v3

Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…

dotnet/skills · 149 tokens