Compare Three Feature Architectures Against Module Boundaries
Get a scored trade-off matrix comparing three feature architectures by file touchpoints, coupling risks, and rollback cost before running Cursor Composer.
Agent prompt for Claude and Gemini
You get: Summary Table, option Breakdowns and recommended Plan
Prompt
mkdir -p .agents/skills/compare-three-feature-architectures-against-module-boundaries && curl -sL "https://prompts-gpt.com/prompts/compare-three-feature-architectures-against-module-boundaries/raw" -o .agents/skills/compare-three-feature-architectures-against-module-boundaries/SKILL.mdAct as a principal software architect reviewing a codebase before a multi-file implementation in Cursor Composer.
I will paste my feature goal, relevant directory tree, and any existing module boundary rules right after this prompt. If the module boundaries or test coverage are unclear, ask up to three numbered questions first and wait for my answers.
Otherwise, compare three distinct architecture options for building this feature against my existing boundaries. Follow these rules:
- Option A must minimize file touchpoints, Option B must prioritize strict module isolation, and Option C must optimize for future extensibility.
- Score each option from 1 to 5 on file touchpoints, coupling risk, testability, and rollback cost, where 5 is best.
- Name exact file paths or directories from my tree for every touchpoint and boundary crossing.
- Flag any circular dependency, shared mutable state, or schema lock-in risk before writing code.
- Recommend one option and list the exact pre-flight checks to run before opening Cursor Composer.
Output format:
1. Summary Table: Markdown table with columns Option, File Touchpoints, Coupling Risk, Testability, Rollback Cost, and Total Score.
2. Option Breakdowns: Three short sections covering exact files touched, boundary impact, and rollback steps.
3. Recommended Plan: Chosen option, rationale in three bullets, and a numbered Cursor Composer execution order.
End with one line stating your key assumptions and any missing codebase context that could change the recommendation.Example output
Tips and common edits
Why this works
- Forces three distinct architectural trade-offs instead of letting the model default to one quick patch.
- Maps exact file paths and rollback steps before Cursor Composer edits multiple files at once.
- Flags circular dependencies and schema lock-in early so you catch boundary violations before coding.
Use this in Cursor, Claude, or Gemini before starting a multi-file Cursor Composer session. Paste your feature goal, directory tree, and any module boundary rules right after the prompt.
Common edits
- Add a performance or latency column to the summary table if the feature sits on a hot request path.
- Ask the model to output a matching .cursorrules snippet enforcing the chosen module boundary.
Reuse it: Use in a workflowAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Refactor Monolithic God Classes into Clean Services
Get a step-by-step plan to break a large monolithic class into smaller, testable services while preserving the original public API behavior.
Split a large pull request into reviewable commits
Break down overwhelming pull requests into clean, sequential, logically isolated commits. Use it when code reviews stall due to sprawling diffs.
Audit Cursor Rules Files for Conflicts and Context Bloat
Get a line-by-line audit of your .cursor/rules files that flags overlapping globs, contradictory instructions, and token waste, plus a consolidation diff.
Audit API Route Handlers for Auth and Permission Leaks
Get a structured security audit of your API route handlers that evaluates tenant isolation, role-based access control, and input validation risks.
Decompose Framework Migrations into Subagent Work Batches
You get a structured task graph that maps migration steps into isolated, low-risk subagent work batches with defined file boundaries and interface contracts.
Perform Static Call Graph Trace Before Modifying Code
Generate a clear visual map of function calls and file dependencies to identify exactly where your changes will ripple before you type a single line of code.
- Refactor Pasted Code for Readability Without Changing Its Behavior
- Characterization Tests Before a Refactor
- Coding Agent Task Brief with Guardrails, Test Plan, and Rollback Steps
- Cursor Characterization-Test-First Refactor of a Legacy Module
- Cursor Incremental Dependency Migration Plan and Codemod Execution
- Unit Test Plan and Test Code for an Existing Function