AI Prompt Templates
This document contains reusable prompt templates for common development tasks in the LayerFive project.Table of Contents
Backend Development
Create Django Model
Create API Endpoint
Create Django Service
Database Migration
External API Integration
Frontend Development
Create Angular Component
Create Angular Service
Create Form
Add Route
Create Chart
Testing
Unit Tests for Django
Unit Tests for Angular
Integration Tests
Debugging
Debug Error
Performance Issue
Database Query Debug
Code Review
Self Review
Refactoring Suggestions
Documentation
Generate Docstrings
API Documentation
Generate README
Feature Development
Complete Feature Planning
Code Generation for Feature
Tips for Using Templates
- Fill in ALL placeholders: Replace [PLACEHOLDERS] with specific details
- Add context: Include relevant code, files, or documentation
- Be specific: The more specific you are, the better the output
- Iterate: Start with basic prompt, then refine based on results
- Customize: Adjust templates for your specific needs
- Save variations: Keep track of effective prompt variations
- Share: Share successful prompts with the team
Creating Your Own Templates
When you find an effective prompt pattern:- Generalize it by identifying common elements
- Add placeholders for variable parts
- Include context requirements
- Add it to this document
- Share with the team
Template Variables Reference
Common placeholders used in templates:[APP_NAME]- Django app name[MODEL_NAME]- Django model name[COMPONENT_NAME]- Angular component name[SERVICE_NAME]- Service class name[FEATURE_NAME]- Feature being developed[FILE_PATH]- Path to file[ENDPOINT]- API endpoint URL[METHOD]- HTTP method[TYPE]- TypeScript type[DESCRIPTION]- Description of purpose[REQUIREMENTS]- Specific requirements
.png?fit=max&auto=format&n=Frm2GFbmok4D-yJA&q=85&s=93c3ebd47542af65d1cd06d8563a7f6e)