design

design is a command for Claude Code from luanmorenommaciel/agentspec. It costs 12 tokens per session (1,144 once invoked), scanned A, original, MIT.

A design command that turns a requirements document into an architecture and technical specification. It is Phase 2 of a workflow that moves from brainstorming to requirements, design, implementation, and release.

In plain words
What is it for?
Use it to define system architecture, implementation details, data choices, and design decisions for a feature.
Why use it?
It connects product requirements to concrete technical decisions before code is written.

Command for Claude Code

Installs and runs on its own, but its text points at files inside the plugin that ships it — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed.

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 commands/luanmorenommaciel/agentspec/design
Clone the repo
git clone --depth 1 https://github.com/luanmorenommaciel/agentspec

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 design

README.md
[![agentmods](https://agentmods.dev/badge/commands/luanmorenommaciel/agentspec/design.svg)](https://agentmods.dev/commands/luanmorenommaciel/agentspec/design)
Your own site
<a href="https://agentmods.dev/commands/luanmorenommaciel/agentspec/design"><img src="https://agentmods.dev/badge/commands/luanmorenommaciel/agentspec/design.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,144 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.00012 $0.01144
Opus 5 $0.00006 $0.00572
Sonnet 5 $0.00002 $0.00229
Haiku 4.5 $0.00001 $0.00114

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

Security

Grade A, and why

design 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 3d 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.

.claude/commands/workflow/design.md · 115 lines

How it starts

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

Design Command

Create architecture and technical specification in one pass (Phase 2)

Usage

/design <define-file> [--judge[=MODE]]

Examples

/design .claude/sdd/features/DEFINE_NOTIFICATION_SYSTEM.md
/design DEFINE_USER_AUTH.md
/design .claude/sdd/features/DEFINE_SEARCH_API.md

# With cross-model judge for architectural soundness (opt-in)
/design DEFINE_AUTH.md --judge                  # advisory, default openai/gpt-4o
/design DEFINE_AUTH.md --judge=strict           # gated — FAIL blocks completion
/design DEFINE_AUTH.md --judge=openai/o3        # custom model (advisory)
/design DEFINE_AUTH.md --judge=strict:openai/gpt-4o  # gated + custom model

Overview

This is Phase 2 of the 5-phase AgentSpec workflow:

Phase 0: /brainstorm → .claude/sdd/features/BRAINSTORM_{FEATURE}.md (optional)
Phase 1: /define     → .claude/sdd/features/DEFINE_{FEATURE}.md
Phase 2: /design     → .claude/sdd/features/DESIGN_{FEATURE}.md (THIS COMMAND)
Phase 3: /build      → Code + .claude/sdd/reports/BUILD_REPORT_{FEATURE}.md
Phase 4: /ship       → .claude/sdd/archive/{FEATURE}/SHIPPED_{DATE}.md

The /design command combines what used to be Plan + Spec + ADRs into a single document with architecture decisions inline.


What Happens

  1. Load the skill — read .claude/skills/sdd-design/SKILL.md. It owns the Phase 2 methodology: KB-first resolution, the architecture and inline-ADR steps, the agent-matched file manifest, code patterns, the testing strategy, and the quality gate.
  2. Follow it end to end (Steps 1–7) for the given <define-file>.
  3. Produce the DESIGN document at .claude/sdd/features/DESIGN_{FEATURE_NAME}.md, update the DEFINE status per .claude/sdd/architecture/WORKFLOW_CONTRACTS.yaml, and suggest /build as the next step.

The judge pass below is command-only — it runs after the skill's Step 7, and only when --judge is passed.

Step 8: Optional Judge Pass (--judge)

Runs only if the user invoked with --judge[=MODE]. Cross-model second opinion on the design, focused on architectural soundness — hallucinated APIs, wrong invariants, unsafe defaults, missing edge cases, unjustified decisions.

Read the full file on GitHub · 115 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. 3d ago First seen · 115 lines · 12 tokens per session scan A e4daecbf064b

Subscribe to this mod's changes

design is a command published in the GitHub repository luanmorenommaciel/agentspec (244 stars, last pushed yesterday), licensed MIT. It adds 12 tokens to every session and 1,144 once invoked, about $0.0001 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-09-01.