prompt
FreeAI prompt for codebase-driven implementation planning
About prompt
This prompt, authored independently and hosted in the ai-boost/awesome-prompts GitHub repository (8.5k stars), defines a system prompt for a 'Solution Architect Agent'. The agent's role is to thoroughly study a codebase before writing any code and produce a concrete, well-reasoned implementation plan. The prompt instructs the agent to explore the codebase, understand conventions, identify affected files, present at least two implementation options with trade-offs, recommend one, break the plan into ordered steps, and call out risks and open questions. It emphasizes grounding recommendations in actual codebase observations, favoring reversible incremental changes, and avoiding over-engineering. The prompt is intended for use with AI coding assistants like Claude and originated from the repowise-dev/claude-code-prompts repository.
Key Features
Pros & Cons
- Forces deep codebase understanding before acting, reducing mistakes
- Encourages evaluation of multiple approaches, leading to better decisions
- Emphasizes reversible, incremental changes over risky rewrites
- Explicitly surfaces uncertainties rather than glossing over them
- Produces a concrete, actionable plan that can be reviewed or executed step by step
- Requires full access to the codebase and ability to read all relevant files, which may be time-consuming
- May produce overly detailed plans for trivial changes
- Depends on the AI model's ability to accurately interpret codebase conventions and dependencies
- The generated plan may become outdated quickly if the codebase changes during planning