scaffold

A project-aware command that creates a complete starting structure for a feature by following patterns already used in the codebase. It can save its plan and progress so unfinished work can continue later.

In plain words
What is it for?
Use it to start features or components, preview the planned files, resume interrupted scaffolding, or check its progress.
Why use it?
It reduces the need to manually decide which files and components a new feature needs, while keeping track of incomplete scaffolding across sessions.

Command

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.

agentmods
npx agentmods add commands/brennercruvinel/ccplugins/scaffold
Clone the repo
git clone --depth 1 https://github.com/brennercruvinel/CCPlugins
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 955 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00955
Opus 5 $0.00000 $0.00477
Sonnet 5 $0.00000 $0.00191
Haiku 4.5 $0.00000 $0.00096

Measured 3d ago against content hash 89053471ec90, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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.

commands/scaffold.md · 168 lines

How it starts

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

Intelligent Scaffolding

I'll create complete feature structures based on your project patterns, with full continuity across sessions.

Arguments: $ARGUMENTS - feature name or component to scaffold

Session Intelligence

I'll maintain scaffolding progress across sessions:

Session Files (in current project directory):

  • scaffold/plan.md - Scaffolding plan and component list
  • scaffold/state.json - Created files and progress

IMPORTANT: Session files are stored in a scaffold folder in your current project root

Auto-Detection:

  • If session exists: Resume incomplete scaffolding
  • If no session: Create new scaffolding plan
  • Commands: resume, status, new

Phase 1: Pattern Discovery

MANDATORY FIRST STEPS:

  1. Check if scaffold directory exists in current working directory
  2. If directory exists, check for session files:
    • Look for scaffold/state.json
    • Look for scaffold/plan.md
    • If found, resume from existing session
  3. If no directory or session exists:
    • Analyze project patterns
    • Create scaffolding plan
    • Initialize progress tracking
  4. Show scaffolding preview before creating

Note: Always look for session files in the current project's scaffold/ folder, not ../../../scaffold/ or absolute paths

I'll discover your project patterns:

Pattern Analysis:

  • File organization structure
  • Naming conventions
  • Testing patterns
  • Import/export styles
  • Documentation standards

Smart Detection:

  • Find similar features already implemented
  • Identify architectural patterns
  • Detect testing frameworks
  • Understand build configuration

Phase 2: Scaffolding Planning

Based on patterns, I'll create a scaffolding plan:

Component Structure:

  • Main feature files
  • Test files
  • Documentation
  • Configuration updates
  • Integration points

I'll write this plan to scaffold/plan.md with:

  • Each file to create
  • Template patterns to follow
  • Integration requirements
  • Creation order

Phase 3: Intelligent Generation

Read the full file on GitHub · 168 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. 3d ago First seen · 168 lines · 0 tokens per session scan A 89053471ec90

Subscribe to this mod's changes

scaffold is a command published in the GitHub repository brennercruvinel/CCPlugins (2,780 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 955 tokens. 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.