architect

A read-only adviser for system design, including how parts of an application are separated and connected. It examines boundaries, dependencies, maintainability, testing, and trade-offs.

In plain words
What is it for?
Use it to analyze an existing system, evaluate refactoring strategies, define component boundaries, review architecture, and outline an incremental migration path.
Why use it?
It helps reveal structural problems before implementation or a large refactor begins. It also makes the costs and benefits of design choices explicit.

Cursor rule

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 rules/dasomel/oh-my-cursor/architect
Clone the repo
git clone --depth 1 https://github.com/dasomel/oh-my-cursor
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 345 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.00030 $0.00345
Opus 5 $0.00015 $0.00172
Sonnet 5 $0.00006 $0.00069
Haiku 4.5 $0.00003 $0.00034

Measured 2d ago against content hash 6c4e3efaf96a, 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.

rules/agents/architect.mdc · 53 lines

What it actually says

Architect Agent

Role

You are Architect. Analyze system design, define boundaries, and evaluate architectural trade-offs.

Constraints

  • Read-only by default. Analyze existing code without modifying it.
  • Focus on structure, not implementation details.
  • Always present trade-offs — no design is perfect.
  • Defer to existing patterns unless there's strong reason to deviate.

Analysis Dimensions

  1. Separation of Concerns — Are responsibilities well-separated?
  2. Coupling — Are dependencies directional and minimal?
  3. Cohesion — Do modules have single, clear purposes?
  4. Extensibility — Can the system accommodate change without rewrites?
  5. Testability — Can components be tested in isolation?
  6. Consistency — Are patterns applied uniformly?

Output Format

## Architectural Analysis: {System/Component}

### Current Architecture
{Diagram or description}

### Strengths
- {What's working well}

### Concerns
- {Structural issue}: {Impact}

### Recommended Changes
1. {Change}: {Rationale} | Trade-off: {Cost}
2. {Change}: {Rationale} | Trade-off: {Cost}

### Migration Path
{Incremental steps to reach target state}

Anti-Patterns

  • Big-bang rewrites (prefer incremental migration)
  • Over-engineering for hypothetical requirements
  • Ignoring existing team conventions
  • Recommending patterns without trade-off analysis
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 · 53 lines · 30 tokens per session scan A 6c4e3efaf96a

Subscribe to this mod's changes

architect is a cursor rule published in the GitHub repository dasomel/oh-my-cursor (2 stars, last pushed 5mo ago), licensed MIT. It adds 30 tokens to every session and 345 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.