Research the idea into a spec
Claude researches what exists, the right stack, and the common failure points, then writes a spec in a fixed structure your coding agent can build from.
Be specific about who it is for and your constraints. A vague idea gets a generic spec.
I want to build a software project and need a research-backed technical spec that I can hand to an AI coding agent (Claude Code or Codex) to build from. Research thoroughly before writing. MY IDEA [DESCRIBE YOUR IDEA IN A FEW SENTENCES] WHO IT'S FOR [TARGET USERS] MY CONSTRAINTS - Experience: [YOUR EXPERIENCE, e.g. comfortable with Python, new to web apps] - Deadline: [DEADLINE] - Monthly budget for hosting and APIs: [BUDGET] - Must use or avoid: [REQUIRED OR BANNED TECH, or none] RESEARCH 1. Existing solutions: what already exists, what it does well, and where it falls short. What would make mine worth building? 2. Stack: compare 2 or 3 realistic options for my constraints. Prefer mature, well-documented, widely used tools. Only recommend libraries and services you can confirm exist and are actively maintained, and link their official docs. 3. Pitfalls: the most common ways projects like this fail, whether technical, security, cost, or scope. 4. Security and privacy: what data this app handles, which risks matter most for it (use the OWASP Top 10:2025 as a reference), and any privacy or legal considerations, such as student data or payments. Then write the spec in Markdown, using EXACTLY this structure: # Spec: [PROJECT NAME] ## 1. Overview What it is, who it's for, and the problem it solves, in 3 to 5 sentences. ## 2. MVP scope Must-have features for v1, plus an explicit "Not in v1" list. ## 3. User flows Step by step, for each core flow. ## 4. Tech stack Each choice with a one-line reason and its exact package or service name. ## 5. Architecture The main components, how data flows between them, and what runs in the browser (untrusted) versus on the server (trusted). ## 6. Data model Every table with its fields, types, and relationships. Mark sensitive fields. ## 7. Access rules A table of role x data x read / create / update / delete, including signed-out visitors. The default is no access. ## 8. Environment variables Each variable, what it is for, and whether it is public or secret. ## 9. Security requirements Concrete, testable rules for this app: authentication, input validation, secrets, rate limits, and anything specific to its data. ## 10. Milestones 5 to 10 small milestones in build order. Each ends in something runnable, with acceptance criteria. Authentication and access rules come early, not at the end. ## 11. Open questions Decisions I still need to make. Label anything you are unsure about as an assumption, and cite sources for stack and security claims.