home/coding/prompting-patterns

Prompting Patterns

GPTClaudeDeepSeek··1,350 copies·updated 2026-07-14
prompting-patterns.prompt
# Prompting Patterns

Effective prompting is essential for AI-assisted engineering.

This playbook uses structured prompts.

---

# Prompt Structure

A good prompt typically contains:

1. Context
2. Objective
3. Constraints
4. Expected output format
5. Validation criteria

---

# Example Prompt

Context:
We are implementing a REST API using Fastify.

Objective:
Create an endpoint to retrieve a list of users.

Constraints:
Follow repository structure and validation rules.

Output:
Provide a TypeScript implementation.

---

# Why This Works

Structured prompts provide clarity and reduce hallucinations.

The AI understands both the environment and the expected output.

when to use it

Community prompt sourced from the open-source GitHub repo SD-Khan/ai-assisted-engineering-playbook (MIT). A "Prompting Patterns" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

SD-Khan/ai-assisted-engineering-playbook · MIT