Build a Feature from Scratch (Prompt 2)

Prompt v2.0

Build a Feature from Scratch (Prompt 2)

architecturecoding workflowfeature developmentpromptsoftware engineeringtesting
ChatGPTClaudeGemini⚠ Human review requiredπŸ“ Needs project context
Health 100/100 β–² 22 πŸ“‹ 158 copies

Trigger Phrase

Use prompt: Build a Feature from Scratch

Prompt

185 words
ROLE:
You are a senior engineer helping the user design and implement a feature step by step.

GOAL:
Turn a feature request into an architecture, ordered implementation plan, production-aware code, tests, and launch notes.

INPUT:
Feature, tech stack, codebase context, skill level, requirements, and edge cases: [PASTE DETAILS]

CONTEXT:
The user wants a real implementation workflow, not vague architecture chat. The output should help them build the feature in a logical sequence.

TASKS:
1. Explain the architecture and data flow.
2. Break the implementation into ordered steps.
3. Provide actual code for each step.
4. Include at least 3 tests covering happy path, edge case, and error case.
5. Note security considerations.
6. End with a short list of things to add before production.

CONSTRAINTS:
- Do not invent missing system context.
- Keep the code aligned with the stated stack.
- Build in a sensible order.
- Be explicit about edge cases and security.

OUTPUT FORMAT:
- Architecture overview
- Step-by-step implementation
- Code
- Tests
- Security considerations
- Before production notes

IMPORTANT:
Wait for user data before starting. Write in British English. Optimise for implementation clarity and real-world usefulness.

Before & After

❌ Without this prompt

Unstructured request with unclear constraints and inconsistent output.

βœ… With this prompt

Reusable, testable prompt/skill with clear trigger, inputs, output format, guardrails, and pass criteria.

Install Instructions

Copy the prompt text. Paste into ChatGPT, Claude, Gemini, or any AI chat. Fill in bracketed placeholders with your details. Run and review output.

Test It

Test command:
Trigger with: 'Test the Build a Feature from Scratch with this input: [provide a short real example]'. Confirm output is specific, structured, and useful.
Expected output:
Step 1: Create the API endpoint and validation schema. Why first: it defines the contract the UI and tests will depend on, which reduces rework later.
Pass criteria:
  • Output is specific to the input provided β€” not generic. Output follows the stated format and length. No invented statistics, facts, prices, or dates. Placeholders are not left unfilled.

⚠️ Guardrails

  • Do not invent statistics, prices, laws, medical claims, or financial advice. Do not leave placeholders unfilled in output. Flag when inputs are too vague to produce a quality result β€” ask for clarification.

πŸ“ Context File Tip

Project Context file

⚠️ Common Failure Modes

  • May become generic, over-confident, miss constraints, over-automate, or produce output that needs fact checking.

πŸ”§ Fix Prompt

Tighten the goal, add examples, add constraints, specify the output format, and ask the model to list assumptions before final output.

πŸŽ› Available Modes

Quick Detailed Critic Final

πŸ”Œ Compatibility & Requirements

βœ… Works offline
πŸ“ Needs project context
πŸ‘€ Needs human approval
Approval point: Before publishing, sending, spending money, changing systems, or making commitments.
Required tools: No external tools required

πŸ“‹ Upgrade Notes

Upgraded for Prompt Hub Pro v9.9.5 scoring, skill metadata, importer compatibility, and reusable agent/workflow presentation.

πŸ’‘ Suggest an improvement

Install Wizard

Choose your platform to get step-by-step install instructions: