Skip to content

Educational Purposes: A public repo of reusable prompt templates for GitHub Copilot, designed to streamline coding, documentation, and AI-assisted development workflows.

License

Notifications You must be signed in to change notification settings

kunalsuri/prompt-engineering-templates-public

Repository files navigation

πŸš€ Prompt Engineering Templates

Production-Ready AI-Augmented Development Blueprints

React TypeScript Python FastAPI GitHub Copilot

A comprehensive collection of battle-tested prompt templates, GitHub Copilot instructions, and prompt engineering guides for building production-grade applications with AI-augmented development.

🎯 Quick Start β€’ πŸ“š Documentation β€’ πŸ› οΈ Templates β€’ πŸ”’ Security β€’ ⭐ Star Us


🎯 What is This?

This repository is your complete toolkit for AI-augmented software development. Whether you're building a React frontend, Python backend, or full-stack application, you'll find:

  • πŸ€– GitHub Copilot Instructions - Pre-configured rulesets that make Copilot follow best practices automatically
  • πŸ“ Reusable Prompt Templates - Copy-paste prompts for common development tasks
  • πŸ“– Prompt Engineering Guides - Learn the principles, patterns, and techniques
  • πŸ”§ Setup Scripts - Get started quickly with automated project setup
  • πŸ”’ Security-First Approach - Integrated Codacy and Snyk best practices

Crafted with ❀️ in Paris by kunalsuri β€” blending Human Intelligence with cutting-edge AI systems (Human-in-the-Loop).


🎨 Key Features

🎯 Multi-Stack Support

  • React + TypeScript
  • Python 3.12+
  • FastAPI + React Full-Stack
  • Modular architecture patterns

πŸ€– AI-First Development

  • GitHub Copilot optimized
  • Context-aware instructions
  • Security scanning built-in
  • Prompt engineering best practices

πŸ“š Complete Learning Path

  • Prompt engineering 101
  • Real-world examples
  • Multi-agent workflows
  • Custom GPT guides

πŸ“š Repository Structure

πŸ“¦ prompt-engineering-templates-public
β”œβ”€β”€ πŸ€– .github/                          # Base GitHub Copilot instructions
β”œβ”€β”€ 🐍 .github-python/                   # Python-specific instructions & prompts
β”‚   β”œβ”€β”€ copilot-instructions.md          # Python dev standards (PEP 8, type hints)
β”‚   β”œβ”€β”€ prompts/                         # Python project prompts
β”‚   └── instructions/                    # Codacy rules for Python
β”œβ”€β”€ βš›οΈ  .github-react-typescript/        # React + TypeScript instructions
β”‚   β”œβ”€β”€ copilot-instructions.md          # React best practices (hooks, Tailwind)
β”‚   β”œβ”€β”€ prompts/                         # React feature prompts
β”‚   └── instructions/                    # Security & quality rules
β”œβ”€β”€ πŸ”„ .github-react-python-fastapi/     # Full-stack (React + FastAPI)
β”‚   β”œβ”€β”€ copilot-instructions.md          # Full-stack architecture guidelines
β”‚   β”œβ”€β”€ prompts/                         # Full-stack app creation prompts
β”‚   └── instructions/                    # Integrated security rules
β”œβ”€β”€ πŸ“– prompt-engineering-101/           # Complete learning guide
β”‚   β”œβ”€β”€ 01-introduction.md               # What is prompt engineering?
β”‚   β”œβ”€β”€ 02-principles.md                 # Core principles
β”‚   β”œβ”€β”€ 03-patterns.md                   # Common patterns (few-shot, CoT)
β”‚   β”œβ”€β”€ 04-best-practices.md             # Production tips
β”‚   β”œβ”€β”€ comparisons/                     # Framework comparisons
β”‚   β”œβ”€β”€ prompt-examples/                 # Real-world examples
β”‚   β”‚   β”œβ”€β”€ agents/                      # Agent-specific prompts
β”‚   β”‚   β”œβ”€β”€ creative/                    # Creative use cases
β”‚   β”‚   └── general/                     # Brainstorming, translation
β”‚   └── templates/                       # Reusable prompt templates
β”œβ”€β”€ 🎯 generic-user-prompts/             # Ready-to-use prompt examples
β”‚   β”œβ”€β”€ generic-examples-py.prompt.md    # Python examples
β”‚   └── generic-examples-react.prompt.md # React examples
β”œβ”€β”€ πŸ› οΈ scripts-utils/                    # Project setup automation
β”‚   β”œβ”€β”€ scripts-python/                  # Python project setup
β”‚   β”œβ”€β”€ scripts-react-typescript/        # React project setup
β”‚   └── scripts-react-python-fastapi/    # Full-stack setup
└── πŸ“„ docs/                             # Additional documentation

