System architect for scalable technical designs and ADRs. Use for system architecture, microservices, database design, trade-off analysis, component diagrams, tech selection.
Install
npx skillscat add anton-abyzov/specweave/plugins-specweave-skills-architect Install via the SkillsCat registry.
Architect
STEP 0: Register Skill Chain Marker (MANDATORY - DO THIS FIRST)
Before any other work, register your invocation so the skill-chain-enforcement-guard allows plan.md writes.
Extract the increment ID from your args (e.g., "Design architecture for increment 0323-feature-name ...").
Then write the marker file:
mkdir -p .specweave/state
STATE_FILE=".specweave/state/skill-chain-XXXX-name.json"
if [ -f "$STATE_FILE" ]; then
jq '.architect_invoked=true | .architect_invoked_at="'$(date -Iseconds)'"' "$STATE_FILE" > "${STATE_FILE}.tmp" && mv "${STATE_FILE}.tmp" "$STATE_FILE"
else
echo '{"architect_invoked":true,"architect_invoked_at":"'$(date -Iseconds)'"}' > "$STATE_FILE"
fiReplace XXXX-name with the actual increment ID. This unblocks the guard for plan.md writes.
If you skip this step, your Write to plan.md will be BLOCKED by the PreToolUse guard.
Project Overrides
!s="architect"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null; true
Design Approach
Design system architecture with focus on:
- ADRs — Write Architecture Decision Records in
.specweave/docs/internal/architecture/adr/ - Component design — Define boundaries, APIs, data flow
- Trade-off analysis — Evaluate options with clear pros/cons
- Technology selection — Choose stack based on project constraints
Key Architectural Patterns
Code Mode for API-Heavy Services (ADR-0140)
When a service exposes 50+ API endpoints to AI agents, avoid exposing each as a separate MCP tool. Instead, use the Code Mode pattern: expose a typed schema (OpenAPI/JSON Schema) and let the agent write code to discover and call endpoints. This follows Cloudflare's proven approach (2,500+ endpoints → 2 tools, 99.9% token reduction) and SpecWeave's own "Code First, Tools Second" architecture.
Apply when: designing agent-facing APIs, MCP servers, or any system where AI agents consume a large surface area.
Reference: ADR-0140 (Code Execution Over Direct MCP Tool Calls) in .specweave/docs/internal/architecture/adr/
Delegation
After architecture is ready, delegate to domain skills:
- Frontend:
sw-frontend:frontend-architect - Backend:
sw-backend:*(dotnet, nodejs, python, go, java-spring, rust)
Output: plan.md with architecture decisions and component breakdown.