scaffolding

scaffolding is a skill for Claude Code from rbah31/claude-code-workflow. It costs 122 tokens per session (910 once invoked), scanned A, original, Apache-2.0.

A code-generation guide for creating new structural parts of a project, such as modules, services, endpoints, commands, components, and database migrations.

In plain words
What is it for?
Use it when scaffolding a new unit of code by studying existing examples and generating the pieces needed to connect and verify it.
Why use it?
It reduces the chance that new code will miss required files, tests, registrations, or project conventions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when scaffolding a new unit of code by studying existing examples and generating the pieces needed to connect and verify it.

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

Made for: Claude Code.

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 scaffolding

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rbah31/claude-code-workflow/scaffolding"><img src="https://agentmods.dev/badge/skills/rbah31/claude-code-workflow/scaffolding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 910 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.00122 $0.00910
Opus 5.5 $0.00049 $0.00364
Sonnet 5.5 $0.00024 $0.00182
Haiku 4.5 $0.00012 $0.00091

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

Security

Grade A, and why

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

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.

.claude/skills/scaffolding/SKILL.md · 106 lines

How it starts

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

Code Scaffolding

You generate new structural units (endpoints, commands, components, migrations, etc.) that follow the project's established patterns. The goal is consistency — every new unit looks like the existing ones, with nothing forgotten.

Read config.json in this skill directory for project-specific scaffolding config. If it doesn't exist, analyze the codebase to discover patterns, then save what you find for next time.

How it works

When asked to scaffold something new:

  1. Identify the pattern. Look at 2-3 existing examples of the same kind of unit in the codebase. Note the file structure, naming, imports, boilerplate, tests, and registration steps.

  2. Check templates. Look in templates/ for pre-built scaffolds. If a matching template exists, use it. If not, create one from the pattern you discovered for next time.

  3. Generate all pieces. A new endpoint isn't just a handler — it's the handler + route registration + validation + tests + docs update. Generate everything the pattern requires.

  4. Verify completeness. Check that the new unit is registered/imported where it needs to be. A handler that exists but isn't routed is invisible.

Template format

Templates in templates/ use simple placeholder syntax:

# templates/api-endpoint.md
Files to create:
- src/routes/{{name}}.py — handler
- tests/test_{{name}}.py — tests

Pattern to follow: see src/routes/health.py as reference.

Registration: add route in src/app.py

Don't forget:
- Input validation at the boundary
- Auth middleware (unless public)
- Error response shape: { data, error, meta }
- At least one happy-path test

Templates are reference docs, not rigid code generators. They tell you what to create and what not to forget, not exactly how to write it.

Setup

Create config.json after analyzing the project:

{
  "patterns_discovered": {
    "api_endpoint": {
      "example": "src/routes/health.py",
      "files": ["src/routes/{name}.py", "tests/test_{name}.py"],
      "registration": "src/app.py",
      "checklist": ["validation", "auth middleware", "error shape", "test"]
    },
    "bot_command": {
      "example": "src/bot/cogs/help.py",
      "files": ["src/bot/cogs/{name}.py", "tests/test_{name}.py"],
      "registration": "src/bot/main.py",
      "checklist": ["slash command decorator", "permissions", "error handling", "test"]
    }
  }
}

Read the full file on GitHub · 106 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. 3mo ago First seen · 106 lines · 122 tokens per session scan A 9ef4e2b30604

Subscribe to this mod's changes

scaffolding is a skill published in the GitHub repository rbah31/claude-code-workflow (5 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 122 tokens to every session and 910 once invoked, about $0.0005 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-31.

Related

scaffolding compared with skills from other repositories

scaffolding next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scaffoldingrbah31/claude-code-workflowSkill55mo agoApache-2.0A122Claude Code
validate-hypothesisJOINCLASS/ai-ceo-frameworkSkill63yesterdayMITA0Claude Code, Codex
backloga-lottes/aSPARKSkill2612d agoMITA94Claude Code
backend-developerolehsvyrydov/AI-development-teamSkill1811d agoMITA94Claude Code
javaolehsvyrydov/AI-development-teamSkill1811d agoMITA136Claude Code
sqlolehsvyrydov/AI-development-teamSkill1811d agoMITA94Claude Code
product-ownerolehsvyrydov/AI-development-teamSkill1811d agoMITA63Claude Code