πŸ› οΈ What's Included

πŸ€– GitHub Copilot Instructions

Pre-configured instruction files that automatically guide Copilot to:

  • Follow Best Practices - PEP 8 for Python, React hooks patterns, TypeScript strict mode
  • Maintain Architecture - Feature-driven modular structure
  • Enforce Security - Input validation, no hardcoded secrets, sanitized outputs
  • Ensure Quality - Type hints, error handling, accessibility standards

Supported Stacks:

  • βœ… React + TypeScript - Modern frontend with Tailwind CSS, Zustand, TanStack Query
  • βœ… Python 3.12+ - Backend with type hints, dataclasses, async patterns
  • βœ… FastAPI + React - Full-stack with unified architecture

πŸ“ Prompt Templates

Development Tasks:

  • Creating full-stack SaaS applications
  • Generating comprehensive test suites
  • Building multi-agent workflows
  • Code auditing and refactoring

Specialized Prompts:

  • agents/ - Research helpers, code auditors, planning agents
  • creative/ - Character building, plot generation
  • general/ - Brainstorming, summarization, translation

πŸ“– Prompt Engineering Education

Complete Learning Path:

  1. Introduction - Fundamentals of prompt engineering
  2. Principles - Clarity, context, iterative refinement
  3. Patterns - Few-shot learning, chain-of-thought, role-playing
  4. Best Practices - Production-ready techniques
  5. Comparisons - Framework analysis (ReAct, Chain-of-Thought)
  6. Real Examples - ChatGPT, local LLMs, multi-agent systems

πŸš€ Quick Start

Option 1: Use as Template Repository

# Clone this repository as a starting point
git clone https://github.com/kunalsuri/prompt-engineering-templates-public.git my-project
cd my-project

