AGENT SKILL

Git原子提交规范

当在 super-agent-v3 中准备 stage、commit、push、拆分提交或审查提交边界时使用。

License 许可
Apache-2.0
最近更新
2026-10-11
Stars
★ 0
Forks
0

01 前言 Front Matter

name
Git原子提交规范
aliases
[ "@Git原子提交规范", "@git-commit" ]
description
当在 super-agent-v3 中准备 stage、commit、push、拆分提交或审查提交边界时使用。

03 SKILL.md 正文

super-agent-v3 Git 原子提交规范

基本规则

  • 提交前后都跑 git status --short。
  • 只 stage owned files;不要 git add .。
  • 保留 unrelated dirty / untracked 文件。
  • 默认分支前缀 codex/;只有用户明确要求才在 main 上提交。
  • 修复类提交必须包含同提交回归测试、fixture、golden、snapshot 或可执行验收脚本。
  • 避免 --no-verify;紧急旁路后必须补跑遗漏检查并报告。

推荐流程

git status --short
git diff -- <owned-files>
git add <owned-files>
git diff --cached --check
git status --short
git commit -m "<type>: <summary>"

Go 改动先按文件和包跑:

./scripts/test_with_guard.sh <file.go>
./scripts/test_with_guard.sh <affected packages> -count=1

红旗

红旗 处理
unrelated 文件出现在 staged diff 取消 stage 该文件,不要修改内容
fix 提交没有测试锁 补测试或说明无法自动锁定的可执行验收
hooks 失败 修根因,不调弱 guard
baseline diff 逐项解释,未经批准不用 freeze

04 同仓库更多 Skills

lihah111222333-cloud
lihah111222333-cloud/Super-Dolphin-Agent-Cockpit

mcp-lsp-project-config

配置、安装、检查、修复或迁移项目级 mcp-lsp stdio MCP,覆盖 Codex、Claude Code 和 Google Antigravity,以及 Windows 原生、WSL 原生和 Windows 宿主通过 wsl.exe 桥接 Linux sidecar 的自动选型。用户提到项目 MCP、LSP MCP、.codex/config.toml、.mcp.json、.agents/mcp_config.json、Codex 中 LSP 工具有时直接暴露有时只在延迟工具目录、ALL_TOOLS 过滤为空、工具已显示但调用报 client is closing、EOF、Transport closed,或希望三个客户端共用仓库内 mcp-lsp 时使用。

Skill与智能体开发
★ 0
lihah111222333-cloud
lihah111222333-cloud/Super-Dolphin-Agent-Cockpit

注释规范

当在 super-agent-v3 中编写或审查 Go 函数级中文注释、React hooks/service/controller 注释,或处理注释守卫失败时使用。

★ 0
lihah111222333-cloud
lihah111222333-cloud/Super-Dolphin-Agent-Cockpit

字段守卫

当新增、删除、重命名或跨层传递结构化字段,以及修改 DTO、mapper、schema、API/RPC、事件、配置、store、序列化或前后端契约时自动使用;追踪生产源到全部消费端并建立 fail-fast 字段守卫。

后端与接口
★ 0
lihah111222333-cloud
lihah111222333-cloud/Super-Dolphin-Agent-Cockpit

后端

在 super-agent-v3 中编写、审查或重构 Go 后端代码时使用。

后端与接口Skill与智能体开发
★ 0
lihah111222333-cloud
lihah111222333-cloud/Super-Dolphin-Agent-Cockpit

前端

当在 super-agent-v3 中开发、审查或修复当前 React/Vite 前端 UI 时使用;前端源码只在 frontend-app。

前端开发
★ 0
lihah111222333-cloud
lihah111222333-cloud/Super-Dolphin-Agent-Cockpit

全量项目地图生成

当在 super-agent-v3 中生成、更新或校验 docs/doc/codemap 项目地图、AI index 或能力清单时使用。

★ 0