Apple笔记管理
macOS命令行管理
project-context-sync 在每次 Git 提交后自动更新项目状态文档,让任何代理或后续会话都能快速了解项目当前进展。
安装步骤:
cd /path/to/your/repo/path/to/skills/project-context-sync/scripts/install.shproject-context-sync install安装完成后会自动:安装 post-commit 钩子、创建 .project-context.yml 配置文件、生成初始 PROJECT_STATE.md、将该文件加入 .gitignore。
卸载:/path/to/skills/project-context-sync/scripts/uninstall.sh
手动更新:/path/to/skills/project-context-sync/scripts/update-context.sh
配置说明:编辑 .project-context.yml 可调整 AI 摘要开关、最近提交数量、是否包含 diff 统计、输出章节等。启用 AI 摘要需开启 Gateway HTTP API(默认关闭),在 ~/.clawdbot/clawdbot.json 中设置 gateway.http.endpoints.chatCompletions.enabled 为 true。
见下方输入与输出表格。
| 项目 | 内容 |
|---|---|
| 输入 | Git 仓库路径;.project-context.yml 配置(可选);Clawdbot 运行实例(AI 模式时) |
| 输出 | PROJECT_STATE.md 状态文档;post-commit Git 钩子;.gitignore 更新记录 |
| 适用人群 | 多会话协作的开发者团队;需要快速上下文切换的代理工作流;长期维护的项目跟踪 |
| 不包含 | 远程服务器部署功能;多人实时同步机制;历史版本对比工具 |
原始链接:https://github.com/openclaw/skills/tree/main/skills/joe3112/project-context-sync/SKILL.md
来源类型:开源社区技能