AI-Powered Product & Code Workflow Prompt Suite
A structured collection of advanced AI prompts designed to streamline software development workflows — from business requirements and user stories to component testing and PR code reviews. Each prompt follows industry best practices to ensure clarity, completeness, and technical accuracy.
Generate a BRD from raw inputs
You are an expert product analyst and business documentation specialist. I will provide you with raw input data — such as transcripts from multiple client calls, internal chat messages, and email exchanges — related to a new software feature or module. Your task is to analyze, consolidate, and generate a comprehensive Business Requirement Document (BRD) in a structured, professional format. Key instructions: - Create a single, consolidated source of truth (“Raw Materials”) by analyzing and combining all the provided inputs — including transcriptions, chats, emails, and shared notes. - Use the existing BRD template (provided below) to create a professional, structured, and complete Business Requirement Document for the feature. - Suggest any additional sections (if needed) that improve the BRD’s completeness, such as Non-Functional Requirements (NFRs), Dependencies, Technical Requirements, Risks, etc. - Analyze the entire BRD for clashes or inconsistencies in requirements, and create a dedicated section titled “Conflicting Requirements / Clarifications Needed.”, listing each conflict clearly with possible interpretations or resolution suggestions. Identify and merge overlapping requirements from different inputs. - Proactively identify potential edge cases and failure scenarios (e.g., for flight booking — double bookings, payment failures, invalid inputs, network issues, etc.). - List all unanswered or ambiguous aspects of the requirement as Queries to Ask Stakeholders, ensuring no open ends remain. - Remove vague or subjective wording and rephrase requirements so they are clear, measurable, and transparent for all stakeholders. - Maintain clarity between confirmed requirements and items pending confirmation. - Write concisely, using consistent terminology and professional tone. - Ensure the document is self-contained and logically structured. - The final output should be a complete, well-structured BRD in Markdown format, suitable for direct stakeholder review. - Include traceability where possible (optional: mention which requirement originated from which input type, e.g., [Call #2], [Client Email]) Use this structure for the BRD output: 1. Purpose 2. Background / Business Context 3. Scope 4. Stakeholders 5. Business Requirements (in descriptive paragraph form, not a table) 6. Use Cases 7. Edge Cases 8. Test Scenarios 9. Limitations 10. Assumptions 11. Non-Functional Requirements (if applicable) 12. Dependencies (if applicable) 13. Conflicting Requirements / Clarifications Needed 14. Open Queries 15. Acceptance Criteria Add more sections to the BRD if needed
User story Prompt
You are a senior product manager who writes top-quality Jira stories for enterprise-grade software teams. Here’s a user story that’s mediocre — it covers the basics but lacks structure, details, and clarity. Your task: Rewrite and enhance this user story so it reflects the level of depth, precision, and completeness expected from a top 1% product manager. Ensure the improved version includes: - A clear context and objective of the feature. - What exactly should appear on the UI, including fields and states (loading, empty, error). - How the feature integrates with the API (data mapping, caching, fallback). - Edge cases and performance considerations. - Acceptance Criteria in a numbered, testable format. - Example test scenarios or validation notes. - A short note on analytics or telemetry if relevant. - Clear separation of what’s in scope vs. future scope. Keep it concise but comprehensive — something an engineer can confidently start building from, and QA can test without asking for clarifications. Here’s a format: Template Structure for Improved User Story Title: (Concise, action-oriented title that clearly conveys the user goal or outcome.) Context / Background: (Briefly explain the problem or user need this story solves. Mention dependencies, assumptions, or related features if any.) Objective / Description: (Explain what needs to be built, where it fits in the flow, and how it behaves at a high level.) Functional Requirements: - (Detail what should appear on the UI — data, states, and interactions.) - (Mention any caching, API integration, or data transformation logic.) - (List important validations and edge cases.) Acceptance Criteria (Testable): 1. What happens when the API returns data successfully. 2. What happens when API returns empty data 3. What happens in case of an API failure or timeout. 4. Selection behavior and transitions. 5. Navigation or state persistence after selection. Test Scenarios: - Positive test: Ensure flights render as per Figma with correct details. - Negative test: Empty response shows the “No data” state. - Error test: API failure shows fallback UI and retry option. Performance / UX Notes: - E.g. Data should be cached for re-navigation within 15 minutes. - E.g. Pagination or lazy loading can be considered later. Out of Scope (Future Enhancements):
React Component Testing Prompt (Vitest + RTL)
PR Analyzer - Code review guidelines prompt
Identify Bug pattern: Prompt
You are a senior engineering manager and quality strategist. I will provide a list of QA-reported bugs for one or more features of a software product. Your task is to deeply analyze them and produce a diagnostic report focused on preventing similar issues in future releases. Your Goals: 1. Identify recurring bug patterns — cluster related bugs (e.g., API integration, state handling, caching, validation, accessibility, etc.). 2. Quantify pattern frequency — show how many bugs fall into each cluster, and rank by highest occurrence or impact. 3. Analyze root causes — include both technical and process-related reasons (e.g., missing test coverage, weak understanding of edge cases, unclear acceptance criteria, review gaps, etc.). 4. Recommend upskilling actions — concrete steps to strengthen the team (e.g., training focus, reusable checklists, automation, or AI-based lint rules/tests). 5. Suggest preventive automation/AI ideas — tools or processes that can automatically catch or reduce such bugs in future. 6. Summarize top 3–5 high-priority improvement areas — sorted by highest frequency or potential quality impact. Output Format: ## Bug Pattern Analysis | Pattern | Example Bugs | Count | Root Cause Summary | |----------|---------------|--------|--------------------| | State Handling Issues | #1, #6, #17 | 3 | Poor handling of async data and cache invalidation | | Accessibility Gaps | #22 | 1 | Missing awareness of WCAG compliance | ... ## Root Cause Insights - Theme 1 → [summary of deeper issues behind recurring bugs] - Theme 2 → ... ## Recommended Upskilling Actions - Conduct workshop on [topic] - Introduce AI-powered [code review/test/observability] assistant - Improve [requirement / QA / review] process ## Preventive Automation / AI Ideas - Example: Auto-detect missing ARIA attributes using an AI lint rule - Example: Use AI to auto-flag caching or state-sync issues pre-PR ## High-Priority Improvement Areas 1. [Area name] — [why it matters] 2. ... 3. ... Tone: Analytical, constructive, and leadership-oriented — meant for an internal quality review
When to Hire CodeWalnut?