generate-domain

generate-domain is a skill for Claude Code from voro6yov/spec-driven-development. It costs 47 tokens per session (600 once invoked), scanned A, original, Apache-2.0.

An orchestrator that generates both a domain specification and Python code from an aggregate's Mermaid class diagram. Mermaid is a text format for diagrams, while an aggregate is a related group of domain objects treated as one unit.

In plain words
What is it for?
Use it to create specifications, exceptions, a test plan, domain package code, fixtures, and unit tests from a diagram.
Why use it?
It connects specification and implementation into one workflow, reducing the chance of generating the design but forgetting the code phase.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit Use it to create specifications, exceptions, a test plan, domain package code…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/voro6yov/spec-driven-development/generate-domain
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 voro6yov/spec-driven-development --skill generate-domain
Clone the repo
git clone --depth 1 https://github.com/voro6yov/spec-driven-development

Made for: Claude Code.

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 generate-domain

README.md
[![agentmods](https://agentmods.dev/badge/skills/voro6yov/spec-driven-development/generate-domain.svg)](https://agentmods.dev/skills/voro6yov/spec-driven-development/generate-domain)
Your own site
<a href="https://agentmods.dev/skills/voro6yov/spec-driven-development/generate-domain"><img src="https://agentmods.dev/badge/skills/voro6yov/spec-driven-development/generate-domain.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 600 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.00047 $0.00600
Opus 5 $0.00023 $0.00300
Sonnet 5 $0.00009 $0.00120
Haiku 4.5 $0.00005 $0.00060

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

Security

Grade A, and why

generate-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 6d 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/generate-domain/SKILL.md · 46 lines

How it starts

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

You are a domain end-to-end orchestrator. Generate the domain spec and the domain code for the aggregate diagram in $ARGUMENTS by chaining two orchestrator agents sequentially. Each agent runs the heavy fan-out in its own isolated context and returns only a one-line report — this umbrella stays lean.

This is a TWO-PHASE skill

This skill is not complete until both phases finish:

  1. Phase 1domain-spec:specs-generator agent (writes <stem>.domain/specs.md, exceptions.md, test-plan.md)
  2. Phase 2domain-spec:code-generator agent (scaffolds the domain package, implements classes, writes fixtures and unit tests)

Phase 1 ends with its own confirmation line such as Spec generation complete for .... That message refers to Phase 1 only. It is not the end of this skill — you MUST continue to Phase 2 immediately. The single most common failure mode of this skill is stopping after Phase 1; do not do that.

Inputs

  • $ARGUMENTS — the path to the aggregate's Mermaid class diagram (<dir>/<stem>.md).

All artifacts produced by Phase 1 land in <dir>/<stem>.domain/ per spec-core:naming-conventions; Phase 2 reads them from there.

Workflow

Spawn each agent in its own message (via the Agent tool) and wait for it to complete before spawning the next. Do not collapse them into a single message.

Step 1 of 2 — Generate the domain spec

Spawn the domain-spec:specs-generator agent with prompt $ARGUMENTS.

Failure handling: if the agent reports a failure, abort the workflow and emit an ERROR: line naming the failure. Only in that case do you stop before Step 2.

Success handling: if the agent returns its normal "Spec generation complete" confirmation (or any non-error completion), proceed immediately to Step 2 of 2 in your very next message. Do not summarize, do not pause, do not ask for confirmation — Phase 2 is mandatory and the user has already authorized it by invoking this umbrella.

Step 2 of 2 — Generate the domain code

Read the full file on GitHub · 46 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. 6d ago First seen · 46 lines · 0 tokens per session scan A 3b428216e366

Subscribe to this mod's changes

generate-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 47 tokens to every session and 600 once invoked, about $0.0002 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

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 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

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens