Awesome GitHub Copilot Customizations repo: github/awesome-copilot
- A community collection of instructions, prompts, and configurations to help you get more consistent Copilot outcomes.
A collection of prompts for developers starting new projects from scratch.
Create a new [TECHNOLOGY] frontend project for [PROJECT_IDEA]. Set up the project structure with proper folder organization, including components, styles, assets, and utilities directories.
Design and implement a component architecture for [PROJECT_IDEA] using [TECHNOLOGY]. Create reusable components following best practices and establish a clear component hierarchy.
Set up routing for a [TECHNOLOGY] application for [PROJECT_IDEA]. Include navigation between pages, route guards, and dynamic routing where needed.
Implement state management for [PROJECT_IDEA] using [TECHNOLOGY] and appropriate state management library. Set up global state, actions, and reducers/mutations.
Create a service layer in [TECHNOLOGY] to integrate with backend APIs for [PROJECT_IDEA]. Include error handling, loading states, and data transformation logic.
Build comprehensive form handling for [PROJECT_IDEA] using [TECHNOLOGY]. Include validation, error messages, and form submission with proper user feedback.
Implement a fully responsive UI for [PROJECT_IDEA] using [TECHNOLOGY]. Ensure the application works seamlessly across desktop, tablet, and mobile devices.
Create authentication flows (login, signup, password reset) for [PROJECT_IDEA] using [TECHNOLOGY]. Include protected routes and session management on the frontend.
Optimize the [TECHNOLOGY] frontend for [PROJECT_IDEA]. Implement lazy loading, code splitting, image optimization, and other performance best practices.
Set up a comprehensive testing environment for [PROJECT_IDEA] using [TECHNOLOGY]. Include unit tests for components, integration tests, and end-to-end testing configuration.
Initialize a [TECHNOLOGY] backend server for [PROJECT_IDEA]. Set up the project structure with proper separation of concerns including controllers, services, models, and middleware.
Design and implement a database schema for [PROJECT_IDEA] using [TECHNOLOGY]. Create tables/collections with proper relationships, indexes, and constraints.
Create a RESTful API structure for [PROJECT_IDEA] using [TECHNOLOGY]. Define routes, controllers, and implement CRUD operations following REST principles.
Implement authentication and authorization for [PROJECT_IDEA] using [TECHNOLOGY]. Include user registration, login, JWT/session management, and role-based access control.
Set up essential middleware for [PROJECT_IDEA] backend using [TECHNOLOGY]. Include logging, CORS, request validation, error handling, and security middleware.
Implement comprehensive input validation and sanitization for [PROJECT_IDEA] using [TECHNOLOGY]. Validate all incoming requests and ensure data integrity.
Create a robust error handling system for [PROJECT_IDEA] using [TECHNOLOGY]. Implement custom error classes, error middleware, and consistent error responses.
Set up database migration system for [PROJECT_IDEA] using [TECHNOLOGY]. Create initial migrations and establish a process for schema evolution.
Implement a background job processing system for [PROJECT_IDEA] using [TECHNOLOGY]. Set up task queues for async operations like email sending, data processing, etc.
Create comprehensive backend testing and API documentation for [PROJECT_IDEA] using [TECHNOLOGY]. Include unit tests, integration tests, and auto-generated API documentation.
Design and implement an API gateway for [PROJECT_IDEA] using [TECHNOLOGY]. Configure routing, rate limiting, and request/response transformation.
Create a GraphQL API for [PROJECT_IDEA] using [TECHNOLOGY]. Define schemas, resolvers, and implement queries and mutations.
Implement API versioning strategy for [PROJECT_IDEA] using [TECHNOLOGY]. Set up v1 endpoints and prepare for future versions with proper deprecation handling.
Add rate limiting and throttling to the API for [PROJECT_IDEA] using [TECHNOLOGY]. Protect endpoints from abuse and implement fair usage policies.
Implement multiple authentication methods for the API of [PROJECT_IDEA] using [TECHNOLOGY]. Support API keys, OAuth2, and JWT authentication.
Set up comprehensive logging for API requests and responses in [PROJECT_IDEA] using [TECHNOLOGY]. Include request tracking, performance monitoring, and audit trails.
Implement caching strategy for the API of [PROJECT_IDEA] using [TECHNOLOGY]. Set up Redis/in-memory caching for frequently accessed resources.
Create a flexible pagination and filtering system for API endpoints in [PROJECT_IDEA] using [TECHNOLOGY]. Support query parameters for sorting, filtering, and pagination.
Design and implement webhook support for [PROJECT_IDEA] using [TECHNOLOGY]. Allow external services to subscribe to events and receive real-time notifications.
Set up monitoring and analytics for the API of [PROJECT_IDEA] using [TECHNOLOGY]. Track usage metrics, response times, error rates, and generate insights.
- Replace [TECHNOLOGY] with your chosen technology stack (e.g., React, Node.js, Express, Django, etc.)
- Replace [PROJECT_IDEA] with your specific project concept (e.g., e-commerce platform, task manager, social network, etc.)
- Use these prompts with your AI coding assistant to generate starter code and implementations
- Adapt the generated code to your specific requirements and coding standards
Note: These prompts are designed to help you quickly bootstrap greenfield projects. Always review and customize the generated code to match your project's specific needs and best practices.