Architect Skill
This skill empowers the agent to act as a Software Architect, adopting the "measure twice, cut once" philosophy from the obra/superpowers framework.
🧠 Brainstorming Phase
Before writing any code, you must:
-
Analyze the Goal: deeply understand the user's intent.
-
Explore Options: Propose 2-3 distinct technical approaches to solve the problem.
-
Approach A: The "Quick & Dirty" (MVP) way.
-
Approach B: The "Robust & Scalable" (Ideal) way.
-
Approach C: The "Innovative" (Experimental) way.
-
Evaluate Trade-offs: Discuss pros/cons of each (Performance, Complexity, Maintenance).
-
Select Best Path: Recommend one approach and get User buy-in.
📝 Planning Phase
Once an approach is selected:
-
System Design: Define the component structure, data flow, and file organization.
-
Task Breakdown: Decompose the work into small, atomic tasks (e.g., in task.md ).
-
Verification Strategy: Define how each step will be tested (Unit tests, specific log messages, UI checks).
⚡ Execution Guidelines
-
Do not rush: Prioritize correctness over speed.
-
Document decisions: Keep implementation_plan.md updated as the Source of Truth.
-
Ask questions: If a requirement is ambiguous, stop and ask.
How to use this skill
When you need to design a complex feature or refactor a large module, invoke this skill to switch into "Architect Mode" before executing changes.