zf-harness-commit-push
Safe ZaoFu commit, push, merge, and landed-worktree closeout workflow for Claude or Codex. Use only when the user explicitly asks to commit, push, merge to…
от uisee-ai★ 36 звёзд на GitHub
Установить zf-harness-commit-push в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
ZaoFu Harness Commit Push
Absorbs zf-diff-size-review-fallback.
Objective
Commit, push, merge, and close out approved ZaoFu changes without sweeping in unrelated work, leaking secrets, bypassing hooks, colliding with a parallel driver, deleting unlanded work, or violating repository rules.
Default repository-facing output is Chinese unless the user asks otherwise. Git commit subjects and bodies are English by default; this language rule applies to commit metadata, not the surrounding operator report.
Relationship to yoke/git-evidence
This skill and yoke/git-evidence split the git surface; do not duplicate them:
yoke/git-evidenceis the worker-facing reference/evidence model — which refs exist (task/<TASK-ID>task_ref,worker/<instance>,candidate/<PDD>, main checkout), who writes/reads each, and why touching a kernel-consumed ref forges the evidence ledger. A worker reasons about what a ref means there.- This skill is the operator/driver commit-and-push procedure — inspecting dirty state, isolating unrelated files, scanning for secrets, choosing a conventional prefix, staging explicit pathspecs, running the dev pre-merge gate, and pushing. It reasons about how a human-approved change lands.
When a decision is about ref semantics or candidate integration, defer to
yoke/git-evidence; when it is about staging and landing an approved diff, use
this skill.
Preconditions
- Use this skill only after an explicit user request to commit, push, merge, wrap up, or clean up an already-landed worktree.
- Read
AGENTS.mdandCLAUDE.mdcommit rules before acting (Multi-Driver Git Discipline and the dev pre-merge gate are mandatory, not advisory). - Do not commit analysis-only notes, unapproved backlog candidates, or unrelated dirty files.
- Never use
git add -A,git add .,git commit -a,git commit --amend,git commit --no-verify,git push --force, or+refs. - Never use
git worktree remove --forceorgit branch -Das ordinary closeout. A dirty or unmerged source is a blocker, not disposable state. - If the diff is too broad to understand, stop and summarize what needs user confirmation before committing (see Large/risky diff fallback below).
Workflow
- Inspect:
git status --short --branchgit diff --statgit diff --name-onlygit log --oneline @{u}..HEADwhen an upstream existsgit log -1 HEAD— record the current HEAD. If you are a solo driver ondevand HEAD later moved without your commit, assume a parallel driver is present and switch to a work branch (see Multi-Driver Git Discipline).
- Classify changes:
- include only files touched for the approved request;
- list unrelated dirty files and leave them unstaged;
- if only unpushed commits exist and the user asked to push, use push-only.
- Safety scan:
- inspect changed filenames for
.env, key files, credentials, tokens, or generated runtime state; - inspect added diff lines for obvious API keys, private keys, PATs, access tokens, and secrets;
- treat
docs/examples carefully, but defang real-looking credentials.
- inspect changed filenames for
- Verify:
- run
python scripts/dev-verify.py plan --base devfrom the source worktree and inspect its changed-file/domain/reason output; if the exact current diff has no recorded passing receipt, run the matchingpython scripts/dev-verify.py run --base dev; - an unmapped source path must add a direct test or use exact
--tests <path>values with a stated impact-closure reason; never weaken the selector to make a commit pass; - for skill-only changes, validate each changed
SKILL.mdfrontmatter with the kernel'sread_skill_metadata(path, expected_name=<dir name>)(src/zf/core/skills/provenance.py) sonamematches the directory, and run the skill-metadata sentineltests/test_skill_provenance.py; - if validation is not run, state the exact reason.
- run
- Commit:
- choose one conventional prefix:
feat:,fix:,docs:,style:,refactor:,test:, orchore:; - write the commit subject and body in English unless the user explicitly requests another language;
- stage explicit paths with
git add -- <path> ...; - before committing, self-check
git diff --cached --name-onlycontains no other driver's files; - commit once with a concise message.
- choose one conventional prefix:
- Select the requested landing mode:
commit_only: stop after commit and report the retained worktree;push_only: push the requested ref but do not merge or clean a worktree;direct_dev: commit/push ondev; there is no source worktree closeout;merge_to_dev: capturesource_worktree,source_branch, andsource_head, then continue through merge, verification, and automatic closeout;- do not infer merge or remote mutation from a commit-only request.
- Merge / push:
- only the designated
devmerge owner
- only the designated
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- agents/openai.yaml
FAQ
Что делает скилл zf-harness-commit-push?
Safe ZaoFu commit, push, merge, and landed-worktree closeout workflow for Claude or Codex. Use only when the user explicitly asks to commit, push, merge to dev, wrap up approved changes, or clean up an already-landed worktree. Inspects git state, separates unrelated dirty files, checks for secrets and risky staging, uses explicit pathspecs, runs the dev pre-merge sentinel gate, and after a verified merge removes only clean inactive worktrees and fully merged local branches. Never force-pushes or force-removes dirty worktrees.
Как установить скилл zf-harness-commit-push?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл zf-harness-commit-push запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…