project-context-sync

Keep a living project state document updated after each commit, so any agent (or future session) can instantly understand where things stand.

7 stars

Best use case

project-context-sync is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Keep a living project state document updated after each commit, so any agent (or future session) can instantly understand where things stand.

Teams using project-context-sync should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/project-context-sync/SKILL.md --create-dirs "https://raw.githubusercontent.com/Demerzels-lab/elsamultiskillagent/main/public/skills/joe3112/project-context-sync/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/project-context-sync/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How project-context-sync Compares

Feature / Agentproject-context-syncStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Keep a living project state document updated after each commit, so any agent (or future session) can instantly understand where things stand.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# project-context-sync

Keep a living project state document updated after each commit, so any agent (or future session) can instantly understand where things stand.

## What It Does

```
┌─────────────┐     ┌──────────────────┐     ┌─────────────────────┐
│ Git Commit  │ ──▶ │ Post-commit Hook │ ──▶ │ PROJECT_STATE.md    │
│             │     │                  │     │ (auto-updated)      │
└─────────────┘     └──────────────────┘     └─────────────────────┘
```

After each commit, the hook:
1. Gathers git info (last commit, recent history, branch, changed files)
2. Optionally calls an LLM to generate a smart summary
3. Updates `PROJECT_STATE.md` in the repo root

## Installation

```bash
# From the repo you want to enable:
cd /path/to/your/repo
/path/to/skills/project-context-sync/scripts/install.sh
```

Or if you have the skill in your path:
```bash
project-context-sync install
```

This will:
1. Install a post-commit hook in `.git/hooks/`
2. Create `.project-context.yml` with default config
3. Create initial `PROJECT_STATE.md`
4. Add `PROJECT_STATE.md` to `.gitignore`

## Uninstall

```bash
cd /path/to/your/repo
/path/to/skills/project-context-sync/scripts/uninstall.sh
```

## Manual Update

Trigger an update without committing:

```bash
cd /path/to/your/repo
/path/to/skills/project-context-sync/scripts/update-context.sh
```

## Configuration

Edit `.project-context.yml` in your repo root:

```yaml
project_context:
  # Use AI to generate smart summaries (default: true)
  ai_summary: true
  
  # How many recent commits to include
  recent_commits: 5
  
  # Include diff stats in context
  include_diff_stats: true
  
  # Sections to include
  sections:
    - last_commit
    - recent_changes
    - current_focus    # AI-generated
    - suggested_next   # AI-generated
```

### AI Summary Mode

**With `ai_summary: true`** (default):
- Generates intelligent summaries of what changed
- Infers current focus from recent commit patterns
- Suggests next steps
- Costs tokens but provides rich context
- **Requires:** Gateway HTTP API enabled (see below)

**With `ai_summary: false`**:
- Just logs raw git info
- Fast and free
- Less intelligent but still useful

### Enabling the Gateway HTTP API

AI mode uses Clawdbot's OpenAI-compatible endpoint (`/v1/chat/completions`). This is **disabled by default** for security. To enable:

```json5
// ~/.clawdbot/clawdbot.json
{
  "gateway": {
    "http": {
      "endpoints": {
        "chatCompletions": { "enabled": true }
      }
    }
  }
}
```

**Security notes:**
- The endpoint inherits gateway auth (requires bearer token)
- With `bind: "loopback"` (default), only local processes can connect
- The script reads the token from `~/.clawdbot/clawdbot.json` automatically
- Risk is minimal for local development setups

## Output

`PROJECT_STATE.md` will contain:

```markdown
# Project State
*Auto-updated by project-context-sync*

## Last Commit
- **Hash:** abc123
- **Message:** Implement isPro check for app blocking
- **Branch:** feature/subscription-gating
- **When:** 2026-01-29 12:34
- **Files changed:** 3

## Recent Changes
- abc123: Implement isPro check for app blocking
- def456: Add PaywallPrompt component
- ...

## Current Focus
[AI-generated summary of what's being worked on]

## Suggested Next Steps
[AI-suggested based on commit patterns]
```

## Notes

- `PROJECT_STATE.md` is gitignored by default (regenerated locally)
- The hook requires Clawdbot to be running for AI summaries
- Without Clawdbot, falls back to raw git info mode

Related Skills

smart-context

7
from Demerzels-lab/elsamultiskillagent

Token-efficient agent behavior — response sizing, context pruning, tool efficiency, and delegation.

auto-context-manager

7
from Demerzels-lab/elsamultiskillagent

AI-powered automatic project context management.

context-builder

7
from Demerzels-lab/elsamultiskillagent

Generate LLM-optimized codebase context from any directory using context-builder CLI.

xmtp-cli-sync

7
from Demerzels-lab/elsamultiskillagent

Sync conversations and messages with the XMTP CLI. Use when syncing conversations or syncing all.

lofy-projects

7
from Demerzels-lab/elsamultiskillagent

Project management for the Lofy AI assistant — tracks multiple projects with milestones, priority scoring engine.

icalendar-sync

7
from Demerzels-lab/elsamultiskillagent

Synchronizes calendar events between local system and iCloud.

project-agora

7
from Demerzels-lab/elsamultiskillagent

Discover jobs and participate on Project Agora via the machine-first API (OpenAPI + wallet-signature auth).

contextkeeper

7
from Demerzels-lab/elsamultiskillagent

ContextKeeper — Safe project state tracking for AI agents.

context-viz

7
from Demerzels-lab/elsamultiskillagent

Visualize the current context window usage — token estimates per component (system prompt, tools, workspace files.

Skill: Project Manager (Vivi OS)

7
from Demerzels-lab/elsamultiskillagent

## Descripción

telegram-context

7
from Demerzels-lab/elsamultiskillagent

Toggle-enabled skill that fetches Telegram message history at session start for conversational continuity.

health-sync

7
from Demerzels-lab/elsamultiskillagent

Analyze synced health data across Oura, Withings, Hevy, Strava, WHOOP, and Eight Sleep.