scaffold-init

scaffold-init is a skill for Claude Code, Codex from ramboz/jig. It costs 85 tokens per session (2,182 once invoked), scanned C, original, MIT.

A project setup tool that creates a ready-to-use workspace for developing with AI coding agents. It reads the project files, detects signs such as tests or existing agent setup, and chooses which setup pieces to add.

In plain words
What is it for?
Use it when starting a project, onboarding an existing codebase, or setting up Claude Code for the first time.
Why use it?
Starting an AI-assisted project can require many configuration files and decisions. This gives the project a consistent starting structure without overwriting one that is already set up.

Skill for Claude CodeCodex

Written for Claude Code and Codex: user-invocable in frontmatter, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the jig plugin — 20 skills shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ramboz/jig
Claude Code
/plugin install jig

Made for: Claude Code, Codex.

Or install jig, the plugin that ships this one along with the rest of its 20 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ramboz/jig/scaffold-init.svg)](https://agentmods.dev/skills/ramboz/jig/scaffold-init)
Your own site
<a href="https://agentmods.dev/skills/ramboz/jig/scaffold-init"><img src="https://agentmods.dev/badge/skills/ramboz/jig/scaffold-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,182 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.1 $0.00085 $0.02182
Opus 5 $0.00043 $0.01091
Sonnet 5 $0.00017 $0.00436
Haiku 4.5 $0.00009 $0.00218

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

Security

Grade C, and why

scaffold-init scanned grade C with 1 finding 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 5d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (governance.py, scaffold.py, stocktake.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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

`git reset --hard`, `rm -rf`). Hosts with no project-scoped permission surface
hosts/claude/skills/scaffold-init/SKILL.md · 165 lines

How it starts

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

Spec 001 is fully implemented: greenfield-scaffold, doc-content, signal-detection, deferred-decisions, and Q&A wizard. See docs/specs/001-scaffold-init/spec.md.

What this skill does

Generates an AI-native development workspace by copying templates from ${CLAUDE_PLUGIN_ROOT}/templates/ into a target directory. Detects project signals from the filesystem (LLM/agent files, CI, tests, team), runs an optional Q&A flow to let the user override those signals, and selects tiers accordingly. Tier 0 always installs; Tier 1 installs when test signals are present; Tier 2 is offered (not auto-installed) when LLM/agent signals are present.

How to use

  1. Determine the target directory. Default: the current working directory. If you're unsure, ask the user once before scaffolding.
  2. Check if the target already has a scaffold.json or docs/specs/ — if so, the project is already scaffolded. Stop and tell the user rather than overwriting.
  3. Run the Q&A flow (see next section). Collect answers as flag values.
  4. Invoke the wizard with the collected flags:
    python3 "${CLAUDE_PLUGIN_ROOT}/skills/scaffold-init/scaffold.py" \
      [--runtime <name>] [--team|--solo] [--has-ci|--no-ci] \
      [--has-tests|--no-tests] [--plans-ai|--no-ai] \
      [--in-repo] \
      <target-dir>
    
    With no machinery flag the wizard scaffolds plugin mode — the lean default (docs + primer only; jig runs from the installed plugin). Pass --in-repo only when the sixth question is answered "yes".
  5. Read the wizard's stdout summary and report back to the user. List the files that were created and the immediate next steps.

Codex custom-agent install

Codex scaffold mode (--host codex) writes project-local custom agents as TOML under .codex/agents/. For Codex plugin users who want jig's role agents globally available, run the explicit post-install helper:

python3 "${CLAUDE_PLUGIN_ROOT}/skills/scaffold-init/scaffold.py" --install-codex-agents

Read the full file on GitHub · 165 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. 5d ago First seen · 165 lines · 85 tokens per session scan C a8a6ea18d72a

Subscribe to this mod's changes

scaffold-init is a skill published in the GitHub repository ramboz/jig (6 stars, last pushed 5d ago), licensed MIT. It adds 85 tokens to every session and 2,182 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.