← ClaudeAtlas

sync-templatelisted

Syncs project configuration from the Claude Code template repo. Updates skills, agents, hooks, rules, and docs to match the latest template. Use when starting a new project or upgrading an existing project's Claude Code configuration.
johanolofsson72/Claude · ★ 2 · Data & Documents · score 71
Install: claude install-skill johanolofsson72/Claude
# Sync from template repo Update this project's Claude Code configuration from the local Claude template repo. The template's location is **auto-detected** per developer — Johan's macOS box has it at `/Users/jool/repos/Claude`, David's Linux box has it at `/home/david/repos/Claude`, etc. Do not hardcode either. **Resolve `TEMPLATE` once at the start of every sync session** using this probe (in bash, runnable on macOS / Linux / Windows Git Bash): ```bash # Auto-detect the template repo location. Stop at the first directory # that contains CLAUDE.md AND .claude/skills/sync-template/SKILL.md # (the two files that together unambiguously identify this template). for CAND in "$HOME/repos/Claude" "$HOME/Projects/Claude" "$HOME/Code/Claude" "$HOME/code/Claude" "$HOME/src/Claude" "$HOME/dev/Claude" "/Users/jool/repos/Claude"; do if [ -f "$CAND/CLAUDE.md" ] && [ -f "$CAND/.claude/skills/sync-template/SKILL.md" ]; then TEMPLATE="$CAND" break fi done if [ -z "${TEMPLATE:-}" ]; then echo "[ERROR] Could not locate the Claude template repo on this machine." >&2 echo " Clone it: git clone https://github.com/johanolofsson72/Claude.git \$HOME/repos/Claude" >&2 echo " Or set TEMPLATE manually before re-running this sync." >&2 exit 1 fi echo "[OK] Template at: $TEMPLATE" ``` Throughout this skill, every reference to the template path uses `$TEMPLATE`, never a hardcoded absolute path. If you are reading this skill as instructions to execute, **resolve `$TEMP