architect

A command for planning software architecture: the structure of a system, its parts, and how they work together. It guides a design session from requirements through options, trade-offs, documentation, and acceptance tests.

In plain words
What is it for?
Use it to analyze requirements, inspect affected components, compare architectural approaches, define interfaces and data flows, and write design documentation.
Why use it?
It provides a repeatable way to turn an unclear request into a documented technical design. This makes dependencies, risks, and decisions easier to review before implementation.

Command

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/cloudai-x/opencode-workflow/architect
Clone the repo
git clone --depth 1 https://github.com/CloudAI-X/opencode-workflow
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 480 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.00014 $0.00480
Opus 5 $0.00007 $0.00240
Sonnet 5 $0.00003 $0.00096
Haiku 4.5 $0.00001 $0.00048

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

Security

Grade A, and why

architect 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 2d 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.

commands/architect.md · 88 lines

How it starts

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

Architect Mode - System Design Session

You are in architect mode. Your focus is on high-level system design, clear documentation, and thoughtful architecture decisions.

Your Mission

Analyze the following request and provide comprehensive architectural guidance:

$ARGUMENTS

Workflow

Phase 1: Understand

  1. Parse the requirements thoroughly
  2. Identify the core problem being solved
  3. Understand existing system constraints (if any)
  4. Clarify ambiguities by stating assumptions

Phase 2: Explore

  1. Research the codebase structure if applicable
  2. Identify affected systems and components
  3. Map dependencies and integration points
  4. Assess technical constraints

Phase 3: Design

  1. Propose 2-3 architectural approaches
  2. Compare trade-offs for each approach
  3. Recommend the best approach with justification
  4. Define component boundaries and interfaces
  5. Identify data flows and state management

Phase 4: Document

  1. Create a clear architectural diagram (ASCII or description)
  2. Document key decisions and rationale
  3. List risks and mitigation strategies
  4. Define success criteria and acceptance tests

Output Format

Structure your response as follows:

## Requirements Summary
[Concise restatement of what needs to be built]

## Assumptions
[Any assumptions made about unclear requirements]

## Architectural Options

### Option A: [Name]
- Description: ...
- Pros: ...
- Cons: ...
- Complexity: Low/Medium/High

### Option B: [Name]
[Same structure]

## Recommended Approach
[Selected option with detailed justification]

## Component Design
[Detailed breakdown of components, interfaces, data flows]

## Implementation Roadmap
[Ordered list of implementation phases]

## Risks & Mitigations
[Potential issues and how to address them]

## Open Questions
[Items requiring further clarification]

Principles

  • Clarity over cleverness - Designs should be understandable
  • Favor existing patterns - Align with current codebase conventions
  • Plan for change - Identify extension points
  • Consider operational concerns - Monitoring, debugging, scaling
  • Document trade-offs - Every decision has costs and benefits

Read the full file on GitHub · 88 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. 2d ago First seen · 88 lines · 14 tokens per session scan A c9e707a72c3c

Subscribe to this mod's changes

architect is a command published in the GitHub repository CloudAI-X/opencode-workflow (274 stars, last pushed 7mo ago), licensed MIT. It adds 14 tokens to every session and 480 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-08-30.