sync-template
Skill72 starsChanged 7 months agoMITView on GitHub
Sync the .claude/ directory from an upstream template repository into this project. If $ARGUMENTS is provided, use it as the upstream repository URL. If $ARGUMENTS is empty, check CLAUDE.md for a line like: If no URL is found in either place, ask the user: "What is the upstream template repository URL to sync from? (e.g. https://github.com/owner/repo)" Do not proceed until a URL is confirmed. If the clone fails (no internet, repo moved, auth required, etc.) stop immediately and report the…
- Deletes or force-pushes
6 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Littlpinguin/marketing-cockpit-templatetheir own version, first seen Oct 5, 2026
- AIBiz-Automatyzacje/claude-code-startertheir own version, first seen Oct 4, 2026
- RemiMyrset/rootstheir own version, first seen Oct 2, 2026
- vandalsvq/edt1c-ai-templatetheir own version, first seen Sep 23, 2026
- josipjelic/orchestrated-project-templateedited, first seen Jul 16, 2026
- luiseiman/dotforgetheir own version, first seen Apr 26, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- josipjelic/orchestrated-project-template★ 9531% same
Wrote their own version · 5
- AIBiz-Automatyzacje/claude-code-starter★ 88same name
- vandalsvq/edt1c-ai-template★ 18same name
- Littlpinguin/marketing-cockpit-template★ 8same name
- luiseiman/dotforge★ 8same name
- RemiMyrset/roots★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-healthSkill
- agent-styleSkill
- angular-best-practicesSkill
- annotateSkill
- api-designSkill
- architecture-decision-recordsSkill
- aws-serverlessSkill
- backend-architectSkill
- backend-patternsSkill
- brainstormSkill
- bug-reportSkill
- changelogSkill
- claude-apiSkill
- cloud-architectSkill
- cloud-run-puppeteerSkill
- code-review-checklistSkill
- code-reviewSkill
- code-simplificationSkill
- codex-sddSkill
- commitSkill
- context-engineeringSkill
- database-architectSkill
- db-reviewSkill
- deep-interviewSkill
- design-reviewSkill
- design-systemSkill
- devops-deploySkill
- diagnoseSkill
- django-patternsSkill
- docker-patternsSkill
- dotnet-backend-patternsSkill
- dreamSkill
- drizzle-orm-expertSkill
- estimateSkill
- event-sourcing-architectSkill
- fastapi-proSkill
- fork-joinSkill
- freezeSkill
- frontend-designSkill
- frontend-patternsSkill
- frontend-ui-dark-tsSkill
- gate-checkSkill
- gemini-api-integrationSkill
- gitlab-ci-patternsSkill
- guardSkill
- handoffSkill
- hotfixSkill
- hybrid-cloud-architectSkill
- kubernetes-architectSkill
- laravel-patternsSkill
- launch-checklistSkill
- learnerSkill
- llm-app-patternsSkill
- localizeSkill
- map-systemsSkill
- map-workflowSkill
- markdown-injection-scannerSkill
- microservices-patternsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 7 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
If $ARGUMENTS is provided, use it as the upstream repository URL.
- Very specific: line 18
If $ARGUMENTS is empty, check CLAUDE.md for a line like:
- Distinctive: line 24
If no URL is found in either place, ask the user:
- Distinctive: line 27
Do not proceed until a URL is confirmed.
- Distinctive: line 42
If the clone fails (no internet, repo moved, auth required, etc.) stop immediately and report the error clearly.
- Distinctive: line 52
If there are no differences, say so and skip to clean-up.
- Distinctive: line 60
Do not proceed until the user explicitly confirms with "yes".
- Distinctive: line 73
Preserve: all local-only files (project-specific agents, skills, rules, hooks)
- Distinctive: line 94
Never delete local files that don't exist in upstream — they may be project-specific customizations (agents, skills, rules, hooks added …
- Very specific: line 95
Never modify CLAUDE.md, PRD.md, TODO.md, or any files outside .claude/ — this skill only touches .claude/
- Very specific: line 96
If the user's .claude/ has meaningful customizations to a file that upstream has also changed, flag it specifically: "Note: [file] was …
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sync the .claude/ directory from an upstream template repository into this project.
Determine the upstream URL
If $ARGUMENTS is provided, use it as the upstream repository URL.
If $ARGUMENTS is empty, check CLAUDE.md for a line like:
**Template upstream**: <url>If no URL is found in either place, ask the user:
"What is the upstream template repository URL to sync from? (e.g. https://github.com/owner/repo)"
Do not proceed until a URL is confirmed.
Steps
1. Fetch the upstream template
Run:
SYNC_TMP=$(mktemp -d /tmp/template-sync-XXXXXX)
git clone --filter=blob:none --sparse "$UPSTREAM_URL" "$SYNC_TMP" 2>&1
cd "$SYNC_TMP" && git sparse-checkout set .claudeIf the clone fails (no internet, repo moved, auth required, etc.) stop immediately and report the error clearly. Do not attempt fallbacks.
2. Show a diff summary
Compare $SYNC_TMP/.claude/ against the project's .claude/ directory and report:
- New files — present in upstream but not locally (will be added)
- Modified files — present in both but with different content (will be overwritten)
- Local-only files — present locally but not in upstream (will be kept unchanged — these are project-specific customizations)
If there are no differences, say so and skip to clean-up.
3. Ask for confirmation
Present the diff summary and ask:
"Apply these changes from
<upstream-url>? Type yes to apply or no to cancel."
Do not proceed until the user explicitly confirms with "yes".
4. Apply the changes
From the project root, run:
cp -r "$SYNC_TMP/.claude/." .claude/This will:
- Overwrite files that exist in both upstream and locally
- Add new files from upstream
- Preserve all local-only files (project-specific agents, skills, rules, hooks)
5. Report
List each file that was added or updated, grouped by type:
- Added:
[file list] - Updated:
[file list]
6. Clean up
rm -rf "$SYNC_TMP"Confirm: "Sync complete. Temp directory removed."
Important constraints
- Never delete local files that don't exist in upstream — they may be project-specific customizations (agents, skills, rules, hooks added after the template was cloned)
- Never modify
CLAUDE.md,PRD.md,TODO.md, or any files outside.claude/— this skill only touches.claude/ - If the user's
.claude/has meaningful customizations to a file that upstream has also changed, flag it specifically: "Note:[file]was modified locally — upstream changes will overwrite. Review diff before confirming if you want to preserve local changes."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

