Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Check for and apply upstream COG framework updates (skills, docs, scripts) without touching personal content
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | -35% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 34% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -3% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 64% | 0% |
Help the user update their COG framework files (skills, documentation, scripts) from the official upstream repository without risking their personal content (braindumps, profiles, notes).
Read COG-VERSION from the vault root. If it doesn't exist, inform the user they may be on an older version that predates version tracking.
bash# Add the upstream remote if not already present git remote get-url cog-upstream 2>/dev/null || \ git remote add cog-upstream https://github.com/huytieu/COG-second-brain.git # Fetch latest git fetch cog-upstream main --quiet
bash# Local version cat COG-VERSION # Upstream version git show cog-upstream/main:COG-VERSION
If versions match, tell the user they're up to date.
For each framework file, compare local vs upstream:
bashgit diff HEAD..cog-upstream/main -- <file>
Framework files (safe to update — never contain user content):
README.md, SETUP.md, AGENTS.md, GEMINI.md, CHANGELOG.md, CONTRIBUTING.md.claude/skills/*/SKILL.md.kiro/powers/*/POWER.md.gemini/commands/*.toml, .gemini/skills/*.md.claude-plugin/plugin.json, marketplace-entry.json, .gitignorecog-update.shCOG-VERSIONBefore updating, check if the user has customized any framework files:
bash# Compare user's file against the version they originally got git diff cog-upstream/main -- <file>
If a file has local customizations, warn the user and offer options:
<file>.backup-YYYYMMDD then updateFor files the user approves:
bash# Surgical file replacement — no merge, no rebase, zero conflict risk git checkout cog-upstream/main -- <file>
After updating:
git add -A && git commit -m "Update COG framework to v<new-version>"
For users who prefer a non-AI update, mention the update script:
bash./cog-update.sh # Interactive ./cog-update.sh --check # Just check for updates ./cog-update.sh --dry-run # Preview changes ./cog-update.sh --force # Update everything
00-inbox/, 01-daily/, 02-personal/, 03-professional/, 04-projects/, 05-knowledge/, 06-templates/ contain user data and are always ignored.gitkeep files are tracked)cog-update.sh is in the framework file listgit checkout for surgical file replacement, not git merge or git rebaseOther measured skills in the registry, with their headline benchmark lift.