adr-workflow
Scaffold, accept, index, and link Architectural Decision Records (ADRs). Use when the user says "write an ADR", "record this decision", "resolve [deferred…
Initialize an AI-native development workspace with spec-driven workflow infrastructure. Use when starting a new project, setting up Claude Code on a codebase for the first time, or when the user says scaffold, initialize, set up AI workflow, onboard this repo, or similar. Do not
$ npx -y skills add ramboz/jig --skill scaffold-init --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/scaffold-initContext preview
The summary Claude sees to decide when to auto-load this skill.
Initialize an AI-native development workspace with spec-driven workflow infrastructure. Use when starting a new project, setting up Claude Code on a codebase for the first time, or when the user says scaffold, initialize, set up AI workflow, onboard this repo, or similar. Do not
name: scaffold-init description: > Initialize an AI-native development workspace with spec-driven workflow infrastructure. Use when starting a new project, setting up Claude Code on a codebase for the first time, or when the user says scaffold, initialize, set up AI workflow, onboard this repo, or similar. Do not use for adding an individual skill or config to an already- scaffolded project — that is handled by the relevant tier skill directly. user-invocable: true
> 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](../../docs/specs/001-scaffold-init/spec.md).
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.
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 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-agentsThe default destination is `~/.codex/agents`. Use `--codex-agents-dir <dir>` to target a different Codex agents directory. The helper refuses to overwrite user-owned `jig-*.toml` files unless `--force` is passed.
Ask each question in order. **Each question is independently skippable** — if the user says "skip", "I don't know", "unsure", or similar, do not pass the flag (the wizard's filesystem inference handles it).
1. **Runtime/language** — "What runtime or language is this project? (e.g. Python, TypeScript, Go, Rust, mixed, unsure)" → `--runtime <name>` if answered; omit if skipped or unsure. 2. **Team context** — "Solo project or team setting?" → `--team` for team, `--solo` for solo; omit if skipped (uses git-author detection). 3. **Existing CI** — "Does the project already have CI configured?" → `--has-ci` for yes, `--no-ci` for no; omit if skipped. 4. **Existing tests** — "Does the project already have a test suite?" → `--has-tests` for yes, `--no-tests` for no; omit if skipped. This affects whether tier-1 (`tdd-loop` and friends) is auto-installed. 5. **LLM/agent work planned** — "Will this project involve LLM or agent development?" → `--plans-ai` for yes, `--no-ai` for no; omit if skipped. This affects whether tier-2 is offered. 6. **Machinery vs. plugin** — "Will this project ever run jig where the plugin may NOT be installed — CI, cloud agents, or teammates without jig? (yes → copy jig's machinery into the repo; no → use the installed plugin)" → `--in-repo` for yes; **omit for no** (plugin mode is the default). Skipping selects plugin mode. This is the one architectural question in the flow (it decides repo topology — what gets committed), so it won't appear in the project's own docs. Default to plugin mode (lean repo, jig updates flow from the plugin); choose `--in-repo` only for the self-contained cases above. See [ADR-0041](../../docs/decisions/adr-0041-scaffold-defaults-to-plugin-mode.md).
Skipping every question is the legitimate "pure inference" mode (slice 001-03 behavior) — the wizard infers from filesystem signals alone, and defaults to plugin mode. Do not invent answers when the user is unsure.
After running, the target directory contains (plugin mode — the default):
the ADR-0013 destructive-command deny floor (`git push --force`, `git reset --hard`, `rm -rf`). Hosts with no project-scoped permission surface get no such file and no deny floor.
> For what your project actually received: `scaffold.json` records the mode and > host, and your host's own settings file (if it has one) carries the deny > floor. (This section is deliberately host-neutral — it is machine-translated > per host.)
In plugin mode jig's skills, agents, and hooks stay under the installed plugin and run from the plugin root — no *machinery* is copied into the repo. The one exception is the permissions file above: `permissions.deny` lives in the project's own settings and no plug
A Claude Code and Codex plugin that scaffolds AI-native development practices into new projects. jig adds a repeatable spec, implementation, review, and memory workflow to AI-assisted software projects.
Scaffold, accept, index, and link Architectural Decision Records (ADRs). Use when the user says "write an ADR", "record this decision", "resolve [deferred…
Cross-artifact consistency report for jig specs — a non-destructive six-category audit at CRITICAL/HIGH/MEDIUM/LOW severity, covering duplication, ambiguity,…
Team baseline for architecture, design-doc, and RFC review — produces summary, strengths, concerns, and open questions. Auto-triggers when you say review this…
Drive the teeth-gated lifecycle for reported defects: diagnose root cause, prove it, and prevent regression through REPORTED → DIAGNOSING → ROOT_CAUSED →…
Lightweight spec clarification scan for jig projects — a six-category ambiguity audit that asks up to five prioritized questions and appends them to the spec's…
Run a static-analysis pass on a project — detect the ecosystem (Python or Node), drive its linter (ruff / eslint, plus advisory pyright/complexity/ prettier…