自动监控代码变更。当代码修改完成后,自动创建本地 Git 存档 (Commit)。分析历史风格生成 Commit Message。严禁推送。
这是一个“哨兵”技能。它的作用是确保所有的代码变更都被安全地记录在本地 Git 历史中。
你必须遵守以下协议:
每当你使用文件编辑工具(如 write_file, replace_in_file 等)完成代码修改,并确认代码无语法错误后,必须立即调用本技能进行存档。
git push。只做本地 commit。{{#tool_call}} run_shell_command(command="git status") {{/tool_call}} 如果没有检测到变更(Clean working tree),则停止执行并告知用户无需存档。
为了让提交记录看起来像人类写的,请读取最近的记录: {{#tool_call}} run_shell_command(command="git log -n 5 --pretty=format:'%s'") {{/tool_call}}
git status 的变更内容和 Step 2 的历史风格(Emoji/Conventional/中文描述)。仅输出一句简短的系统通知,例如:
"✅ [Auto-Save] 已创建本地存档:
fix: update api timeout"
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer