Copier templating — author copier.yml templates (questions, Jinja, _tasks, migrations), scaffold via `copier copy`, sync via `copier update`. Use for copier.yml, .copier-answers.yml, or .jinja.
Ships in copier. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Copier renders project templates from Git repos and keeps generated projects in sync as the
template evolves. Templates are plain directories: a copier.yml config plus source files, where
.jinja-suffixed files (and {{ var }} in names) are rendered through Jinja2.
copier.yml questions + a template tree → references/copier-yml.md, references/templating.mdcopier copy <src> <dst> → references/cli-api.mdcopier update (three-way merge) → references/update-migrations.mdcopier.run_copy/run_update, --trust, --defaults → references/cli-api.mdpipx install copier # isolated CLI (recommended)
uv tool install copier # or via uv
copier --version
| Command | Purpose |
|---|---|
copier copy <src> <dst> | Scaffold a new project from a template |
copier update | Sync project to latest template version (run inside project) |
copier recopy | Re-apply template fresh, keeping answers (no smart diff) |
copier check-update | Report whether a newer template version exists |
Common flags: -r/--vcs-ref <tag|branch|HEAD>, -d/--data key=value, --defaults,
--pretend (dry run), --overwrite/-f, --exclude <pat>, --skip <q>, --trust,
--conflict inline|rej, -A/--skip-answered. Full list: references/cli-api.md.
Template sources: local path, gh:ns/repo, gl:ns/repo, git+https://…, git@…, *.git.
my-template/
├── copier.yml
├── {{ project_name }}/ # folder name is templated
│ └── README.md.jinja # rendered (suffix stripped)
└── {{ _copier_conf.answers_file }}.jinja # records answers for updates
# copier.yml
project_name:
type: str
help: Your project name
use_ci:
type: bool
default: true
_subdirectory: "." # render from repo root (use a subdir to keep meta files out)
_min_copier_version: "9.0.0"
{# {{ _copier_conf.answers_file }}.jinja — NEVER hand-edit the generated file #}
# Changes here will be overwritten by Copier; manual edits break `copier update`.
{{ _copier_answers|to_nice_yaml -}}
The answers file (.copier-answers.yml, committed) is what makes copier update work — it stores
_src_path, _commit, and every saved answer. Without it, updates are impossible.
.jinja (configurable via _templates_suffix). Names support {{ var }}.copier.yml; underscore-prefixed keys (_tasks, _exclude,
_migrations, _subdirectory, …) are settings, not questions. See references/copier-yml.md.git tag v1.0.0). copier update picks the latest PEP 440 tag._tasks or extra _jinja_extensions need --trust to run.copier update requires a clean git working tree in both template (tagged) and project..copier-answers.yml by hand — it breaks the diff algorithm.default: "{{ x }}") so the YAML parser doesn't choke.default/when can only reference questions declared above it..rej files after updates.references/copier-yml.md — question types, choices, when, validators, all _settings keysreferences/templating.md — Jinja rendering, file/folder naming, _exclude, _tasks, context varsreferences/update-migrations.md — update algorithm, conflicts, _migrations, recopyreferences/cli-api.md — full CLI flag reference, Python API, CI patternsWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/copier:copierfrom copier
npx claudepluginhub kettleofketchup/kettleofskills --plugin copier