据 AlphaMoat 统计,截至 2026-09,Project Context Sync 累计下载 4,066 次、获 3 个星标,在全部 5,078 个 AI 技能中排名第 2,494 位,在「开发编程」分类(577 个)中排名第 321 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 126 | 3,754 | 3 | - |
| SkillHub ↗ | 205 | 4,066 | 3 | — |
各平台的计数口径不同,统计时间不一致。
机制是 Git 提交 → post-commit 钩子 → 自动更新仓库根目录的 PROJECT_STATE.md:钩子收集最近提交、历史、分支与变更文件,可选调用 LLM 生成智能摘要,再写入文档。安装用 scripts/install.sh(或 project-context-sync install),会安装 .git/hooks/ 下的 post-commit 钩子、创建默认配置 .project-context.yml、生成初始 PROJECT_STATE.md 并将其加入 .gitignore;卸载与免提交手动更新各有对应脚本。配置项含 ai_summary(默认 true)、recent_commits(默认 5 条)、include_diff_stats 与章节选择(last_commit、recent_changes、current_focus、suggested_next,后两者由 AI 生成)。AI 模式走 Clawdbot 的 OpenAI 兼容端点 /v1/chat/completions,出于安全默认关闭,需在 ~/.clawdbot/clawdbot.json 开启;端点继承网关鉴权(Bearer token),默认 bind: loopback 仅本机可连,脚本自动读取 token。输出含最近提交(哈希/信息/分支/时间/变更文件数)、近期变更、当前焦点与建议下一步;PROJECT_STATE.md 默认被 gitignore 本地再生成,Clawdbot 未运行时回退为原始 git 信息模式。该技能以 MIT 许可发布。
资料发布于 2026-10-27
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 4,066 | — | 3 |
| 2026-08 | 3,760 | +3.8% | 3 |
| 2026-07 | 3,623 | +8.2% | 3 |
| 2026-06 | 3,348 | +3.9% | 3 |
| 2026-05 | 3,223 | — | 3 |
| 2026-03 | 2,879 | — | 3 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
# 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
用 gh 命令行工具查看 GitHub 上的 PR 检查、工作流运行与 API 查询的技能。
聚合 16 个搜索引擎、无需 API Key 的检索技能。
用命令行直接列出、配置、授权并调用 MCP 服务与工具。
生成有效的 Mermaid 图表,如流程图、时序图、思维导图、ER 图、用户旅程等。
用受管 OAuth 访问 YouTube Data API,检索视频并管理频道内容。
通过受管的 OAuth 连接访问 GitHub REST API。
覆盖规划、实现、验证与测试的编码工作流技能。
整理 Docker 常用命令与容器工作流的技能。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。