AGENT SKILL
Git 提交信息生成
commit
根据当前更改创建规范的 git commit,并利用会话历史提供提交理由与摘要;在被要求提交、准备提交信息或完成暂存工作时使用。
- License 许可
- Apache-2.0
- 所属仓库
- openai/symphony
- 最近更新
- 2026-09-16
- Stars
- ★ 2.8w
- Forks
- 2.9k
01 前言 Front Matter
- name
- commit
- description
- Create a well-formed git commit from current changes using session history for rationale and summary; use when asked to commit, prepare a commit message, or finalize staged work.
03 SKILL.md 正文
Commit
Goals
- Produce a commit that reflects the actual code changes and the session context.
- Follow common git conventions (type prefix, short subject, wrapped body).
- Include both summary and rationale in the body.
Inputs
- Codex session history for intent and rationale.
git status,git diff, andgit diff --stagedfor actual changes.- Repo-specific commit conventions if documented.
Steps
- Read session history to identify scope, intent, and rationale.
- Inspect the working tree and staged changes (
git status,git diff,git diff --staged). - Stage intended changes, including new files (
git add -A) after confirming scope. - Sanity-check newly added files; if anything looks random or likely ignored (build artifacts, logs, temp files), flag it to the user before committing.
- If staging is incomplete or includes unrelated files, fix the index or ask for confirmation.
- Choose a conventional type and optional scope that match the change (e.g.,
feat(scope): ...,fix(scope): ...,refactor(scope): ...). - Write a subject line in imperative mood, <= 72 characters, no trailing period.
- Write a body that includes:
- Summary of key changes (what changed).
- Rationale and trade-offs (why it changed).
- Tests or validation run (or explicit note if not run).
- Append a
Co-authored-bytrailer for Codex usingCodex <codex@openai.com>unless the user explicitly requests a different identity. - Wrap body lines at 72 characters.
- Create the commit message with a here-doc or temp file and use
git commit -F <file>so newlines are literal (avoid-mwith\n). - Commit only when the message matches the staged changes: if the staged diff includes unrelated files or the message describes work that isn't staged, fix the index or revise the message before committing.
Output
- A single commit created with
git commitwhose message reflects the session.
Template
Type and scope are examples only; adjust to fit the repo and changes.
<type>(<scope>): <short summary>
Summary:
- <what changed>
- <what changed>
Rationale:
- <why>
- <why>
Tests:
- <command or "not run (reason)">
Co-authored-by: Codex <codex@openai.com>
04 同仓库更多 Skills
Symphony 版本发布
release
通过提升已提交的版本号、将其落地、为合并后的提交打标签,并验证 Burrito 发布工作流,来创建一次 Symphony 发布。当被要求发布、打标签或重新打标签(retag)Symphony 时使用。
★ 2.8w
分支推送与 PR 创建
push
将当前分支的变更推送到 origin,并创建或更新相应的拉取请求(pull request);当被要求推送、发布更新或创建拉取请求时使用。
★ 2.8w
分支拉取与冲突解决
pull
将最新的 origin/main 拉取到当前本地分支并解决合并冲突(也称 update-branch)。当 Codex 需要将功能分支与 origin 同步、执行基于合并(merge)的更新(而非变基/rebase),并指导冲突解决的最佳实践时使用。
★ 2.8w
Linear GraphQL 操作
linear
使用 Symphony 的 `linear_graphql` 客户端工具执行原生的 Linear GraphQL 操作,例如评论编辑和上传流程。
★ 2.8w
PR 合并落地
land
通过监控冲突、解决冲突、等待检查,并在检查全部通过时进行 squash 合并来落地(land)PR;在被要求落地、合并或推动 PR 直至完成时使用。
★ 2.8w
运行故障日志排查
debug
通过结合 issue/session 标识符追踪 Symphony 和 Codex 日志,调查卡住的运行和执行失败;在运行停滞、反复重试或意外失败时使用。
★ 2.8w