Claude Prompting Best Practices Template
Official XML-tagged context, constraints, and verification template for Claude models. This catalog template draws on Claude Platform Docs.
Offloads deterministic arithmetic and parsing to generated executable code. This catalog template draws on Prompt Engineering Guide.
Perform arithmetic, aggregation, or parsing whose result should be independently reproducible.
The task is subjective or the required input data cannot be shared safely.
Solve {{calculation}} using a short deterministic program in {{language}}. Model the input as explicit literals, document units and rounding, and add assertions for a hand-checkable example and a boundary case. If a trusted runtime is available, execute the program and report its observed result. Otherwise include the command and label execution as pending.Provide the full non-sensitive dataset or examples and any rounding requirements.
{{calculation}} problem, inputs, and expected output; {{language}} available local runtime.
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.