upgrade-template
Safely syncs template improvements from the core project into existing local environments without overwriting project-specific files.
Install
mkdir -p .claude/skills/upgrade-template && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10190" && unzip -o skill.zip -d .claude/skills/upgrade-template && rm skill.zipInstalls to .claude/skills/upgrade-template
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Upgrades an existing project with improvements from the CLAUDE.MD template. Use when the user says "upgrade the template", "sync template changes to a project", "update project X with new skills", or wants to apply template improvements without losing project-specific context. Runs upgrade-template.py which copies new files and diffs changed ones, never touching project-owned paths.Key capabilities
- →Sync template updates to projects
- →Merge configuration changes
- →Add new skills to projects
- →Protect project-owned files
- →Preview changes via dry-run
How it works
It fetches the master template from GitHub and intelligently merges files, protecting project-specific content while applying template improvements.
Inputs & outputs
When to use upgrade-template
- →Sync template updates to project
- →Update project with new skills
- →Apply new template improvements
About this skill
Upgrade Template
Applies template improvements to an existing project without overwriting project-specific content.
What It Does
| Status | Meaning |
|---|---|
ADDED | New file — does not exist in the project yet. Copied automatically. |
CHANGED | File exists in both. Shows a diff. You choose: accept (overwrite) or skip (keep yours). |
UNCHANGED | Identical in both. Silently skipped. |
MERGED | .claude/settings.json — new hooks/permissions added, project keys preserved. |
SKIPPED (project-owned) | Never touched — see list below. |
Project-Owned Files (Never Touched)
.ai/session-context.md— active session state.ai/project/— architecture, tech stack, domains.ai/progress/,.ai/completed/,.ai/plans/— task tracking.ai/analysis/— project analysis files.github/copilot-instructions.md— project-specific Copilot instructions.claude/settings.local.json— never touched
Special-Case Merged File
.claude/settings.json— may be merged by the upgrade script (ADDED/MERGED/UNCHANGED); new hooks/permissions are added while existing project-specific config is preserved
Template Source
The canonical template is always fetched from GitHub — no local clone needed:
https://github.com/I-Synergy/AI
Usage
Full upgrade (interactive)
python .ai/scripts/upgrade-template.py \
--source https://github.com/I-Synergy/AI \
--target D:/Projects/MyProject/my-repo
Preview only (no changes)
python .ai/scripts/upgrade-template.py \
--source https://github.com/I-Synergy/AI \
--target D:/Projects/MyProject/my-repo \
--dry-run
Skills only (fastest — just adds new skills)
python .ai/scripts/upgrade-template.py \
--source https://github.com/I-Synergy/AI \
--target D:/Projects/MyProject/my-repo \
--skills-only
Non-interactive (CI/scripted — copies new, skips changed)
python .ai/scripts/upgrade-template.py \
--source https://github.com/I-Synergy/AI \
--target D:/Projects/MyProject/my-repo \
--non-interactive
What Gets Synced
| Path | Behaviour |
|---|---|
CLAUDE.md | Diffed if changed |
.ai/skills/ | New skill dirs copied; changed skills diffed |
.ai/patterns/ | New pattern files copied; changed diffed |
.ai/reference/templates/ | New templates copied; changed diffed |
.ai/reference/critical-rules.md | Diffed if changed |
.ai/reference/forbidden-tech.md | Diffed if changed |
.ai/reference/tokens.md, glossary.md, naming-conventions.md, copilot-integration.md, session-management.md | Diffed if changed |
.ai/checklists/ | New checklists copied; changed diffed |
.ai/tests/ | New test scripts copied; changed diffed |
.ai/scripts/ | New scripts copied (including this one); changed diffed |
.claude/settings.json | ADDED (new file): created from template, enabledPlugins excluded. MERGED (existing file): new hooks and permissions added, existing config (including enabledPlugins) preserved. |
After Upgrade
The script automatically runs sync-skills.py in the target project after every upgrade,
syncing all skills to Claude Code and GitHub Copilot targets.
Running This as Claude
Source is always the GitHub template repo. Target is always the current working directory. Do not ask the user for either — derive them automatically.
- Run a dry-run first and show the output:
python .ai/scripts/upgrade-template.py \
--source https://github.com/I-Synergy/AI \
--target . \
--dry-run
- Ask the user to confirm before applying changes.
- Run without
--dry-run(add--non-interactiveif the user says to apply all changes):
python .ai/scripts/upgrade-template.py \
--source https://github.com/I-Synergy/AI \
--target .
When not to use it
- →When the target project is not a valid template-based repo
- →When the user wants to overwrite project-owned files
Limitations
- →Cannot automatically resolve all merge conflicts
How it compares
It automates the synchronization process while respecting project-owned boundaries, unlike manual copy-paste updates.
Compared to similar skills
upgrade-template side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| upgrade-template (this skill) | 0 | 3mo | Review | Intermediate |
| tmux | 20 | 2mo | Review | Intermediate |
| jira | 11 | 6mo | No flags | Beginner |
| triaging-issues | 5 | 2mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by I-Synergy
View all by I-Synergy →You might also like
tmux
openclaw
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
jira
davila7
Use when the user mentions Jira issues (e.g., "PROJ-123"), asks about tickets, wants to create/view/update issues, check sprint status, or manage their Jira workflow. Triggers on keywords like "jira", "issue", "ticket", "sprint", "backlog", or issue key patterns.
triaging-issues
pytorch
Triages GitHub issues by routing to oncall teams, applying labels, and closing questions. Use when processing new PyTorch issues or when asked to triage an issue.
file-manager
Xxiii8322766509
文件管理技能。用于创建、移动、复制、删除文件和文件夹,整理目录结构。当用户需要管理文件、整理文件夹或批量处理文件时使用。
openspec-archive-change
studyzy
归档实验性工作流中已完成的变更。当用户想要在实现完成后最终确定并归档变更时使用。
slash-commands
parcadei
Create and use Claude Code slash commands - quick prompts, bash execution, file references