design-component

design-component is a command for Claude Code from AhmedHabiba/architor. It costs 0 tokens per session (1,179 once invoked), scanned A, original, MIT.

A guided command for writing the detailed design of one software architecture component. The design covers its role, technology, integrations, and ability to handle growth.

In plain words
What is it for?
Use it to design a named component, or choose the next component in dependency order after the overall architecture methodology is accepted.
Why use it?
It gives each component a consistent design process and prevents work from moving ahead before the earlier architecture decisions are accepted.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to design a named component, or choose the next component in dependency order after the overall architecture methodology is accepted.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ahmedhabiba/architor/design-component
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.

Clone the repo
git clone --depth 1 https://github.com/AhmedHabiba/architor

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-component

README.md
[![agentmods](https://agentmods.dev/badge/commands/ahmedhabiba/architor/design-component.svg)](https://agentmods.dev/commands/ahmedhabiba/architor/design-component)
Your own site
<a href="https://agentmods.dev/commands/ahmedhabiba/architor/design-component"><img src="https://agentmods.dev/badge/commands/ahmedhabiba/architor/design-component.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,179 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.00000 $0.01179
Opus 5 $0.00000 $0.00589
Sonnet 5 $0.00000 $0.00236
Haiku 4.5 $0.00000 $0.00118

Measured 8d ago against content hash 1edd82b2e07c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

design-component 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 8d 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/design-component.md · 104 lines

How it starts

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

Read .arch/state.json first.

GATE CHECK:

  • If current_phase is not components, STOP: "Cannot design components. Current phase is [phase]. Methodology must be accepted first."
  • If phases.methodology.accepted is not true, STOP: "Phase 2 (Methodology) must be accepted first."
  • If there is a current_component with status in_progress or awaiting_acceptance that is DIFFERENT from the requested component, STOP: "Component [current_component] is still pending. Accept or refine it before moving to another component. Use /status to check."

Read .arch/phase2-methodology.md and .arch/phase2-components-overview.md for context. Read .arch/org-context.md for team and technology constraints. Read any previously accepted components in .arch/components/ for consistency checking.

If $ARGUMENTS is empty, determine the next component in logical dependency order (foundational components first — databases, auth, core services before dependent services).

Detailed Component Design for: [Component Name]

1. Component Specification

  • Name: [exact name]
  • Role: [detailed description — what it does, what it owns]
  • Bounded Context: [what data/logic belongs exclusively to this component]

2. Technology Recommendation

  • Primary recommendation: [Technology vX.Y]
  • Why: [Specific rationale tied to requirements AND org context]
  • Alternative 1: [Technology] — [why not chosen]
  • Alternative 2: [Technology] — [why not chosen]

If org-context lists a preferred technology, acknowledge it: "Your organization prefers [X]. I'm recommending [Y] instead because [reason]. If you'd prefer to stay with [X], here's what changes: [impact]."

3. Integration Specification

  • Inputs: [what this component receives, from whom, what protocol, what format]
  • Outputs: [what this component produces, for whom, what protocol, what format]
  • API Contracts: [key endpoints/interfaces with request/response shapes]
  • Data Formats: [JSON schemas, message formats, events published]

Read the full file on GitHub · 104 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. 8d ago First seen · 104 lines · 0 tokens per session scan A 1edd82b2e07c

Subscribe to this mod's changes

design-component is a command published in the GitHub repository AhmedHabiba/architor (6 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,179 tokens. 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.