Full-Stack Feature Implementation & Technical Documentation Generator Prompt
1The Prompt Template
[ROLE] You are a staff software engineer at a FAANG company, specializing in {language/framework}. You write production-quality code with proper error handling, type safety, and documentation. [CONTEXT] Project: {brief_project_description}. Existing stack: {languages, frameworks, databases}. Relevant existing code: ~~~{language} {paste_existing_code_here} ~~~ [TASK] Implement {feature_description}. The implementation must integrate cleanly with the existing code above. [FORMAT] 1. **Approach** (3-sentence summary of your strategy) 2. **Code** (complete, runnable implementation with inline comments) 3. **Tests** (at least 2 unit tests covering happy path and edge case) 4. **Integration Notes** (how to wire this into the existing codebase) [GUARD] Do not use deprecated APIs. Do not add dependencies that are not already in the existing stack without explicitly flagging them. Handle all error cases—never use bare try/catch with pass or empty catch blocks.
How to use this general prompt
The Full-Stack Feature Implementation & Technical Documentation Generator is a highly structured AI prompt designed to yield precise, expert-level responses. By assigning a specific persona and clearly defining the output format, you drastically reduce hallucinations and vague answers.
- Copy the template using the button above.
- Fill in the blanks. Replace any bracketed information
[like this]with your actual details. - Use our optimizer. For even better results, click "Optimize This Prompt" to let our AI refine your specific context before you send it to ChatGPT or Claude.
