project-context-syncAutomatically updates PROJECT_STATE.md after each commit with recent git info and optional AI-generated summaries to track project status and next steps.
Install via ClawdBot CLI:
clawdbot install Joe3112/project-context-syncKeep a living project state document updated after each commit, so any agent (or future session) can instantly understand where things stand.
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ
โ Git Commit โ โโโถ โ Post-commit Hook โ โโโถ โ PROJECT_STATE.md โ
โ โ โ โ โ (auto-updated) โ
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ
After each commit, the hook:
PROJECT_STATE.md in the repo root# 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:
project-context-sync install
This will:
.git/hooks/.project-context.yml with default configPROJECT_STATE.mdPROJECT_STATE.md to .gitignorecd /path/to/your/repo
/path/to/skills/project-context-sync/scripts/uninstall.sh
Trigger an update without committing:
cd /path/to/your/repo
/path/to/skills/project-context-sync/scripts/update-context.sh
Edit .project-context.yml in your repo root:
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
With ai_summary: true (default):
With ai_summary: false:
AI mode uses Clawdbot's OpenAI-compatible endpoint (/v1/chat/completions). This is disabled by default for security. To enable:
// ~/.clawdbot/clawdbot.json
{
"gateway": {
"http": {
"endpoints": {
"chatCompletions": { "enabled": true }
}
}
}
}
Security notes:
bind: "loopback" (default), only local processes can connect~/.clawdbot/clawdbot.json automaticallyPROJECT_STATE.md will contain:
# 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]
PROJECT_STATE.md is gitignored by default (regenerated locally)Generated Mar 1, 2026
A distributed team uses this skill to maintain a shared, up-to-date project context after each commit, enabling new team members or agents to quickly understand recent changes and current focus without digging through git history. It helps onboard developers and keeps everyone aligned on project status, especially in agile environments with frequent commits.
An AI agent leverages the auto-generated PROJECT_STATE.md to provide context-aware code reviews or suggestions, using the AI summary to understand recent changes and focus areas. This reduces the need for manual context briefing and improves the agent's ability to offer relevant feedback based on the project's current state.
A freelance developer uses this skill to keep a living document of project progress for clients, automatically updating after each commit to show recent work, focus, and next steps. It serves as a transparent report that clients can access to track development without requiring technical git knowledge.
Maintainers of an open source repository implement this skill to automatically document commit history and project focus, making it easier for contributors to understand the latest developments and suggested next steps. This fosters community engagement by reducing barriers to entry for new contributors.
Instructors or students in coding bootcamps use this skill to track project evolution over time, with AI-generated summaries helping learners reflect on their progress and identify areas for improvement. It provides a structured way to document learning milestones and project focus in educational settings.
Offer a basic version with raw git updates for free, and charge for advanced features like AI summaries, custom sections, or integration with project management tools. Revenue comes from monthly subscriptions for teams needing enhanced context and automation in their development workflows.
Sell licenses to large organizations for on-premise deployment with enhanced security, custom configurations, and support for multiple repositories. This model targets companies requiring compliance, data privacy, and integration with existing enterprise systems like Jira or GitHub Enterprise.
Provide services to customize the skill for specific client needs, such as tailored AI prompts, integration with proprietary tools, or training for teams. Revenue is generated through project-based fees or ongoing support contracts, appealing to businesses with unique workflow requirements.
๐ฌ Integration Tip
Ensure Clawdbot is running and the Gateway HTTP API is enabled for AI summaries; start with default config and adjust sections in .project-context.yml as needed.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection