# git-context-controller

Maintains agent memory inside a versioned .GCC/ folder. It records task milestones, isolates experimental branches, and restores historical context across development sessions.

- skill · `type=skill` · Claude Code · 82 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/git/git-context-controller
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/git-context-controller

## What it does

The skill organizes agent memory into a dedicated `.GCC/` directory instead of relying on raw conversation history. Work objectives live in `main.md`, while `metadata.yaml` tracks branch states and file trees. Four core actions handle project continuity.

First-time setup relies on running `scripts/gcc_init.sh` to generate the file structure. Without this script, `.GCC/` does not exist. Every branch gets its own isolated folder with `commit.md` and `log.md`. Merging summarizes outcomes and records a synthesis commit on the primary branch.

Agent decisions get recorded in an OTA log covering observations and actions. The log holds up to 50 entries. Older records get pruned automatically. Setting `proactive_commits: true` in `metadata.yaml` prompts the assistant to suggest commits after finishing a module or fixing a defect.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill git/git-context-controller
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill git-context-controller -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/git-context-controller/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/git-context-controller/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/git-context-controller/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/git-context-controller/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates git-context-controller
```

2. **Manually: put the files in place**
- File: `.github/skills/git-context-controller/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/git/git-context-controller
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/git-context-controller/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/git/git-context-controller

## When to use it
- save milestone progress with `/gcc commit`
- branch out alternative implementations in isolation
- merge experimental findings into the project roadmap
- reload cross-session background via `--full` context recovery

## Example prompts
- /gcc commit "Finished API rate limiter"
- /gcc branch auth-refactor
- /gcc context --full

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