# Choose your stack and copy instructions to .github/
cp .github-react-typescript/* .github/     # For React projects
# OR
cp .github-python/* .github/                # For Python projects
# OR
cp .github-react-python-fastapi/* .github/  # For Full-Stack projects

# Start coding - Copilot will follow the instructions automatically!

Option 2: Cherry-Pick Instructions

# Add to your existing project
cd your-existing-project

# Copy just the Copilot instructions you need
curl -o .github/copilot-instructions.md \
  https://github.com/kunalsuri/prompt-engineering-templates-public/main/.github-react-typescript/copilot-instructions.md

Option 3: Learn Prompt Engineering

# Explore the educational content
cd prompt-engineering-templates-public/prompt-engineering-101

# Read in order:
# 01-introduction.md β†’ 02-principles.md β†’ 03-patterns.md β†’ 04-best-practices.md

πŸ’‘ How It Works

1️⃣ Automatic Best Practices

When you have Copilot instruction files in your .github/ folder, GitHub Copilot automatically:

// ❌ Without instructions, Copilot might generate:
function getData() {
  const data: any = fetchAPI();
  return data;
}

// βœ… With instructions, Copilot generates:
interface ApiResponse {
  id: string;
  name: string;
}

async function getData(): Promise<ApiResponse> {
  try {
    const response = await fetchAPI();
    return response;
  } catch (error) {
    logger.error('Failed to fetch data', error);
    throw new ApiError('Data fetch failed');
  }
}

2️⃣ Context-Aware Generation

Copilot understands your project structure and generates code that fits:

  • Frontend - Respects src/features/ structure, uses Zustand for state
  • Backend - Follows app/api/ patterns, uses Pydantic validation
  • Full-Stack - Maintains contract between frontend and backend

3️⃣ Security by Default

Built-in security scanning with:

  • Codacy - Automatic code quality and security checks
  • Snyk - Dependency vulnerability scanning
  • Instructions - Prevents common security anti-patterns

πŸ”’ Security & Quality Tools

πŸ›‘οΈ Integrated Security Scanning

This repository includes automated security checks:

Codacy MCP Integration

  • βœ… Runs automatically after file edits
  • βœ… Detects security vulnerabilities
  • βœ… Enforces code quality standards
  • βœ… Scans dependencies with Trivy

Snyk Security at Inception

  • βœ… Scans newly generated code
  • βœ… Checks for vulnerabilities in dependencies
  • βœ… Provides fix suggestions
  • βœ… Rescans after fixes

πŸ”§ Recommended VS Code Extensions

Codacy

  • Static code analysis
  • Real-time security scanning
  • Code quality metrics
  • Git workflow integration

CodeQL

  • Semantic code analysis
  • Advanced vulnerability detection
  • Custom security queries
  • Database-backed scanning

πŸŽ“ Use Cases

For Individual Developers

  • Learn prompt engineering from basics to advanced patterns
  • Bootstrap new projects with production-ready templates
  • Improve AI interactions with proven prompting techniques

For Teams

  • Standardize coding practices across the organization
  • Onboard faster with automated best practices
  • Maintain consistency in AI-generated code

For AI Enthusiasts

  • Explore multi-agent systems with example workflows
  • Build custom GPTs with provided templates
  • Experiment with local LLMs using example prompts

πŸ“– Documentation

🎯 Getting Started Guides

Guide Description Link
Prompt Engineering 101 Complete beginner's guide πŸ“– Read
React + TypeScript Setup Frontend development guide βš›οΈ Instructions
Python Development Backend best practices 🐍 Instructions
Full-Stack Guide React + FastAPI integration πŸ”„ Instructions

πŸ“š Advanced Topics


🀝 Contributing

Contributions are welcome! Here's how you can help:

  1. πŸ› Report Issues - Found a bug or have a suggestion? Open an issue
  2. πŸ“ Submit PRs - Improve documentation, add examples, fix bugs
  3. ⭐ Share Knowledge - Add your own prompt templates or best practices
  4. πŸ’¬ Spread the Word - Share this repository with your team

Before Contributing:

  • Review existing instructions for style consistency
  • Test your prompts with GitHub Copilot
  • Include examples and documentation
  • Follow security best practices

πŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

TL;DR: You can use, modify, and distribute this project freely. Just keep the original license notice.


⚠️ Disclaimer

This project has been developed using AI-assisted development tools including:

  • Visual Studio Code with GitHub Copilot Pro
  • Windsurf, Cursor, and other AI coding assistants
  • Human-in-the-Loop supervision and review

Security Notice:

  • All code has been validated and scanned
  • Malware scanning and static analysis applied (CodeQL)
  • However, NO WARRANTY is provided
  • Review AI-generated code before production use

Use at your own discretion and risk. This software is provided "as is" without any warranties.


🌟 Call to Action

Find this useful? Here's how to support:

⭐ Star this repository to show your support!

Star History Chart

πŸ”” Watch for updates β€’ 🍴 Fork for your projects β€’ πŸ’¬ Share with your team


πŸ“ž Connect


Built with πŸ’» & πŸ€– in Paris | Human Intelligence + AI Augmentation

Empowering developers to build better software, faster.

About

Educational Purposes: A public repo of reusable prompt templates for GitHub Copilot, designed to streamline coding, documentation, and AI-assisted development workflows.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published