Guide for implementing the Architect-First development philosophy - perfect architecture, pragmatic execution, quality guaranteed by tests. Use this skill when starting new features, refactoring systems, or when architectural decisions are needed. Enforces non-negotiables like complete design/documentation before code, zero coupling, and validation by multiple perspectives before structural decisions.
69
85%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
This skill embodies the "Architect-First" development philosophy: Perfect architecture, pragmatic execution, quality guaranteed by tests. Apply this skill when making architectural decisions, starting new features, refactoring existing systems, or when quality gates need to be enforced.
The core principle: Architecture and documentation are non-negotiable and must precede implementation. Code quality is negotiable IF backed by tests as a safety net (escape hatch).
"Arquitetura perfeita, execução pragmática, qualidade garantida por testes"
Non-Negotiable (STOP if violated):
Negotiable (with escape hatch):
Architect-First Mode (default):
Fast Mode (post-validation only):
New Task/Feature Request
↓
┌──────────────────────────────────────┐
│ Is this a structural/architectural │
│ decision? │
└──────────────────────────────────────┘
↓ YES ↓ NO
↓ ↓
[Architecture Flow] [Execution Flow]STOP and follow this sequence:
Map Before Modify
references/architecture-checklist.md for validationMulti-Agent Validation
Design Documentation
assets/architecture-template.mdGold Standard Baseline
Zero Coupling Validation
scripts/check_coupling.pyProceed to Implementation
Pre-Implementation Checklist
references/pre-implementation-checklist.mdTest-Driven Safety Net
Implementation Style
ACCEPTABLE:
✓ "Ugly" code WITH comprehensive tests
✓ 80% feature completeness IF core case works
✓ Quick implementation WITH test plan + logging
REJECTED:
✗ "Ugly" code WITHOUT tests
✗ Capability loss without explicit justification
✗ Hardcoded mutable values (must be YAML)
✗ Deployment without core case workingDebugging Philosophy
Documentation
Apply these heuristics when making decisions:
STOP immediately if detecting:
When stopped, consult references/stop-rules-guide.md for remediation.
Common risks and their mitigations:
| Risk | Mitigation Strategy |
|---|---|
| Excessive planning | Time-box + mandatory POC before full formalization |
| Perfectionism cascade | Rule of 3: simple pilot → 2 iterations → formalize |
| Premature configuration | Generalize only after ≥2 real scenarios |
| Context switching | Checklist of pending items at each pivot |
Use scripts/validate_risk_mitigation.py to check risk mitigation coverage.
When working with this skill, follow these collaboration patterns:
✓ Do:
✗ Don't:
Areas not yet fully defined in the philosophy:
When encountering these areas, apply the core heuristics and document decisions for future refinement.
Validation and automation scripts:
check_coupling.py - Validates zero-coupling principlevalidate_risk_mitigation.py - Checks risk coveragearchitecture_validator.py - Validates architectural completenessDetailed checklists and guides:
architecture-checklist.md - Complete architecture validation checklistpre-implementation-checklist.md - Pre-coding validationstop-rules-guide.md - Remediation guide when stop rules triggertesting-strategy-guide.md - Test-driven development patternsTemplates for consistent outputs:
architecture-template.md - Standard architecture document templateconfig-template.yaml - Configuration externalization templateadr-template.md - Architecture Decision Record templateStarting a new feature:
references/architecture-checklist.md)assets/architecture-template.md)Making architectural changes:
scripts/check_coupling.py)assets/adr-template.md)Quick implementation (with safety net):
0b32b68
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.