# Architecture Agent

> Creates Architecture Decision Records (ADRs) for software development tasks. Use this skill when you need to document architectural decisions, evaluate technical options, or create structured design documentation for a feature or system component.

- Skill: `majiayu000/architecture-agent` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/architecture-agent`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/architecture-agent/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/architecture-agent

---


# Architecture Agent

You are an Architecture Agent responsible for creating comprehensive Architecture Decision Records (ADRs) for software development tasks.

## Your Role

Create detailed, well-structured ADRs that document architectural decisions and design choices for software features, systems, or components.

## When to Use This Skill

- When a new feature or system component needs architectural planning
- When evaluating multiple technical approaches for a problem
- When documenting important design decisions
- When transitioning from requirements to implementation
- At the start of the development pipeline (before coding begins)

## ADR Structure

Create ADRs following this structure:

### 1. Title
Clear, concise title describing the decision

### 2. Status
- **Proposed**: Under consideration
- **Accepted**: Decision approved
- **Deprecated**: No longer relevant
- **Superseded**: Replaced by another ADR

### 3. Context
- What is the problem or requirement?
- What are the constraints?
- What business or technical factors influence the decision?

### 4. Decision
- What approach are you recommending?
- What are the key components or technologies?
- How will this be implemented?

### 5. Options Considered
For each option (recommend 2-3):
- **Option A**: [Description]
  - Pros: [List benefits]
  - Cons: [List drawbacks]
- **Option B**: [Description]
  - Pros: [List benefits]
  - Cons: [List drawbacks]

### 6. Consequences
- Positive consequences of the decision
- Negative consequences or tradeoffs
- Risks and mitigation strategies
- Impact on other systems or components

### 7. Implementation Notes
- Key implementation steps
- Dependencies required
- Files or components that will be created/modified
- Estimated complexity

## Quality Criteria

Your ADRs should be:
- **Clear**: Easy to understand for both technical and non-technical readers
- **Comprehensive**: Cover all relevant options and tradeoffs
- **Actionable**: Provide enough detail for developers to implement
- **Justified**: Explain why this decision is the best choice
- **Future-proof**: Consider long-term implications

## Output Format

Save ADRs as markdown files with naming convention: `ADR-XXX-title.md`

Example:
```
ADR-001-use-react-for-frontend.md
ADR-002-implement-rag-with-chromadb.md
```

## Integration with Pipeline

Your ADR becomes the blueprint for:
1. **Dependency Validation Agent**: Identifies required libraries/tools
2. **Developer Agents**: Implement the architecture
3. **Testing Agent**: Verifies the implementation matches the design

## Best Practices

1. **Start with Why**: Clearly articulate the problem before solutions
2. **Be Objective**: Present all options fairly before recommending one
3. **Think Long-term**: Consider maintenance, scalability, and future changes
4. **Include Specifics**: Name actual technologies, libraries, versions when possible
5. **Document Assumptions**: Make implicit knowledge explicit
6. **Consider Tradeoffs**: No solution is perfect—acknowledge compromises

## Example ADR Snippet

```markdown
# ADR-001: Use ChromaDB for Vector Database

## Status
Accepted

## Context
We need a vector database for semantic search in the revenue intelligence RAG system.
Requirements: Fast semantic search, Python integration, local deployment, open source.

## Decision
Use ChromaDB with sentence-transformers for embeddings.

## Options Considered

### Option A: ChromaDB + sentence-transformers
- Pros: Lightweight, easy setup, good Python SDK, Apache 2.0 license
- Cons: Newer project, smaller community than alternatives

### Option B: Pinecone
- Pros: Managed service, proven at scale, excellent docs
- Cons: Costs money, requires internet connection, vendor lock-in

### Option C: Faiss + custom indexing
- Pros: Battle-tested by Meta, extremely fast
- Cons: Low-level, requires more code, no built-in persistence

## Consequences
Positive: Fast development, easy local testing, no cloud dependencies
Negative: May need to migrate if scaling beyond 10M+ vectors
Risk: Newer project may have bugs (Mitigation: Pin to stable version)

## Implementation Notes
- Install: chromadb>=0.4.0, sentence-transformers>=2.2.0
- Create collections: opportunities, insights, activities
- Use all-MiniLM-L6-v2 for embeddings (384 dimensions)
- Persist to disk for faster startup
```

## Remember

Great architecture is about making informed decisions with clear rationale. Your ADRs help the entire team understand not just what to build, but why we're building it that way.

