Skip to content

Prompts

A library of production-tested prompt templates for AI-assisted development. These are not chat prompts — they’re structured instruction sets designed to produce consistent, high-quality outputs from AI assistants.

Field-tested execution patterns from 4 real source code audits. The most operationally mature part of this library.

ComponentPurpose
Audit MAP MethodologyRecon-first, multi-pass, Finding Contract, validation rigor, attack chains
JSON Sidecar PatternAI produces structured JSON alongside human-readable markdown
Audit MAP templatesReady-to-use templates: recon, single-pass, multi-pass orchestrator, pass, synthesis

Multi-lens codebase analysis prompts that delegate to specialist sub-agents:

PromptPurposeUse when
codebase-audit-prompt.mdFull codebase audit with 8 lensesStarting a new project review
claude-code-audit-prompt.mdClaude Code-specific auditAuditing Claude Code output
claude-code-audit-with-logging.mdAudit with detailed loggingNeed an audit trail
dev_audit_prompt.txtDev velocity auditQuick development health check
full_audit_prompt.txtComprehensive deep diveDetailed analysis

See the Audit Framework for lens architecture details.

GuidePurpose
CAP MethodologyDevelop prompts in modules, deploy as a monolith
god-prompt-methodology.mdBuilding effective large-scale prompts (MAP design)
Prompt TestingTesting prompts in Python, TypeScript, and Rust
PromptPurpose
dev-blockers-audit.mdIdentify development blockers and friction points
full-production-audit.mdProduction readiness assessment
NeedUse
Quick dev health checkdev_audit_prompt.txt
Standard project audit (1-5 lenses)audit/templates/single-pass-template.md
Complex audit (6+ lenses)audit/templates/multi-pass-orchestrator-template.md
AI-generated code reviewclaude-code-audit-prompt.md
Machine-readable outputAdd JSON sidecar to any audit
Production readinessfull-production-audit.md

These are templates — copy and customise:

Terminal window
git clone https://github.com/ydun-code-library/Ydun_ai_workflow.git
cd Ydun_ai_workflow
# Standard audit setup
cp prompts/audit/templates/recon-template.md ./my-audit/00-recon.md
cp prompts/audit/templates/single-pass-template.md ./my-audit/01-audit.md
# Fill placeholders, run recon first, then audit
# Add JSON output
# Include json-sidecar-pattern.md instructions in your audit MAP
prompts/
├── audit/
│ ├── codebase-audit-prompt.md
│ ├── claude-code-audit-prompt.md
│ ├── claude-code-audit-with-logging.md
│ ├── dev_audit_prompt.txt
│ ├── full_audit_prompt.txt
│ ├── json-sidecar-pattern.md
│ └── templates/
│ ├── recon-template.md
│ ├── single-pass-template.md
│ ├── multi-pass-orchestrator-template.md
│ ├── pass-template.md
│ └── synthesis-template.md
├── methodology/
│ ├── audit-map-execution-patterns.md
│ ├── cap-workflow-methodology.md
│ ├── god-prompt-methodology.md
│ └── prompt-testing-implementation-guide.md
├── dev-blockers-audit.md
└── full-production-audit.md