본문으로 건너뛰기
Skillpedia
에이전트33k · #8854

git-context-controller

하는 일

이 스킬은 에이전트의 프로젝트 메모리를 .GCC 폴더 아래 버전 관리된 파일로 저장합니다. 세션 사이에 맥락을 잃기 쉬운 길고 여러 단계로 된 프로젝트를 운영하는 사람에게 맞습니다.

사용하는 경우

  • ✓여러 단계 프로젝트에서 진행 상황이 사라지지 않도록 마일스톤을 저장해야 할 때.
  • ✓프로젝트 메모리의 격리된 브랜치에서 다른 접근법을 시험하고 싶을 때.
  • ✓새 세션에서 프로젝트로 돌아와 에이전트가 이전 맥락을 복구해야 할 때.

스킬 링크

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/git/git-context-controller/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/git/git-context-controller/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“오늘 끝낸 작업을 마일스톤으로 저장하고, 다른 데이터베이스 설계를 시험할 수 있도록 메모를 브랜치로 나눠 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 로드맵, 커밋, 로그 파일이 들어 있는 .GCC 폴더를 만들고, 커밋, 브랜치, 병합, 맥락 작업으로 진행 상황과 대안을 추적합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Git Context Controller (GCC)

Overview

GCC transforms agent memory from a passive token stream into a structured, versioned file system under .GCC/. Inspired by Git, it provides four operations — COMMIT, BRANCH, MERGE, CONTEXT — to persist milestones, explore alternatives in isolation, synthesize results, and recover historical context efficiently.

Initialization

On first use, check if .GCC/ exists in the project root. If not, run scripts/gcc_init.sh to create the directory structure:

.GCC/
├── main.md          # Global roadmap and objectives
├── metadata.yaml    # Infrastructure state (branches, file tree, config)
├── commit.md        # Commit history for main branch
├── log.md           # OTA execution log for main branch
└── branches/        # Isolated workspaces for experiments
    └── <branch-name>/
        ├── commit.md
        ├── log.md
        └── summary.md

For detailed file format specifications, read references/file_formats.md.

Configuration

GCC behavior is controlled via metadata.yaml:

  • proactive_commits: true — Automatically suggest commits after completing coherent sub-tasks
  • proactive_commits: false — Only commit when explicitly requested

Toggle with: "enable/disable proactive commits" or by editing metadata.yaml.

Commands

COMMIT

Persist a milestone on the current branch.

Triggers: /gcc commit <summary>, "commit this progress", "save this milestone", "checkpoint"

Procedure:

  1. Read the current branch's commit.md to determine the next commit number
  2. Append a new entry to commit.md with:
    • Sequential ID (e.g., [C004])
    • Date (UTC ISO 8601)
    • Current branch name
    • Branch purpose (from summary.md if on a branch, or from main.md)
    • Previous progress summary (1-2 sentences from last commit)
    • This commit's contribution (detailed technical description with files touched)
  3. Append an OTA entry to log.md recording the commit action
  4. Update metadata.yaml file tree if files were created/modified
  5. If on main branch, update milestones section in main.md

Proactive behavior: When proactive_commits: true, suggest a commit after:

  • Completing a function, module, or coherent unit of work
  • Fixing a bug and verifying the fix
  • Finishing a research/exploration phase with conclusions
  • Any point where losing context would mean re-doing significant work

BRANCH

Create an isolated workspace for exploring an alternative approach.

Triggers: /gcc branch <name>, "branch to try...", "explore alternative...", "experiment with..."

Procedure:

  1. Create .GCC/branches/<branch-name>/ directory
  2. Create summary.md with: purpose, parent branch, creation date, key hypotheses
  3. Create empty commit.md and log.md for the branch
  4. Update metadata.yaml to register the new branch
  5. Update main.md Active Branches section
  6. Log the branch creation in the parent branch's log.md

From this point, all COMMITs and OTA logs go to the branch-specific files until a MERGE or explicit branch switch.

MERGE

Integrate a completed branch back into the main flow.

Triggers: /gcc merge <branch>, "merge results from...", "integrate the experiment", "branch X is done"

Procedure:

  1. Read the branch's summary.md and commit.md to understand outcomes
  2. Append a synthesis commit to main's commit.md summarizing:
    • What was tried
    • What was learned
    • What is being integrated (or why the branch is being abandoned)
  3. Update main.md:
    • Add milestone entry with branch results
    • Remove from Active Branches
    • Update objectives if applicable
  4. Update metadata.yaml: set branch status to merged or abandoned
  5. Log the merge in main's log.md

CONTEXT

Retrieve historical memory at different resolution levels.

Triggers: /gcc context <flag>, "what did we do on...", "recover context", "show me the history", "where were we"

Flags:

  • --branch [name] — Read summary.md and latest commits for a specific branch (or current branch if no name). Provides high-level understanding of what happened and why.

  • --log [n] — Read last N entries (default 20) from the current branch's log.md. Provides fine-grained OTA traces for debugging or resuming interrupted work.

  • --metadata — Read metadata.yaml to recover project structure: file tree, dependencies, active branches, configuration.

  • --full — Read main.md for the complete project roadmap, all milestones, an

자주 묻는 질문

메모리는 어디에 저장되나요?

프로젝트 루트의 .GCC 폴더에 마크다운과 YAML 파일로 저장됩니다.

브랜치는 여기서 무슨 역할을 하나요?

실험을 위한 별도 작업 공간을 만들어, 대안 접근법이 주된 진행 상황과 섞이지 않게 합니다.

자동으로 커밋하나요?

선제적 커밋 설정이 켜져 있을 때만 커밋을 제안합니다. 그렇지 않으면 요청할 때만 커밋합니다.

상세 정보

작성자의 원본 설명

Git Context Controller (GCC) - Manages agent memory as a versioned file system under .GCC/. This skill should be used when working on multi-step projects that benefit from structured memory persistence, milestone tracking, branching for alternative approaches, and cross-session context recovery. Triggers on /gcc commands or natural language like 'commit this progress', 'branch to try an alternative', 'merge results', 'recover context'.

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8854
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