Skip to content

kunalsuri/prompt-engineering-playbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

65 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Prompt Engineering Playbook

A seven-module curriculum + stack-specific prompt templates for AI-assisted development β€” works with any LLM.

DOI License: MIT Docs Build

🌐 View the Documentation Site β†’

Tested environment: Verified in VS Code 1.96+ with GitHub Copilot Pro/Enterprise. Prompt files are plain Markdown and work with any coding agent.


Who This Is For

  • For: developers, contributors, educators, and researchers who want practical prompt-engineering curriculum and reusable prompt templates.
  • For: teams using VS Code + GitHub Copilot who need structured .prompt.md workflows.
  • Not for: model training, benchmark leaderboards, or framework-specific SDK implementations.

Quick Navigation

For AI Agents

If you are an AI assistant or automation reading this repository:

  • Start with llms.txt for the repository purpose and structure contract.
  • Use GETTING-STARTED.md for installation and usage flow.
  • Follow CONTRIBUTING.md for formatting, citation, and prompt-file requirements.

Quick Start (60 seconds)

Safety note: Run repository scripts inside a Python virtual environment to avoid polluting system packages.

python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements-docs.txt -r requirements-dev.txt

For a local/manual setup path (no curl pipe) plus verification steps, see GETTING-STARTED.md.

Option A β€” Use as a GitHub template: Click "Use this template" at the top of this page to create your own copy with all files included.

Option B β€” Grab files for one stack:

# Example: set up Python prompts in your project
mkdir -p .github/prompts

# Base instructions (Copilot reads this automatically)
curl -o .github/copilot-instructions.md \
  https://raw.githubusercontent.com/kunalsuri/prompt-engineering-playbook/main/prompts/python/copilot-instructions.md

# All Python prompt files
curl -o .github/prompts/create-feature.prompt.md \
  https://raw.githubusercontent.com/kunalsuri/prompt-engineering-playbook/main/prompts/python/prompts/create-feature.prompt.md

