Claude Prompting Best Practices Template
Official XML-tagged context, constraints, and verification template for Claude models. This catalog template draws on Claude Platform Docs.
Constrains LLM output to strict JSON schemas with explicit validation rules. This catalog template draws on OpenAI Cookbook.
Generate a machine-readable response with a known output schema.
The output format has no agreed schema or error convention.
Extract {{extraction_target}} from {{input}} and return exactly one JSON value conforming to {{json_schema}}. Preserve source values unless the schema or instructions require normalization. Use a missing-value representation only when permitted. If the schema cannot represent the input, use its declared error form when available. Return raw JSON without Markdown or commentary.Provide valid JSON Schema and example inputs. Validate the response in the consuming application.
{{extraction_target}} information and normalization rules; {{input}} source data; {{json_schema}} exact output contract.
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.