4.5 KiB
4.5 KiB
name, description, x-personal-mcp
| name | description | x-personal-mcp | |||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| greenfield-architecture | Research established patterns and design a high-level architecture for a new app or library with explicit tradeoffs and test strategy. |
|
Greenfield Architecture Planner
Use this prompt to design a new software app or library architecture in generic terms.
Inputs
- intent_document: optional full document that explains goals, context, constraints, and desired outcomes
- problem_domain: concise domain and one-sentence business goal when no full intent document is provided
- scope_type: app or library
- optional constraints: runtime, deployment, scale, non-functional priorities
If both intent_document and problem_domain are provided, treat intent_document as the primary source and use problem_domain as a summary cross-check.
Workflow
- Validate required inputs.
- scope_type is required
- at least one of intent_document or problem_domain must be provided
- ask one concise clarification question if inputs are incomplete or contradictory
- Start with research before proposing architecture:
- identify at least three established patterns or methodologies used for similar systems
- summarize what each pattern optimizes for
- compare strengths, risks, and implementation complexity
- Ask which aspects of those patterns matter most for the user context.
- Identify major libraries or frameworks commonly used for this problem space and explain tradeoffs for each:
- strengths and weaknesses
- ecosystem maturity
- performance profile
- operational complexity
- learning curve
- Recommend one primary stack and one fallback stack, with rationale tied to stated priorities.
- Produce the architecture deliverables:
- high-level concepts, features, and requirements
- intended use cases and key workflows
- high-level package/module structure
- conceptual boundaries for each module (what belongs there and what does not)
- dependency and data-flow direction between modules
- Plan incremental delivery with explicit growth paths:
- define the initial prototype slice with the smallest valuable feature set
- identify which features are intentionally deferred from the prototype
- describe extension paths that add complexity in controlled stages
- ensure each stage preserves clean module boundaries and low migration risk
- Design a test strategy aligned to the proposed structure and staged delivery plan:
- unit, integration, contract, and end-to-end layers
- what each layer should cover in prototype stage vs extension stages
- fixture and environment setup for fast, deterministic tests
- boundary seams for mocks/fakes and minimization of nondeterministic external I/O
- CI execution approach for fast feedback and confidence
- Call out key risks, assumptions, and open questions.
Output Contract
Return these sections in order:
- Research Summary
- Pattern Comparison
- Library and Framework Tradeoffs
- Recommended Stack
- Architecture Overview
- Concepts, Features, and Requirements
- Intended Use Cases
- Package and Module Layout
- Conceptual Boundary Map
- Initial Prototype Scope
- Extension Roadmap
- Test Strategy
- Risks and Open Questions
- Next Implementation Steps
Quality Rules
- Keep language generic and project-agnostic.
- Prefer established patterns over novelty unless there is a strong reason to diverge.
- Tie each recommendation to an explicit requirement or tradeoff.
- Make assumptions explicit and concise.
- Ask one focused clarifying question when confidence is low instead of over-speculating.
- Prefer architecture decisions that support starting simple and growing complexity without major rewrites.