commit
Skill86 starsChanged 3 months agoMITView on GitHub
提交当前变更到 Git。 当需要把已完成的工作落为一次 Git 提交时使用。
- Reads credentials
193 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- Magnus-Gille/claude-skillstheir own version, first seen Oct 5, 2026
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- tam159/next-roletheir own version, first seen Oct 4, 2026
Used with
Projects with it also use create-branch, review-r and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillcreate-branch
Create a git branch following Sentry naming conventions. Use when asked to "create a branch", "new branch", "start a branch", "make a branch", "switch to a new branch", or when starting new work on the default branch.
Also in 4 projects that use this
luischanciSkillreview-r
Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.
Also in 3 projects that use this
MicrosoftSkillact-on-feedback
Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.
Also in 3 projects that use this
MicrosoftSkillgenerate-run-commands
Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.
Also in 3 projects that use this
AWSSkillissue
Implement a GitHub issue end-to-end — branch, code, test, docs, and commit.
Also in 9 projects that use this
luischanciSkillvalidate-bib
Validate bibliography entries against citations in all manuscript files. Find missing entries and unused references.
Also in 3 projects that use this
- +2 more from luischanci
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- microsoft/vscode★ 196ksame name
- ToolJet/ToolJet★ 41ksame name
- openai/symphony★ 28ksame name
- EverMind-AI/EverOS★ 13ksame name
- GetStream/Vision-Agents★ 8.1ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- Windy3f3f3f3f/claude-code-from-scratch★ 2.7ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- pedrohcgs/claude-code-my-workflow★ 1.6ksame name
- bubblelabai/BubbleLab★ 1.1ksame name
183 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analyze-taskSkill
- archive-tasksSkill
- block-taskSkill
- cancel-taskSkill
- check-taskSkill
- close-codescanSkill
- close-dependabotSkill
- code-taskSkill
- complete-manual-validationSkill
- complete-taskSkill
- create-prSkill
- create-release-noteSkill
- create-taskSkill
- entropy-checkSkill
- import-codescanSkill
- import-dependabotSkill
- import-issueSkill
- init-labelsSkill
- init-milestonesSkill
- plan-taskSkill
- post-releaseSkill
- refine-titleSkill
- releaseSkill
- restore-taskSkill
- review-analysisSkill
- review-codeSkill
- review-planSkill
- review-prSkill
- run-manual-validationSkill
- run-taskSkill
- test-integrationSkill
- testSkill
- update-agent-infraSkill
- upgrade-dependencySkill
- watch-prSkill
The file
Files
提交代码
--agent取值见.agents/rules/task-management.md「合作者 token 规范」。
在不覆盖用户本地工作的前提下创建 Git commit,并在需要时更新关联任务状态。
commit core 只返回一个主结果:committed、no_op、committed_with_warnings、failed 或 blocked,并附带结构化 warnings。push 失败或保护分支策略不会撤销已经创建的本地提交。
任务上下文
入口可省略 task ref;显式 task scope 仅接受 --task <ref> 或 -t <ref>,不再解释位置 task ref。先调用 agent-infra-internal task-context resolve {task-scope}。
- 显式 task scope 解析失败时停止。
- 未显式指定 task scope 时,只有
TASK_CONTEXT_NOT_FOUND可进入 taskless direct;detached HEAD、损坏候选或多匹配必须 fail closed。 - 入口业务操作数包含字面
--orchestrated时直接失败并返回ORCHESTRATED_COMMIT_REMOVED;普通入口使用mode=direct,不得从 run 文件或环境推断模式。 - taskless direct 不读取、创建或完成 task intent、receipt、checkpoint 或 task.md 收尾记录。
- task-bound direct 不要求 delegation receipt;local checkpoint 由
code-task直接调用共享 core,独立commit继续使用 push delivery。 - 解析成功后只使用 core 返回的
taskId;不得从环境、分支或文件名猜测任务身份。
1. 检查本地修改
在任何编辑前先检查:
git status --short
git diff必须尊重现有用户改动;如果计划与之冲突,按禁言规则停止并记录阻塞原因。
2. 更新版权头年份
动态获取当前年份,只更新已经改动过的带版权头文件。完整流程见 reference/copyright-check.md。
3. 生成提交信息
检查状态、diff 和最近历史,按 Conventional Commits 生成英文祈使句 message,并读取 reference/commit-message.md 处理协作署名。
4. 调用唯一 commit core
执行本步骤前读取 reference/commit-orchestration.md。
将 message、明确 paths、expected HEAD/tree、task scope、agent、mode 和必填 push policy 写入临时 JSON,然后调用:
agent-infra-internal git-workflow commit --input {commit-operation.json}示例:
{
"taskRef": "TASK-YYYYMMDD-HHMMSS",
"agent": "codex",
"mode": "direct",
"paths": ["lib/example.ts", "tests/example.test.ts"],
"message": "fix(core): validate example input",
"expectedHead": "{HEAD}",
"expectedTree": "{TREE}",
"push": {
"remote": "origin",
"refs": ["refs/heads/{branch}"]
}
}taskless direct 省略 taskRef;direct task-bound commit 使用 push delivery。core 统一负责 repository/worktree mutation lock、task lock(仅 task-bound)、路径和敏感文件、staged scope、HEAD/tree、branch/ref、commit、push、保护分支、warning 和幂等校验。
- 有明确修改时最多创建一个本地 commit。
- 无修改但需要交付本地领先的 HEAD 时只执行 push-only,不创建空 commit。
main/master的自动 push 跳过并返回COMMIT_AUTOPUSH_PROTECTED_BRANCH;本地 commit 保留。- 普通 push 失败返回
COMMIT_PUSH_FAILEDwarning;重跑只补当前 push,不重复创建 commit。 - taskless 成功不写 task.md、review、receipt、checkpoint 或 Activity Log。
5. 任务收尾与平台同步
task-bound 操作按 core 返回的 task 结果继续执行任务同步;taskless 操作跳过任务校验和任务平台同步。
当 task 存在且关联 Issue/PR 时,按 reference/issue-metadata-sync.md、reference/pr-summary-sync.md 和平台规则执行同步;commit 路径调用 summary-sync 时固定传入 --result no_op,因为它只同步已有 PR 身份。同步失败只产生 warning,不撤销本地 commit。
完成 task-bound 收尾后运行:
date "+%Y-%m-%d %H:%M:%S%z" | sed 's/\([+-][0-9][0-9]\)\([0-9][0-9]\)$/\1:\2/'
agent-infra-internal task-verify {task-id} commit.completed --format text按 .agents/rules/validation-output.md 展示校验摘要;没有当次校验输出,不得声明任务收尾完成。
6. 输出下一步
渲染下一步前先读取 .agents/rules/next-step-output.md,并根据最新 task/PR 状态只调用一次统一 helper。push 失败时保持任务 active,只输出诊断;已有 verified 绑定 PR 时路由到 watch-pr;没有绑定 PR 时,按 prFlow 选择 create-pr 或 complete-task。
注意事项
- 不要提交
.env、凭据、密钥等敏感文件。 - 不要使用
git add -A或git add .。 - 不要手写 task Activity Log、review anchor、receipt 或 checkpoint。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

