Production-ready prompt library for Claude AI and coding agents, built on the APEI cycle: Analyze → Plan → Execute → Iterate.
Repository default is English-only and remains enforced to keep quality, tone, and contribution standards consistent across all prompts.
- Use Agent System as the core prompt.
- Add one specialist prompt only when the task clearly needs it.
- Validate outputs against explicit success criteria.
| Scenario | Prompt Setup |
|---|---|
| General autonomous coding | Agent System |
| Debugging production issues | Agent System + Debugging & Troubleshooting |
| Security-sensitive changes | Agent System + Security Audit |
| Architecture decisions | Agent System + Architecture Patterns |
| Complex multi-agent execution | Agent System + Multi-Agent Orchestration |
| If your context is... | Use this setup |
|---|---|
| < 2K tokens | Quick Reference only |
| 2K–8K tokens | Agent System |
| 8K+ tokens | Agent System + exactly one specialist prompt |
Rule: start minimal, expand only if quality gates fail.
claude-agent-system-prompt.mdis the operational source of truth.
| Prompt | Use when | Do not use when | File |
|---|---|---|---|
| Agent System ⭐ | Any autonomous task | You only need a tiny cheat sheet | View |
| Quick Reference | Token budget is extremely tight | You need deep specialist logic | View |
| Code Review | Reviewing a PR/change set | Writing new feature code from scratch | View |
| Security Audit | Threat/risk exposure is possible | Task has no security relevance | View |
| Refactoring | Improving maintainability safely | Incident response under active outage | View |
| Testing | Building or fixing test strategy | You only need non-test docs | View |
| Documentation | Producing technical docs | You need runtime diagnosis | View |
| Performance | Latency/throughput/cost bottlenecks | Problem is primarily correctness | View |
| Git & VCS | Workflow, branching, commit hygiene | App logic decisions | View |
| Accessibility Audit | WCAG and accessibility compliance | Backend-only infrastructure change | View |
| Migration & Upgrade | Framework/runtime/DB migrations | Greenfield implementation | View |
| Monitoring & Observability | Logs, metrics, traces, alerts | Pure UI copy/content task | View |
| Debugging & Troubleshooting | Root-cause and incident diagnostics | You are designing architecture from zero | View |
| Claude Code Modes ⭐ | Managing /think and planning depth | Non-Claude environments only | View |
| Claude Code Workflow | CLAUDE.md, hooks, permissions, MCP | You only need algorithm design | View |
| Technology Stack ⭐ | Selecting tools/libraries | Stack is fixed and approved | View |
| Architecture Patterns | System design and trade-offs | Small local bug fix | View |
| Full-Stack Development | End-to-end app delivery | Single-layer scoped work | View |
| AI & LLM Integration | RAG/agents/model integration | No AI component exists | View |
| API Design & GraphQL | API contract/schema design | UI-only styling task | View |
| Cloud & Infrastructure | IaC/K8s/multi-region/cost | Local script-only changes | View |
| Data Engineering | Pipelines/streaming/data quality | CRUD app without data platform scope | View |
| Compliance & Governance | Regulated/security governance scope | Prototype with no compliance requirements | View |
| Multi-Agent Orchestration | Parallel agent coordination | Single-agent linear task | View |
| Monorepo & Complex Projects | Multi-package cross-cutting work | Small standalone repository | View |
| Error Handling & Resilience | Fault tolerance and degradation | Static content editing only | View |
| Developer Experience & Tooling | Linting/hooks/onboarding/DX | Feature logic changes only | View |
| Database Design & Optimization | Schema/index/query tuning | No persistent data layer exists | View |
| UI/UX & Design Systems | Design tokens/components/theming | API/backend-only task | View |
These were removed from the active catalog to reduce overlap:
- Error Analysis
- Project Workflow
- Integration Guardian
- Claude Code Token Optimization
- Prompt Chaining
See Archive Index.
Every active prompt must include:
## Role## Protocol / Core Loop## Phases## Remember(final section)
And must follow No Vague Advice:
- each recommendation must end with a concrete decision, tool, or validation step.
- Monthly: usage, token, and link hygiene review
- Quarterly: keep/merge/archive portfolio review and active catalog cleanup
Guide: Portfolio Maintenance Guide
prompts/
└── english/
├── agents/ # Active agent prompts
│ └── archive/ # Archived prompts removed from active catalog
├── base/ # Foundation prompt
├── project-types/ # Domain-specific prompts
├── examples/ # Real-world usage examples
└── workflows/ # Setup, selection, troubleshooting, maintenance