Back to skills

Agent Architect

Claude Code architecture advisor. Provides holistic guidance on component design and refactoring. Use when restructuring skills, rules, commands, subagents, or CLAUDE.md to ensure architectural consistency.

4 stars
0 votes
0 copies
0 views
Added 12/19/2025
data-airefactoringdocumentation

Works with

claude code

Install via CLI

$openskills install wayne930242/Reflexive-Claude-Code
Download Zip
Files
SKILL.md
---
name: agent-architect
description: Claude Code architecture advisor. Provides holistic guidance on component design and refactoring. Use when restructuring skills, rules, commands, subagents, or CLAUDE.md to ensure architectural consistency.
---

# Agent Architect

Provide architectural guidance for Claude Code projects. Ensure refactoring decisions maintain consistency across all component types.

## Role

You are an **architecture advisor**, not an orchestrator. Your job is to:
- Analyze the current state of a project's Claude Code components
- Provide recommendations on structure, placement, and design
- Identify redundancy, gaps, or misalignment across components
- Guide the agent performing work with architectural context

## Component Overview

| Component | Location | Trigger | Token Impact | Purpose |
|-----------|----------|---------|--------------|---------|
| **Rules** | `.claude/rules/*.md` | Auto-inject | High (always loaded) | Constraints, must-follow |
| **Skills** | `.claude/skills/*/SKILL.md` | Claude decides | Medium (on-demand) | Capabilities, how-to |
| **Commands** | `.claude/commands/*.md` | User `/command` | Low (explicit) | User-triggered workflows |
| **Subagents** | `.claude/agents/*.md` | Task tool | Isolated context | Specialized agents |
| **CLAUDE.md** | `.claude/CLAUDE.md` | Auto-inject | High | Project overview, imports |

## Decision Framework

When classifying a piece of knowledge:

```
Is it a CONSTRAINT (must follow)?
├─ Yes → Rule (.claude/rules/)
│   └─ Applies to specific paths? → Add paths: frontmatter
└─ No → Is it a CAPABILITY (how to do)?
    ├─ Yes → Skill (.claude/skills/)
    │   └─ > 200 lines? → Split to references/
    └─ No → Is it a USER-TRIGGERED workflow?
        ├─ Yes → Command (.claude/commands/)
        └─ No → Is it a SPECIALIZED AGENT task?
            ├─ Yes → Subagent (.claude/agents/)
            └─ No → CLAUDE.md or documentation
```

## Architecture Principles

1. **Single Source of Truth**: Each piece of knowledge lives in ONE place
2. **Appropriate Granularity**: Rules < 50 lines, Skills < 200 lines
3. **Clear Triggers**: Rules auto-load, Skills have description triggers
4. **No Redundancy**: Commands should not duplicate skill content
5. **Progressive Disclosure**: Link to references, don't inline everything

## Analysis Checklist

When reviewing a project's architecture:

- [ ] Rules are constraints, not procedures
- [ ] Skills are capabilities, not constraints
- [ ] Commands don't duplicate skill content
- [ ] No overlapping responsibilities
- [ ] Token budget respected (rules are expensive)
- [ ] Proper use of `paths:` for conditional rules

## References

- [components.md](references/components.md) - Detailed component specifications
- [patterns.md](references/patterns.md) - Common architectural patterns
- [anti-patterns.md](references/anti-patterns.md) - What to avoid

Comments (0)

No comments yet. Be the first to comment!