一键导入
check-for-workspace-updates
Check and upgrade local workspace files against latest team-lib templates
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check and upgrade local workspace files against latest team-lib templates
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | check-for-workspace-updates |
| description | Check and upgrade local workspace files against latest team-lib templates |
| summary | Compares local workspace files (AGENTS.md, etc.) against team-lib canonical templates and guides upgrades. Run periodically or after team-lib releases. |
| version | 1.0.0 |
| created | "2026-01-23T00:00:00.000Z" |
| last_updated | "2026-01-23T00:00:00.000Z" |
| maintainer | pvragon |
Compare your local workspace installation against the current team-lib templates and setup configuration. Identify differences and optionally upgrade to the latest versions.
git pull on team-lib shows template changes| Local File | Template Source |
|---|---|
my-lib/AGENTS.md | team-lib/context/indexed/templates/template-agent-automation-user.md |
my-lib/CLAUDE.md | Stub format (pointer to AGENTS.md) |
my-lib/GEMINI.md | Stub format (pointer to AGENTS.md) |
cd ~/ai-workspace/team-lib && git pull origin main
echo "=== AGENTS.md Version Check ==="
echo "Local: $(grep 'version:' ~/ai-workspace/my-lib/AGENTS.md 2>/dev/null | head -1)"
echo "Template: $(grep 'version:' ~/ai-workspace/team-lib/context/indexed/templates/template-agent-automation-user.md | head -1)"
echo ""
echo "=== Differences ==="
diff ~/ai-workspace/my-lib/AGENTS.md \
~/ai-workspace/team-lib/context/indexed/templates/template-agent-automation-user.md
If differences exist, review them carefully:
[!CAUTION] Only proceed if you want to replace your local AGENTS.md with the template. This will overwrite any personal customizations.
Option A: Full replacement (lose local customizations)
cp ~/ai-workspace/team-lib/context/indexed/templates/template-agent-automation-user.md \
~/ai-workspace/my-lib/AGENTS.md
echo "✅ AGENTS.md upgraded to template version"
Option B: Backup then replace (safe)
cp ~/ai-workspace/my-lib/AGENTS.md ~/ai-workspace/my-lib/AGENTS.md.backup.$(date +%Y%m%d)
cp ~/ai-workspace/team-lib/context/indexed/templates/template-agent-automation-user.md \
~/ai-workspace/my-lib/AGENTS.md
echo "✅ AGENTS.md upgraded (backup saved)"
Check that CLAUDE.md and GEMINI.md are proper pointers:
echo "=== CLAUDE.md ===" && head -3 ~/ai-workspace/my-lib/CLAUDE.md
echo "=== GEMINI.md ===" && head -3 ~/ai-workspace/my-lib/GEMINI.md
Expected format:
# claude.md (local)
READ ~/ai-workspace/my-lib/AGENTS.md BEFORE ANYTHING
If missing or malformed, recreate:
echo '# claude.md (local)
READ ~/ai-workspace/my-lib/AGENTS.md BEFORE ANYTHING
# Local specific tweaks for Claude
## - insert model-specific tweaks here
' > ~/ai-workspace/my-lib/CLAUDE.md
echo '# gemini.md (local)
READ ~/ai-workspace/my-lib/AGENTS.md BEFORE ANYTHING
# Local specific tweaks for Gemini
## - insert model-specific tweaks here
' > ~/ai-workspace/my-lib/GEMINI.md
cd ~/ai-workspace/my-lib
git add AGENTS.md CLAUDE.md GEMINI.md
git commit -m "Upgrade agent files to template v$(grep 'version:' AGENTS.md | head -1 | awk '{print $2}')"
git push origin main
Run this one-liner to see if an upgrade is needed:
TEMPLATE_VER=$(grep 'version:' ~/ai-workspace/team-lib/context/indexed/templates/template-agent-automation-user.md | head -1 | awk '{print $2}')
LOCAL_VER=$(grep 'version:' ~/ai-workspace/my-lib/AGENTS.md 2>/dev/null | head -1 | awk '{print $2}' || echo "MISSING")
if [ "$TEMPLATE_VER" = "$LOCAL_VER" ]; then
echo "✅ Up to date (v$LOCAL_VER)"
else
echo "⚠️ Upgrade available: $LOCAL_VER → $TEMPLATE_VER"
fi
This skill only affects agent instruction files. It will never modify:
personal/my-lib/skills/my-lib/directives/projects/End-of-session procedure that captures learnings into memory topic files, verifies index consistency, updates current-state.md, and syncs changes to team-lib.
Send an on-demand manual pulse to the ClickUp Pulse channel and optionally register thread-to-task mappings.
Graduated to team-lib — see team-lib/skills/session-debrief/. This stub demonstrates the my-lib → team-lib graduation pattern.
Add aliases, functions, or env vars to ~/.bashrc with section-aware placement
Compose base + type-override templates with brand tokens to produce fully resolved branded templates. Deep merges base+override, resolves tokenRef dot-paths against brand-tokens.json, and applies brand preference fan-out.
Create or update a brand-guidelines.md file for any brand — the single source of truth for all branded content generation.