init-domain

init-domain is a skill for Claude Code, Codex from voro6yov/spec-driven-development. It costs 61 tokens per session (1,126 once invoked), scanned A, original, Apache-2.0.

A project-wide initializer that creates the shared domain and test structure needed by later domain code generators. It discovers the application package under src/ and prepares shared and test directories.

In plain words
What is it for?
Run it once at the start of a project to prepare src/domain/shared and src/tests, while leaving aggregate-specific packages to later steps.
Why use it?
It removes the repetitive setup work required before generating domain code for individual aggregates.

Skill for Claude CodeCodex

Part of the domain-spec plugin — 2 skills, 1 command, 12 agents shipped together

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 skills/voro6yov/spec-driven-development/init-domain
Any agent
npx skills add voro6yov/spec-driven-development --skill init-domain
Clone the repo
git clone --depth 1 https://github.com/voro6yov/spec-driven-development

Made for: Claude Code, Codex.

Or install domain-spec, the plugin that ships this one along with the rest of its 2 skills, 1 command, 12 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-domain

README.md
[![agentmods](https://agentmods.dev/badge/skills/voro6yov/spec-driven-development/init-domain.svg)](https://agentmods.dev/skills/voro6yov/spec-driven-development/init-domain)
Your own site
<a href="https://agentmods.dev/skills/voro6yov/spec-driven-development/init-domain"><img src="https://agentmods.dev/badge/skills/voro6yov/spec-driven-development/init-domain.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,126 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.00061 $0.01126
Opus 5 $0.00030 $0.00563
Sonnet 5 $0.00012 $0.00225
Haiku 4.5 $0.00006 $0.00113

Measured 4d ago against content hash 4b925b7eb83f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

init-domain 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 4d 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/domain-spec/skills/init-domain/SKILL.md · 118 lines

How it starts

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

You are the project-wide domain initializer. Ensure that the current repository has the minimum directory structure required for any subsequent @domain-spec:code-generator (or /generate-domain) run: a discoverable project package under src/, an initialized domain/ package containing shared/, and an initialized tests/ package. This skill performs no aggregate-specific work — per-aggregate sub-packages are still owned by domain-spec:package-preparer.

Inputs

None. The skill operates entirely on the current working directory.

Output discipline

This skill is silent on success. Print nothing — not even a closing confirmation — when every step succeeds, whether the work happened or was already done. Print only on failure: a single ERROR: ... line naming the failure, then stop. Do not summarize, do not emit progress text, do not echo sub-agent confirmation lines.

Workflow

Step 1 — Discover src/ and the project package

Invoke @spec-core:project-package-finder with prompt /init-domain. Wait for completion. If it returns a line beginning ERROR:, surface that line verbatim and stop.

Otherwise parse its report table and bind <repo> = the Repo value, <src> = the Src value, and <pkg> = the Package value.

Bind:

  • <domain_dir> = <src>/<pkg>/domain
  • <tests_dir> = <src>/tests

Step 2 — Bootstrap the domain package

Ensure the domain package directory exists with an __init__.py and contains the canonical shared sub-package copied from the spec-core:modules umbrella. This step never creates per-aggregate sub-packages — that responsibility belongs to domain-spec:package-preparer.

<domain_dir> is always bound from Step 1 (it is <src>/<pkg>/domain), so it is absolute and its parent (<src>/<pkg>) is the discovered project package. No re-derivation is needed.

2a. Ensure the domain directory exists. Check whether <domain_dir> already exists:

[ -d "<domain_dir>" ]

If it does not exist, create it as a Python package:

Read the full file on GitHub · 118 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. 4d ago First seen · 118 lines · 0 tokens per session scan A 4b925b7eb83f

Subscribe to this mod's changes

init-domain is a skill published in the GitHub repository voro6yov/spec-driven-development (4 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 61 tokens to every session and 1,126 once invoked, about $0.0003 per session on Opus 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens