Read the examples in folder to learn the structure and voice
An official Anthropic prompt for Claude Code, from the "Implement" part of the dev workflow.
read the {{examples}} in {{folder}} to learn the structure and voice, then draft a new one for {{topic}}Variables
{{examples}}e.g. "privacy impact assessments"
{{folder}}e.g. "legal/pia/"
{{topic}}e.g. "the new analytics integration"
How it works
This prompt is for situations where you need a new document that should match a set of existing ones, such as writing another privacy impact assessment in the same style as those already in your repo. It asks Claude Code to first read the existing files in the folder you point it to, learn their structure and voice from them, and then draft a new document on the topic you specify. Fill in {examples} with the kind of documents being used as reference (e.g. "privacy impact assessments"), {folder} with the directory path where they live (e.g. "legal/pia/"), and {topic} with the subject the new draft should cover (e.g. "the new analytics integration"). Because the instruction is to learn from your own examples rather than a generic template, it makes sense when consistency with prior documents is the goal. This prompt is used verbatim from Anthropic's own Claude Code prompt library, not AI-rewritten — see https://code.claude.com/docs/en/prompt-library.
Example input
read the privacy impact assessments in legal/pia/ to learn the structure and voice, then draft a new one for the new analytics integration