Feature Implementation Prompt
Generate a comprehensive prompt for implementing a new feature with clear requirements and expected outputs.
Overview
This template helps you create a well-structured prompt for implementing new features in your codebase. It ensures you provide enough context for AI to generate relevant, production-ready code.
When to Use
Use this template when starting work on a new feature that requires multiple components, files, or significant code changes. It works best when you have clear requirements and know the technology stack.
Instructions
- 1.Fill in all required variables with specific details
- 2.Be as detailed as possible in the requirements section
- 3.Include any existing code patterns or conventions to follow
- 4.Specify any third-party libraries or tools to use or avoid
Customize Template
A clear, concise name for the feature
The technologies used in your project
Relevant background about your project and existing architecture
Detailed functional requirements for the feature
How you will know the feature is complete
Examples
Implementing OAuth 2.0 authentication
Input values:
- feature_name:
- OAuth 2.0 authentication with Google and GitHub
- tech_stack:
- Next.js 14, NextAuth.js, PostgreSQL, Prisma
- project_context:
- This is a SaaS application for project management. We currently have email/password auth and need to add social login options. The app uses the App Router and server components.
- requirements:
- - Support Google and GitHub providers - Store user sessions in database - Handle token refresh automatically - Implement role-based access control - Support account linking for existing users
- acceptance_criteria:
- - Users can sign in with Google or GitHub - Sessions persist across browser restarts - Existing users can link social accounts - All auth flows have proper error handling