.claude/skills/sync-template/SKILL.md
Syncs the .claude/ directory from an upstream template repository, showing a diff and applying new or modified files without overwriting local customizations. Use when updating SDD template files or when the user mentions template sync or upstream update.
npx skillsauth add tranhieutt/software_development_department sync-templateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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:
**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.
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 .claude
If the clone fails (no internet, repo moved, auth required, etc.) stop immediately and report the error clearly. Do not attempt fallbacks.
Compare $SYNC_TMP/.claude/ against the project's .claude/ directory and report:
If there are no differences, say so and skip to clean-up.
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".
From the project root, run:
cp -r "$SYNC_TMP/.claude/." .claude/
This will:
List each file that was added or updated, grouped by type:
[file list][file list]rm -rf "$SYNC_TMP"
Confirm: "Sync complete. Temp directory removed."
CLAUDE.md, PRD.md, TODO.md, or any files outside .claude/ — this skill only touches .claude/.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."testing
Generates high-fidelity architecture diagrams, sequence flows, and component maps for SDD projects. Use when finalizing a design phase, documenting system architecture, or visualizing agentic workflows. Default style: Style 6 (Claude Official).
data-ai
Provides vector database and semantic search patterns for Pinecone, Weaviate, Qdrant, Milvus, and pgvector in RAG and recommendation systems. Use when implementing vector search or when the user mentions vector database, semantic search, embeddings, or similarity search.
development
Updates docs/technical/CODEMAP.md by scanning the current codebase structure. Run after a significant feature merge, refactor, or when CODEMAP feels stale.
development
Unlocks the codebase after a release freeze or incident freeze period to resume normal development. Use when a freeze period ends or when the user mentions unfreezing or lifting the code freeze.