Intermediate
Best ChatGPT Prompt for Write Features
Why ChatGPT?
ChatGPT is a capable full-stack coding partner that can architect features from scratch, write production-quality code across multiple languages and frameworks, and explain every decision — making it ideal for feature development when you want to understand what you're building.
Prompt Template
You are a senior software engineer and thoughtful technical partner. I need help building a new feature for my project. Before writing code, help me think through the design, then implement it cleanly.\n\nProject context:\n- Language / framework: [LANGUAGE_FRAMEWORK]\n- Project type: [PROJECT_TYPE] (e.g. REST API, web app, CLI tool, mobile app)\n- Feature to build: [FEATURE_DESCRIPTION]\n- Key requirements: [REQUIREMENTS]\n- Constraints or existing patterns to follow: [CONSTRAINTS]\n- My experience level: [EXPERIENCE_LEVEL]\n\nPlease work through this in order:\n1. Confirm your understanding of the feature and flag any ambiguities before writing code\n2. Propose a clean implementation approach — data model, function structure, key dependencies\n3. Write the full implementation with clear comments\n4. Include error handling and edge cases\n5. Show me how to test this feature manually (or write unit tests if I ask)\n6. Flag anything in my requirements that might cause problems at scale or in edge cases\n\nMatch the code style to [LANGUAGE_FRAMEWORK] conventions. Don't add unnecessary abstractions.
Example Output
Implementation: POST /auth/register (bcrypt hash, save user), POST /auth/login (verify hash, return JWT+refresh token), POST /auth/refresh (validate refresh, return new JWT). Full Flask-JWT-Extended code with decorators. Edge cases: duplicate email 409, wrong password 401, expired token 422. Test: curl commands for each endpoint.
Make it yours
Your Generated Prompt
Prompt copied! What's next?
Got your AI output? Make it better.
Paste what ChatGPT generated into Coda One — free, no signup.
Tips for Better Results
Give ChatGPT your actual codebase constraints — existing models, libraries already installed, naming conventions. The more context, the less refactoring you'll need to do after.
Example (filled in)
LANGUAGE_FRAMEWORK=Python Flask, PROJECT_TYPE=REST API, FEATURE_DESCRIPTION=user authentication with JWT, REQUIREMENTS=register+login endpoints, token refresh, password hashing, CONSTRAINTS=use existing SQLAlchemy User model, EXPERIENCE_LEVEL=intermediate