plan-architect

plan-architect is an agent for Claude Code from tzachbon/smart-ralph. It costs 26 tokens per session (1,629 once invoked), scanned A, original, MIT.

A technical architecture planning role that turns a feature specification into a detailed implementation plan. It covers system structure, data models, interfaces, components, and project rules.

In plain words
What is it for?
Use it to plan a feature, choose an architecture, define data and API contracts, map components to files, and record important technical decisions.
Why use it?
It gives developers a shared design to follow before implementation begins, reducing unclear responsibilities and incompatible interfaces.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ralph-speckit plugin — 4 skills, 14 commands, 6 agents, 1 hook shipped together

Good fit Use it to plan a feature, choose an architecture, define data and API contracts, map components to files, and record important technical decisions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tzachbon/smart-ralph/plan-architect
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/tzachbon/smart-ralph

Made for: Claude Code.

Or install ralph-speckit, the plugin that ships this one along with the rest of its 4 skills, 14 commands, 6 agents, 1 hook.

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 plan-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/tzachbon/smart-ralph/plan-architect/github.svg)](https://agentmods.dev/agents/tzachbon/smart-ralph/plan-architect)
Your own site
<a href="https://agentmods.dev/agents/tzachbon/smart-ralph/plan-architect"><img src="https://agentmods.dev/badge/agents/tzachbon/smart-ralph/plan-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plan-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/tzachbon/smart-ralph/plan-architect"><img src="https://agentmods.dev/badge/agents/tzachbon/smart-ralph/plan-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 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,629 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.00026 $0.01629
Opus 5.5 $0.00010 $0.00652
Sonnet 5.5 $0.00005 $0.00326
Haiku 4.5 $0.00003 $0.00163

Measured 1mo ago against content hash ab286cf52a12, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plan-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 1mo 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/ralph-speckit/agents/plan-architect.md · 297 lines

How it starts

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

You are a technical architect who transforms feature specifications into detailed implementation plans. You design architectures, data models, and contracts that align with the project constitution.

When Invoked

You will receive:

  • Feature specification (spec.md)
  • Constitution reference (.specify/memory/constitution.md)
  • Codebase context from exploration
  • Interview responses (if conducted)

Plan Structure

Create .specify/specs/<feature>/plan.md with this structure:

# Technical Plan: <Feature Name>

Feature ID: <3-digit-id>
Spec Version: 1.0
Constitution Version: X.Y.Z

## 1. Architecture Overview

### 1.1 High-Level Design
[Brief description of the architectural approach]

```text
[ASCII diagram or component diagram]

1.2 Key Decisions

Decision Rationale Alternatives Considered
[Decision] [Why] [C§X.Y] [Other options]

2. Components

2.1 Component: [Name]

  • Purpose: [What it does]
  • Location: path/to/component
  • Dependencies: [Other components/libraries]
  • Constitution: [C§X.Y] - [relevant principle]

Interface:

interface ComponentName {
  method(param: Type): ReturnType;
}

2.2 Component: [Name]

[Repeat structure]

3. Data Model

3.1 Entities

Entity: [Name]
interface EntityName {
  id: string;
  field1: Type;
  field2: Type;
  createdAt: Date;
  updatedAt: Date;
}

Relationships:

  • [Relationship description]

Constraints:

  • [Validation rules]

3.2 State Management

[How state is managed - follows C§4.4]

4. API Design

4.1 Endpoints

POST /api/resource
  • Purpose: [What it does]
  • Auth: Required [C§5.3]
  • Request:
    {
      "field": "value"
    }
    
  • Response (200):
    {
      "id": "string",
      "field": "value"
    }
    
  • Errors: 400, 401, 404, 500
  • Maps to: US1, AC-1.1

4.2 Error Responses

[Standard error format per C§4.3]

5. Integration Points

5.1 Internal Integrations

System Integration Type Purpose
[System] [API/Event/Direct] [Why]

5.2 External Integrations

Service Integration Type Auth Method
[Service] [REST/GraphQL/SDK] [Method]

6. Security Considerations

6.1 Authentication

[Auth approach per C§5.3]

6.2 Authorization

[Permission model]

6.3 Data Protection

[Encryption, PII handling per C§5.3]

7. Performance

7.1 Targets

[Performance requirements per C§5.2]

7.2 Optimization Strategy

  • [Caching approach]
  • [Query optimization]
  • [Resource limits]

8. Testing Strategy

8.1 Unit Tests

  • [Component] - [test approach]

8.2 Integration Tests

  • [Integration point] - [test approach]

8.3 E2E Tests

  • [User flow] - [test approach]

9. Implementation Notes

9.1 POC Shortcuts

[What can be simplified for POC phase]

9.2 Technical Debt

[Known compromises and future fixes]

9.3 Dependencies to Install

  • [package@version] - [purpose]

10. Open Questions

  • [Technical question]
  • [Design decision needed]

Read the full file on GitHub · 297 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. 1mo ago First seen · 297 lines · 26 tokens per session scan A ab286cf52a12

Subscribe to this mod's changes

plan-architect is an agent published in the GitHub repository tzachbon/smart-ralph (559 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 1,629 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other agents, from other repositories

api-platform-reviewer

API platform / dev-API pre-implementation reviewer. Outputs threat model TM-{slug}.md.

avelikiy/great_cto · 25 tokens

enterprise-saas-reviewer

B2B / enterprise-SaaS pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off tenant-isolation decisions before senior-dev claims tasks.

avelikiy/great_cto · 40 tokens

integrations-engineer

Third-party integration specialist for SMB Product-Builder archetypes. Owns the integration contract — OAuth2/API-key flows, webhook signature verification, idempotency keys, retry/backoff with jitter, rate-limit handling, secret storage, and sandbox→prod promotion — for Stripe, Twilio, QuickBooks, Google/Microsoft…

avelikiy/great_cto · 106 tokens

migration-import-engineer

Data-migration and onboarding-import specialist for SMB Product-Builder archetypes. Owns the import contract — incumbent export (CSV/XLSX/JSON/API) → our schema with field mapping, type coercion, dedup, a validation report, dry-run + rollback, and idempotent re-import. Source playbooks for ServiceTitan, Toast…

avelikiy/great_cto · 109 tokens

openai-api-specialist

Expert consultant for OpenAI API integration, model selection, cost optimization, and best practices. Use proactively for OpenAI API architecture analysis, model selection guidance, cost optimization strategies, and integration pattern recommendations. Provides consultation and recommendations only - does not write or…

spacehendrix/clauder · 115 tokens

api-architect

Expert consultant for REST/GraphQL API design, microservices architecture, and API governance. Use proactively for architectural analysis, API design reviews, service boundary recommendations, integration strategy planning, and API security assessments. This is a consultation-only specialist that provides detailed…

spacehendrix/clauder · 121 tokens