sw-init

sw-init is a skill for Claude Code from Obsidian-Owl/specwright. It costs 31 tokens per session (2,524 once invoked), scanned A, original, MIT.

A setup process for Specwright, a system that organizes coding work and quality standards. It detects the project's programming tools, asks about working practices, and creates configuration and guiding documents.

In plain words
What is it for?
Use it when adding Specwright to a project for the first time, configuring its quality gates and hooks, and creating the project charter, constitution, and work areas.
Why use it?
It gives future coding sessions a shared understanding of the project, its standards, and its work records. It also creates the initial shared and local state needed to use the workflow.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit Use it when adding Specwright to a project for the first time, configuring its quality gates and hooks, and creating the project charter, constitution, and work areas.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/obsidian-owl/specwright/sw-init
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 Obsidian-Owl/specwright --skill sw-init
Clone the repo
git clone --depth 1 https://github.com/Obsidian-Owl/specwright

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/obsidian-owl/specwright/sw-init"><img src="https://agentmods.dev/badge/skills/obsidian-owl/specwright/sw-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,524 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.00031 $0.02524
Opus 5.5 $0.00012 $0.01010
Sonnet 5.5 $0.00006 $0.00505
Haiku 4.5 $0.00003 $0.00252

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

Security

Grade A, and why

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

core/skills/sw-init/SKILL.md · 194 lines

How it starts

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

Specwright Init

Goal

Set up Specwright in this project by understanding how the user works, what they're building, and what quality standards they expect. Produce configuration and anchor documents that will guide all future work. Tracked project artifacts should be shared across developers and agent sessions via Git; runtime session state stays local to each clone or worktree. New interactive installs should prefer project-visible runtime roots under .specwright-local/, while git-admin roots under .git/specwright/ remain compatibility-only.

Inputs

  • The codebase (scan for language, framework, dependencies, test runner)
  • The user (ask about practices, vision, quality expectations)

Outputs

When complete, ALL of the following exist:

  • {projectArtifactsRoot}/config.json -- detected + configured project settings
  • {projectArtifactsRoot}/CONSTITUTION.md -- development practices the AI must follow
  • {projectArtifactsRoot}/CHARTER.md -- technology vision and project identity
  • {repoStateRoot}/work/ -- shared work root, initialized and empty
  • {worktreeStateRoot}/session.json -- initialized detached top-level session for the current worktree

Optional (created if the user opts in):

  • {projectArtifactsRoot}/TESTING.md -- testing strategy: boundaries, infrastructure, mock allowances
  • Hooks set up if the user wants them
  • Operator follow-up: tell the user to run /sw-status to confirm the active runtime roots and detached session state.

Quality gates are configured in config (all six default to enabled; user may disable).

Constraints

Worktree context (LOW freedom):

  • Check worktreeContext per protocols/context.md.
  • If linked, explain that tracked project artifacts under {projectArtifactsRoot} are shared across developers and agent sessions via Git, while runtime session state stays local to each clone or worktree under {repoStateRoot} and {worktreeStateRoot}.
  • If the shared layout already exists, reuse the tracked project artifacts and shared runtime roots, then create or repair only this worktree's {worktreeStateRoot}/session.json.
  • If the shared layout does not exist yet, say that /sw-init will create the tracked project-artifact root plus repo-level runtime state under the Git common dir and a session root for the current worktree. This is a warning, not a block.

Read the full file on GitHub · 194 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 · 194 lines · 31 tokens per session scan A 5e02989fed2e

Subscribe to this mod's changes

sw-init is a skill published in the GitHub repository Obsidian-Owl/specwright (10 stars, last pushed 5mo ago), licensed MIT. It adds 31 tokens to every session and 2,524 once invoked, about $0.0001 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

rust-skills

Rust best practices — 179 rules across 14 categories for idiomatic, optimized Rust code.

martineserios/thebrana · 23 tokens

new-skill

Scaffold a new brooks-lint analysis skill so it passes npm run validate and npm run evals on the first try — generates skills/{name}/SKILL.md (with the mandatory "Do NOT trigger for:" clause and a Process section citing guide step ranges) plus skills/{name}/{name}-guide.md (sequentially numbered steps), then appends…

hyhmrright/brooks-lint · 145 tokens

llm-friendly-context

Clarifies inputs, outputs, success criteria, decisions, and unresolved conditions so downstream consumers can execute without guessing. Use when writing or revising LLM-facing prompts, handoffs, planning artifacts, reviews, reports, or generated instructions.

shinpr/claude-code-workflows · 52 tokens

import-spec

Imports a spec-kit feature spec into Shipyard in place of brainstorming. Use when a spec-kit feature directory with spec.md exists.

lgbarn/shipyard · 29 tokens

shipyard-ship

Use when delivering or releasing a completed Shipyard phase under Codex — final verification, pre-ship security audit, documentation, and release. Trigger when the user says "ship it", "ship this phase", "release this", "we're done — finalize", or "run the shipyard ship workflow". This is the Codex inline-sequential…

lgbarn/shipyard · 86 tokens

brainstorm

Explores a codebase, researches the problem space, and produces an approved design specification before any code is written. Use when the user wants to create a new feature, add significant functionality, redesign a subsystem, or build something that touches multiple parts of the project.

greglas75/zuvo · 56 tokens