一键导入
update-cog
Check for and apply upstream COG framework updates (skills, docs, scripts) without touching personal content
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check for and apply upstream COG framework updates (skills, docs, scripts) without touching personal content
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Autonomous content pipeline - scout announcements in your field, triage by trend momentum and personal angle, produce posts/blogs/videos in your voice with ledger-based dedup, hard volume caps, and screenshot-verified publishing
Periodic trust sweep of persistent memory and durable knowledge notes - re-verifies environment-dependent claims against the live environment, stamps last_verified + confidence, and proposes archiving drifted entries
Generate personalized news intelligence with verified sources (7-day freshness requirement)
Build frameworks from scattered insights across all braindumps and notes
Shared loop-engineering reference for COG skills - the agent loop, deterministic verifiers, termination conditions, in-loop context management, and named patterns. Invoke when designing or debugging a skill that iterates (search-verify-retry, scan-until-dry, fetch-retry-gate).
Quick capture URLs with automatic content extraction, insights, and categorization into knowledge booklets
| name | update-cog |
| description | Check for and apply upstream COG framework updates (skills, docs, scripts) without touching personal content |
| roles | ["all"] |
| integrations | ["git"] |
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.
# 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
# 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:
git 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:
# 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:
# 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:
./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 rebase