Claude Prompting Best Practices Template
Official XML-tagged context, constraints, and verification template for Claude models. This catalog template draws on Claude Platform Docs.
Forces explicit state-transition tracing before modifying stateful code. This catalog template draws on Prompt Engineering Guide.
Debug a logic path in a reducer, workflow, parser, or state machine.
The issue is already isolated to a syntax or build error.
Reconstruct the state transitions for {{failing_case}} using {{stateful_code}}. Return a trace table with event, prior state, expected state, observed state, and supporting code reference. Identify the first divergent transition, propose a targeted regression test, and describe a fix only if the trace supports it.Provide the starting state and a reproducible event sequence.
{{failing_case}} initial state, events, and expected outcome; {{stateful_code}} transition logic and trace evidence.
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.