git-context-controller
Что он делает
Этот скилл хранит память проекта вашего агента в виде версионируемого набора файлов в папке .GCC. Он нужен тем, кто ведет долгие многошаговые проекты, где контекст легко терять между сессиями.
Когда использовать
- ✓Когда в многошаговом проекте нужно сохранять вехи, чтобы прогресс не терялся.
- ✓Когда вы хотите попробовать другой подход в отдельной ветке памяти проекта.
- ✓Когда вы возвращаетесь к проекту в новой сессии и агенту нужно восстановить прежний контекст.
Ссылка на скилл
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/git/git-context-controller/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Сохрани веху с тем, что я сегодня закончил, и создай ветку заметок, чтобы попробовать другую схему базы данных.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент создает папку .GCC с дорожной картой, файлами коммитов и журналом и использует операции commit, branch, merge и context, чтобы отслеживать прогресс и альтернативы.
Технический текст (оригинальный 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-tasksproactive_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:
- Read the current branch's
commit.mdto determine the next commit number - Append a new entry to
commit.mdwith:- Sequential ID (e.g.,
[C004]) - Date (UTC ISO 8601)
- Current branch name
- Branch purpose (from
summary.mdif on a branch, or frommain.md) - Previous progress summary (1-2 sentences from last commit)
- This commit's contribution (detailed technical description with files touched)
- Sequential ID (e.g.,
- Append an OTA entry to
log.mdrecording the commit action - Update
metadata.yamlfile tree if files were created/modified - 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:
- Create
.GCC/branches/<branch-name>/directory - Create
summary.mdwith: purpose, parent branch, creation date, key hypotheses - Create empty
commit.mdandlog.mdfor the branch - Update
metadata.yamlto register the new branch - Update
main.mdActive Branches section - 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:
- Read the branch's
summary.mdandcommit.mdto understand outcomes - Append a synthesis commit to main's
commit.mdsummarizing:- What was tried
- What was learned
- What is being integrated (or why the branch is being abandoned)
- Update
main.md:- Add milestone entry with branch results
- Remove from Active Branches
- Update objectives if applicable
- Update
metadata.yaml: set branch status tomergedorabandoned - 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]— Readsummary.mdand 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'slog.md. Provides fine-grained OTA traces for debugging or resuming interrupted work.--metadata— Readmetadata.yamlto recover project structure: file tree, dependencies, active branches, configuration.--full— Readmain.mdfor the complete project roadmap, all milestones, an
Частые вопросы
Где хранится память?
В папке .GCC в корне проекта, из файлов Markdown и 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'.
Популярность
- Звёзды на GitHub
- 33k
- Место в рейтинге
- #8854
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
owasp-security
33kУчит агента рекомендациям OWASP по безопасности для веб-приложений, API, мобильных приложений, контейнеров и ИИ-агентов: поиск слабостей и исправления.
agent-management
33kПозволяет агенту создавать, перечислять, усыплять, будить, переименовывать и удалять ИИ-агентов через AI Maestro, управляя жизненным циклом каждого.
agent-messaging
33kПозволяет агенту отправлять, получать и отвечать на подписанные сообщения между ИИ-агентами по протоколу Agent Messaging Protocol, в основном на вашем компьютере.
docs-search
33kПозволяет агенту искать по сгенерированной документации кода: сигнатуры функций, классы и комментарии, чтобы проверить реальный API до изменения кода.
Похожие скиллы
add-model-provider
394kПомогает агенту подключить нового провайдера ИИ-моделей к OpenClaw безопасными командами, хранить ключи API не в открытом виде и провести живой тест.
acp-router
394kПомогает агенту передать задачу инструменту для программирования, например Claude Code или Cursor, через OpenClaw, чтобы работа шла в этом инструменте.
browser-automation
394kУчит агента пошагово управлять веб-страницами: входить в аккаунты, работать с вкладками и восстанавливаться, если страница перестала отвечать.