Claude Prompting Best Practices Template
Official XML-tagged context, constraints, and verification template for Claude models. This catalog template draws on Claude Platform Docs.
Inspects locks, async state mutations, and transaction isolation boundaries. This catalog template draws on Awesome Copilot.
Review code with competing workers, listeners, transactions, or retry paths.
The relevant operations are strictly sequential and share no state.
Review {{concurrent_code}} for violations of {{state_invariants}}. Map shared mutable state, transaction boundaries, locks, cancellation, and retry paths. For each credible race or deadlock, describe the scheduling sequence at a high level, the resulting invariant violation, and a defensive fix with a deterministic unit or integration test.Include the synchronization or transaction configuration and the expected invariants.
{{concurrent_code}} worker, callback, or transaction implementation; {{state_invariants}} behavior that must hold across interleavings.
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.
Solution-architect critique covering scalability, integration risk, and data security. This catalog template draws on Fabric Patterns.