template_adaptation — Claude Code prompt: adapt a template
template_adaptation is a Claude Code prompt for fitting real data into a selected template. It aims to retain the original layout and visual treatment where possible.
Apache-2.0 ★ 108 updated 2026-11-17
.claude/commands/template_adaptation.mdWhat template_adaptation does
The prompt takes the source code of a chosen template and swaps simulated data for the user's real columns from adaptation_plan.json. It aims to retain the layout, styling, color logic, legend, and axis treatment.
Files inside templates/ must stay untouched, and user data must not be overwritten. The description also uses the filename adaptationplan.json; the prompt text names adaptation_plan.json with an underscore.
What it helps with
- replace simulated template data with real user columns
- retain the selected template's layout and styling
- leave files under
templates/unchanged - avoid overwriting user data
Example prompts for the agent
- Adapt the selected template to the data in
adaptation_plan.json. - Replace the simulated values with my real columns while retaining the template's styling.
- Move my data into the template and leave
templates/untouched.
How to install template_adaptation
Manually: put the files in place
.claude/commands/template_adaptation.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about template_adaptation
How do I install template_adaptation in Claude Code?
Place the file at .claude/commands/template_adaptation.md.
What does template_adaptation do?
It adapts the source code of a selected template by substituting the user's real columns from adaptation_plan.json for simulated data, while retaining the visual treatment where possible.
Which files does template_adaptation leave unchanged?
The prompt says to leave files under templates/ alone and not overwrite user data.
Source text
template_adaptation.md · Apache-2.0
# Template Adaptation Use the selected template source code as the base. Preserve the core layout, style, color logic, legend and axis treatment where possible. Replace simulated data with the user's real data columns from `adaptation_plan.json`. Do not modify files under `templates/` and do not overwrite user data.
© cjh-solver · Apache-2.0 · cjh-solver/MathModeling-Skills-Arsenal