Claude Prompting Best Practices Template
Official XML-tagged context, constraints, and verification template for Claude models. This catalog template draws on Claude Platform Docs.
Behavior-preserving refactoring prompt that enforces repo instructions and clean diffs. This catalog template draws on Awesome Copilot.
Improve maintainability while preserving the behavior callers rely on.
The change intentionally modifies the public contract or needs a product decision first.
Refactor {{scope}} to achieve {{refactor_goal}}. Use {{repository_rules}} and preserve observable behavior, public signatures, data formats, and error semantics. Before editing, identify behavior worth checking. Show the proposed patch and how existing and new targeted tests protect the contract. Separate any requested behavior changes for review.Provide the current implementation, relevant callers or tests, and repository instructions.
{{scope}} target files or symbols; {{refactor_goal}} readability or structural goal; {{repository_rules}} project constraints.
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.
Inspects locks, async state mutations, and transaction isolation boundaries. This catalog template draws on Awesome Copilot.
Solution-architect critique covering scalability, integration risk, and data security. This catalog template draws on Fabric Patterns.