init

init is a skill for Claude Code, Codex from ribeirogab/specwright. It costs 94 tokens per session (1,261 once invoked), scanned A, original, MIT.

A setup workflow for adding Specwright project files and instructions to a repository.

In plain words
What is it for?
Use it to create the .specwright vault, update the canonical agent instructions, install role profiles, and add ignore rules.
Why use it?
It creates only the missing project configuration, helping the repository use Specwright workflows consistently without overwriting existing setup.

Skill for Claude CodeCodex

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

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 sw plugin — 8 skills, 8 commands, 2 agents shipped together

Good fit Use it to create the .specwright vault, update the canonical agent instructions, install role profiles, and add ignore rules.

Compare 6 skills from other repositories ↓
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 ribeirogab/specwright
Claude Code
/plugin install sw

Made for: Claude Code, Codex.

Or install sw, the plugin that ships this one along with the rest of its 8 skills, 8 commands, 2 agents.

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 init

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ribeirogab/specwright/init"><img src="https://agentmods.dev/badge/skills/ribeirogab/specwright/init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,261 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.00094 $0.01261
Opus 5.5 $0.00038 $0.00504
Sonnet 5.5 $0.00019 $0.00252
Haiku 4.5 $0.00009 $0.00126

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

Security

Grade A, and why

init 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 1mo 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.

plugins/sw/skills/init/SKILL.md · 121 lines

How it starts

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

init — set up specwright in this repository

The plugin already provides every workflow skill. This command creates only project-scoped content, and only what is missing:

  • the .specwright/ vault;
  • a ## specwright section in the canonical AGENTS instructions, plus the Claude adapter symlink;
  • the ignore rules for the chosen mode.

That is the whole list. Role profiles are not project state — see step 5.

It never installs or enables a plugin, edits personal host configuration, copies skill bodies, or creates .claude/settings.json.

Announce at start: "Setting up specwright..."

1. Resolve the plugin root

Resolve SW_PLUGIN_ROOT before any project write:

  1. use PLUGIN_ROOT when it contains .codex-plugin/plugin.json;
  2. otherwise use CLAUDE_PLUGIN_ROOT when it contains .claude-plugin/plugin.json;
  3. otherwise derive it from this loaded skills/init/SKILL.md real path — the plugin root is two parents above the skills/init/ directory.

Require scripts/sw_init.py and both templates/codex-agents/sw-*.toml beneath that root. Stop before writing if resolution fails, and report the missing path. Never look for bundled resources inside the target repository.

2. Pick the mode

Ask once, unless $ARGUMENTS already says shared or local:

  • shared — specwright state is versioned with the project. Tracks .specwright/, AGENTS.md, CLAUDE.md -> AGENTS.md, and the two Codex profiles. Ignores only .specwright/worktrees/. Pick this for your own repo.
  • local — specwright state stays private to this checkout. Uses AGENTS.override.md, CLAUDE.local.md -> AGENTS.override.md, and ignores the whole vault, both instruction paths, and the profiles. Pick this for a repo you cannot or would rather not commit workflow artifacts to.

The canonical instruction file is always the AGENTS* path; the CLAUDE* path is only a compatibility symlink, never the source of truth.

3. Run the scaffolder

python3 "$SW_PLUGIN_ROOT/scripts/sw_init.py" \
  --project "$PWD" \
  --mode "<shared-or-local>"

Read the full file on GitHub · 121 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. 1mo ago First seen · 121 lines · 94 tokens per session scan A df9cd0f7df70

Subscribe to this mod's changes

init is a skill published in the GitHub repository ribeirogab/specwright (3 stars, last pushed 2mo ago), licensed MIT. It adds 94 tokens to every session and 1,261 once invoked, about $0.0004 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

Other skills, from other repositories

template-sia

SIA (Self-Improvement Agent) harness exemplar — Meta/Target/Feedback loops, public/private splits, fixture replay, fail-closed validation.

docxology/template · 35 tokens

review-depth

Decide how much review a change has earned, before reviewing it. Selects quick, standard, or deep from stated signals (reviewable changed lines, directory spread, trust-boundary risk flags, blast radius, documentation-only scope), reports the signal table and the rule that fired, then runs house-review at the selected…

hams-ollo/zen-agent-skills · 180 tokens

systematic-debugging

Use when a defect, test failure, flaky test, or unexpected behavior needs its cause established before anyone writes a task file or a fix. Reproduces the report first, localizes the failure to the boundary where behavior diverges, then tests one hypothesis at a time and returns a deterministic verdict, so a run that…

hams-ollo/zen-agent-skills · 209 tokens

doc-sync

Use when code has moved and the documentation may not have, or when a documentation set needs auditing for stale claims. Detects documentation drift by checking prose claims against repository facts, classifies every document as current-state (correctable), contract (report-only, human-owned) or ledger (skipped), and…

hams-ollo/zen-agent-skills · 193 tokens

init-worktracking

Scaffold a portable, agent-optimized spec-driven work-tracking system into the current repository: AGENTS.md (global rules + agent reading protocol), a .tasks/ directory of atomic task files, and (by tier) ROADMAP.md, CHANGELOG.md, a validate.py checker, and thin CLAUDE.md/Cursor/Copilot pointers. Choose a footprint…

hams-ollo/zen-agent-skills · 207 tokens

reconcile-worktrees

Safely consolidate one or more isolated git worktrees (for example left behind by parallel background agents, or from the fix-batch skill) into the main working tree, without committing or merging blindly. Use whenever asked to "reconcile the worktrees", "merge these agent branches", "bring the worktree changes back…

hams-ollo/zen-agent-skills · 161 tokens