본문으로 건너뛰기
cccskills
무료GitHub에 공개

update-cog

Check for and apply upstream COG framework updates (skills, docs, scripts) without touching personal content

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

COG Update Skill

Purpose

Help the user update their COG framework files (skills, documentation, scripts) from the official upstream repository without risking their personal content (braindumps, profiles, notes).

When to Invoke

  • User asks to "update COG", "check for updates", or "get latest COG version"
  • User mentions wanting new skills or features from upstream
  • User asks about their COG version

Process Flow

1. Check Current Version

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.

2. Ensure Upstream Remote

# 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

3. Compare Versions

# 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.

4. Show What Changed

For each framework file, compare local vs upstream:

git diff HEAD..cog-upstream/main -- <file>

Framework files (safe to update — never contain user content):

  • Core docs: README.md, SETUP.md, AGENTS.md, GEMINI.md, CHANGELOG.md, CONTRIBUTING.md
  • Skills: .claude/skills/*/SKILL.md
  • Powers: .kiro/powers/*/POWER.md
  • Gemini: .gemini/commands/*.toml, .gemini/skills/*.md
  • Config: .claude-plugin/plugin.json, marketplace-entry.json, .gitignore
  • Scripts: cog-update.sh
  • Version: COG-VERSION

5. Detect Customizations

Before updating, check if the user has customized any framework files:

# Show how the working tree differs from current upstream HEAD.
# NOTE: this cannot tell a local customization apart from an upstream
# change you have not pulled yet — both show up as a diff. Treat any
# output as "needs a look", not as proof the user edited the file.
git diff cog-upstream/main -- <file>

If a file differs, warn the user and offer options:

  • Keep yours: Skip this file
  • Use upstream: Overwrite with the new version
  • Backup + update: Save current as <file>.backup-YYYYMMDD then update

6. Apply Updates

For files the user approves:

# Surgical file replacement — no merge, no rebase, zero conflict risk
git checkout cog-upstream/main -- <file>

7. Verify & Summarize

After updating:

  • Show the new version number
  • List all files that were updated
  • List any files the user chose to skip
  • Suggest committing the update:
    git add -A && git commit -m "Update COG framework to v<new-version>"
    

Alternative: Shell Script

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

Important Notes

  • Content folders are NEVER touched: 00-inbox/, 01-daily/, 02-personal/, 03-professional/, 04-projects/, 05-knowledge/, 06-templates/ contain user data and are always ignored
  • The .gitignore is designed so content folders are excluded from upstream tracking (only .gitkeep files are tracked)
  • The update script updates itself — cog-update.sh is in the framework file list
  • No merge conflicts possible — this uses git checkout for surgical file replacement, not git merge or git rebase

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Deep strategic research engine — decomposes questions into parallel research threads, spawns multiple agents, and synthesizes into actionable strategic analysis

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huytieu/COG-second-brain1.3천2026년 10월 2일 업데이트

braindump

무료

Quick capture of raw thoughts with intelligent domain classification and competitive intelligence extraction

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huytieu/COG-second-brain1.3천2026년 10월 2일 업데이트

Run one task through the V-model verification loop: CP-2 plan → CP-3 build → CP-3v component verify → CP-4 integration verify (full lane) → CP-5 acceptance. The worker never grades its own homework; evidence rows trace back to AC-n. Opt-in: invoke with /closed-loop or by asking for the closed loop, proper verification, or an evidence trail. Ordinary work does not run this.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huytieu/COG-second-brain1.3천2026년 10월 2일 업데이트

Deep-dive 7-day analysis across all data sources for weekly reviews, board prep, and strategic planning

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huytieu/COG-second-brain1.3천2026년 10월 2일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huytieu/COG-second-brain1.3천2026년 10월 2일 업데이트

Create user stories with duplicate checking across any project tracker (Linear, GitHub Issues, Jira)

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huytieu/COG-second-brain1.3천2026년 10월 2일 업데이트

huytieu의 스킬 모두 보기

이 스킬의 문제 신고