Claude Prompting Best Practices Template
Official XML-tagged context, constraints, and verification template for Claude models. This catalog template draws on Claude Platform Docs.
Traces silent runtime logic bugs step-by-step before proposing a minimal patch. This catalog template draws on Claude Platform Docs.
A reproducible incorrect result occurs without an obvious exception.
The symptom occurs only in production and essential diagnostic evidence is still missing.
Diagnose the logic defect in {{code}} using {{symptom_and_repro}}. Show the first observable state that diverges from the expected result and cite the code that causes it. Propose a minimal patch and a deterministic regression test that fails before the patch. Call out missing evidence and any remaining competing explanation.Provide a known input, actual and expected outputs, and the relevant code path.
{{code}} relevant implementation; {{symptom_and_repro}} failing input, observed result, and expected result.
Official XML-tagged context, constraints, and verification template for Claude models. This catalog template draws on Claude Platform Docs.
Produces structured C4 architecture and security-posture design docs from raw notes. This catalog template draws on Fabric Patterns.
Turns complex functions, configs, or tool outputs into crisp architectural explanations. This catalog template draws on Fabric Patterns.
Prevents layer leaks and dependency cycles during code generation. This catalog template draws on Awesome Copilot.
Behavior-preserving refactoring prompt that enforces repo instructions and clean diffs. This catalog template draws on Awesome Copilot.
Inspects locks, async state mutations, and transaction isolation boundaries. This catalog template draws on Awesome Copilot.