# Repeat for each prompt file you need, or clone and copy:
git clone https://github.com/kunalsuri/prompt-engineering-playbook.git
cp -r prompt-engineering-playbook/prompts/python/prompts/*.prompt.md .github/prompts/

Pick Your Path

A seven-module curriculum that takes you from first principles through advanced techniques like RAG, adversarial robustness, systematic evaluation, and agentic architectures. Each module includes worked examples and hands-on exercises. No prior prompt engineering experience required.

Copy-paste-ready prompt files for Python, React/TypeScript, React + FastAPI, and Node.js/TypeScript projects. Optimized for VS Code Copilot's agent mode, but the prompt content works with any LLM. Pick your stack, grab the files, and start building.

Ready-to-use prompts for writing, research, analysis, communication, and decision-making β€” no programming required. Each recipe is tagged with the prompting patterns it uses.

Step-by-step guide to installing these templates in your own project (with first-class VS Code Copilot integration) and customizing templates for your team.


Learning Path

graph TD
    A[Module 0: Orientation] --> B[Module 1: Introduction]
    B --> C[Module 2: Core Principles]
    C --> D[Module 3: Patterns]
    D --> E[Module 4: Best Practices]
    E --> F[Module 5: Advanced Patterns]
    F --> G[Module 6: Agentic Patterns]
    
    D -.-> H[Prompt Templates]
    F -.-> I[Labs & Comparisons]
Loading

What's in This Repo

prompt-engineering-playbook/
β”‚
β”œβ”€β”€ learn/                     πŸŽ“ Seven-module curriculum
β”‚   β”œβ”€β”€ 00-orientation.md      ← Story-first on-ramp (no jargon, no code)
β”‚   β”œβ”€β”€ 01-06-*.md             ← Core modules (Introduction β†’ Agentic Patterns)
β”‚   β”œβ”€β”€ comparisons/           ← Research-backed technique comparisons (CoT, ReAct, Few-Shot…)
β”‚   β”œβ”€β”€ prompt-examples/       ← Worked examples for each pattern
β”‚   β”œβ”€β”€ labs/                  ← Six runnable Python experiments + failure gallery
β”‚   β”œβ”€β”€ decisions/             ← Architecture Decision Records (why we chose X over Y)
β”‚   β”œβ”€β”€ solutions/             ← Reference solutions for all module exercises
β”‚   └── *.md                   ← Guides: cheatsheet, cookbook, glossary, debugging, meta-prompting…
β”‚
β”œβ”€β”€ prompts/                   ⚑ Reusable prompt templates by stack
β”‚   β”œβ”€β”€ python/                ← 7 prompts + copilot-instructions.md
β”‚   β”œβ”€β”€ react-typescript/      ← 8 prompts + copilot-instructions.md
β”‚   β”œβ”€β”€ react-fastapi/         ← 3 prompts + copilot-instructions.md
β”‚   β”œβ”€β”€ nodejs-typescript/     ← 4 prompts + copilot-instructions.md
β”‚   β”œβ”€β”€ shared/                ← Evaluation template, README base, JSON schema
β”‚   └── user-prompts/          ← Generic everyday prompts (non-coding)
β”‚
β”œβ”€β”€ scripts/                   πŸ”§ Repo automation & per-stack setup helpers
β”‚   β”œβ”€β”€ setup.sh               ← Project setup script
β”‚   β”œβ”€β”€ check-citations.py     ← Validates all [CitationKey] references
β”‚   β”œβ”€β”€ check-lab-sync.py      ← Ensures lab .py and .ipynb files stay in sync
β”‚   β”œβ”€β”€ lint-*.sh              ← Linters for prompt frontmatter and copilot instructions
β”‚   β”œβ”€β”€ validate-prompt-schema.py ← JSON Schema validation for .prompt.md files
β”‚   β”œβ”€β”€ run-notebook-smoke.py  ← Smoke-tests all Jupyter notebooks
β”‚   └── {python,react-typescript,react-fastapi,nodejs-typescript}/setup.sh
β”‚
β”œβ”€β”€ .github/                   πŸ€– CI workflows, issue templates, Copilot instructions
β”œβ”€β”€ assets/                    🎨 CSS and favicon for the documentation site
β”œβ”€β”€ docs_src/                  πŸ“Ž Symlinks used by MkDocs to build the docs site
β”‚
β”œβ”€β”€ README.md                  ← You are here
β”œβ”€β”€ GETTING-STARTED.md         ← Installation and first-use walkthrough
β”œβ”€β”€ CONTRIBUTING.md            ← Contributor guidelines and commit conventions
β”œβ”€β”€ CHANGELOG.md               ← Version history
β”œβ”€β”€ ROADMAP.md                 ← Planned features and future work
β”œβ”€β”€ ARCHITECTURE.md            ← Deep-dive architecture documentation
β”œβ”€β”€ DEVELOPMENT_WORKFLOW.md    ← Step-by-step developer workflows
β”œβ”€β”€ CONTRIBUTING_AI.md         ← AI-agent-specific contribution guide
β”œβ”€β”€ AGENT.md                   ← General AI agent context file
β”œβ”€β”€ CLAUDE.md                  ← Claude Code context file
β”œβ”€β”€ REPOSITORY_MAP.md          ← Full navigable file inventory
β”œβ”€β”€ TECHNICAL-REPORT.md        ← Technical report on the playbook
β”œβ”€β”€ BETA-RELEASE-NOTES.md      ← Beta-specific release notes
β”œβ”€β”€ SECURITY.md                ← Security policy
β”œβ”€β”€ CODE_OF_CONDUCT.md         ← Community code of conduct
β”œβ”€β”€ references.md              ← Bibliography (APA, with DOIs)
β”œβ”€β”€ llms.txt                   ← Machine-readable repo summary for LLMs
β”œβ”€β”€ mkdocs.yml                 ← Documentation site configuration
β”œβ”€β”€ requirements-docs.txt      ← Docs build dependencies
β”œβ”€β”€ requirements-dev.txt       ← Dev/CI dependencies
└── Makefile                   ← Common dev tasks (make sync, make build, make check…)

Available Stacks

Stack Instructions Prompts Setup Script
Python copilot-instructions.md 7 prompts setup.sh --stack python (see GETTING-STARTED.md)
React + TypeScript copilot-instructions.md 8 prompts setup.sh --stack react-typescript (see GETTING-STARTED.md)
React + FastAPI copilot-instructions.md 3 prompts setup.sh --stack react-fastapi (see GETTING-STARTED.md)
Node.js + TypeScript copilot-instructions.md 4 prompts setup.sh --stack nodejs-typescript (see GETTING-STARTED.md)

Each stack includes a copilot-instructions.md (base rules Copilot follows automatically) and task-specific .prompt.md files (invoked on demand via Copilot Chat). The prompt content itself is model-agnostic β€” you can paste it into ChatGPT, Claude, Gemini, or any other LLM.


How Prompt Files Work (VS Code Copilot)

When you place files in your project's .github/ directory, VS Code Copilot picks them up automatically:

your-project/
β”œβ”€β”€ .github/
β”‚   β”œβ”€β”€ copilot-instructions.md    ← Always active (style, conventions, tooling)
β”‚   └── prompts/
β”‚       β”œβ”€β”€ create-feature.prompt.md   ← Invoke with /create-feature in Copilot Chat
β”‚       β”œβ”€β”€ review-code.prompt.md      ← Invoke with /review-code
β”‚       └── ...

The YAML frontmatter mode: 'agent' enables Copilot to read files, run commands, and iterate autonomously. See GETTING-STARTED.md for the full walkthrough.


Contributing

Contributions are welcome β€” whether it's fixing a typo, adding an exercise, or creating prompts for a new stack. See CONTRIBUTING.md for guidelines, commit conventions, and review checklists.

License

This project is licensed under the MIT License. See LICENSE for details.

✍️ How to Cite & AI Usage

Citation details

If you use this framework to structure your research, paper framing, or methodology curriculum, please cite it using the following format and check references.md for the bibliography. Machine-readable citation and archival metadata are also provided in CITATION.cff and .zenodo.json.

APA Format:

Suri, K. (2026). Prompt Engineering Playbook: Curriculum and Reusable Prompt Templates for LLM-powered Development (v0.1.0-beta). Zenodo. https://doi.org/10.5281/zenodo.18827631

BibTeX:

@software{suri2026promptengineering,
  author       = {Suri, Kunal},
  title        = {Prompt Engineering Playbook: Curriculum and Reusable Prompt Templates for LLM-powered Development},
  year         = {2026},
  version      = {v0.1.0-beta},
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.18827631},
  url          = {https://doi.org/10.5281/zenodo.18827631},
}

AI Transparency and Responsible Use
  • Responsible Use of AI:

    • Data Privacy: Prioritize local open-weight models for processing sensitive or educational data to ensure data sovereignty.
    • Human Validation: All AI-generated outputs are validated before integration into teaching, research, or decision-making workflows.
    • Compliance: This project aligns with EU Guidance on Responsible Use of Generative AI in Research.
  • Coding: This project was developed with assistance from the following AI tools: GitHub Copilot (Pro/Enterprise), Google's Antigravity IDE, Local Open-Weight Models (via Ollama in VS Code, e.g., Mistral). These tools were used primarily for code generation, completion, and debugging. All AI-assisted code was independently reviewed, tested, and refined by the authors. The authors take full responsibility for the correctness, security, and integrity of the codebase.

  • Writing & Ideation: Large language model (LLM) tools β€” specifically Anthropic Claude and Google Gemini models β€” were used to support brainstorming, structural organization, and language refinement during the writing process. All underlying arguments, intellectual contributions, and conclusions originate with the authors. All AI-assisted material was critically reviewed and substantially revised by the authors, who take full responsibility for the accuracy, originality, and integrity of the published content.


About

Educational Purposes: A hands-on guide to prompt engineering with state-of-the-art curriculum and reusable prompt templates for LLM-powered development.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors