Prompt-Engineering-Guide CLAUDE.md

Project instructions for Claude Code in the dair-ai/Prompt-Engineering-Guide repository. They describe the project, where notes belong, what project learnings to read, and how to use Git.

In plain words
What is it for?
Use them when editing the Prompt Engineering Guide, its notes and learnings, or its Git workflow.
Why use it?
They help an agent follow the repository's local decisions and avoid putting notes in the wrong place or pushing changes without permission.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dair-ai/prompt-engineering-guide/claude-md
Clone the repo
git clone --depth 1 https://github.com/dair-ai/Prompt-Engineering-Guide
Per session 135 This file is loaded in full into every session.
When invoked 135 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00135 $0.00135
Opus 5 $0.00068 $0.00068
Sonnet 5 $0.00027 $0.00027
Haiku 4.5 $0.00014 $0.00014

Measured yesterday against content hash 32e10f2c13ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Prompt-Engineering-Guide CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 15 lines

What it actually says

Prompt Engineering Guide

Project Overview

Open-source prompt engineering guide at promptingguide.ai. Built with Next.js (Nextra theme).

Project Learnings

Read and follow the project learnings in Prompt-Engineering-Guide-notes/learnings/ before starting work. These are distilled from past session corrections and contain important patterns for this project.

Notes & Content

  • All project notes go in Prompt-Engineering-Guide-notes/ (Obsidian vault inside the project root)

Git Workflow

  • Do NOT push to remote unless explicitly asked by the user
  • Commits are fine, but always wait for user to request push
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 15 lines · 135 tokens per session scan A 32e10f2c13ae

Subscribe to this mod's changes

Prompt-Engineering-Guide CLAUDE.md is an instructions file published in the GitHub repository dair-ai/Prompt-Engineering-Guide (77,898 stars, last pushed 5mo ago), licensed MIT. It adds 135 tokens to every session, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

aisearch-openai-rag-audio AGENTS.md

Instructions for Azure-Samples/aisearch-openai-rag-audio, covering instructions for coding agents, code layout, running the code, prerequisites and local development setup.

Azure-Samples/aisearch-openai-rag-audio · 3,306 tokens

openai-cookbook AGENTS.md

Instructions for openai/openai-cookbook, covering repository guidelines, project structure & module organization, build, test, and development commands, coding style & naming conventions and testing guidelines.

openai/openai-cookbook · 1,165 tokens

opik python_sdk.instructions.md

Instructions for comet-ml/opik, covering opik python sdk code review guidelines, 🔧 core architecture principles, three-layer architecture, execution paths and 📋 api design standards.

comet-ml/opik · 8,537 tokens

opik copilot-instructions.md

Instructions for comet-ml/opik, covering copilot code review instructions, project overview, 1. git workflow & branch management, branch naming convention and commit message standards.

comet-ml/opik · 5,043 tokens

azure-search-openai-demo AGENTS.md

Instructions for Azure-Samples/azure-search-openai-demo, covering instructions for coding agents, overall code layout, adding new data, adding a new azd environment variable and adding a new setting to "developer settings" in rag app.

Azure-Samples/azure-search-openai-demo · 5,202 tokens

opik AGENTS.md

Instructions for comet-ml/opik, covering repository guidelines, scope & inheritance, project structure & module organization, build, test, and development commands and coding style & naming conventions.

comet-ml/opik · 1,289 tokens