Command Palette

Search for a command to run...

Назад к скиллам
скилл № 32833

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от 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-evidence is 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.md and CLAUDE.md commit 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 --force or git branch -D as 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

  1. Inspect:
    • git status --short --branch
    • git diff --stat
    • git diff --name-only
    • git log --oneline @{u}..HEAD when an upstream exists
    • git log -1 HEAD — record the current HEAD. If you are a solo driver on dev and HEAD later moved without your commit, assume a parallel driver is present and switch to a work branch (see Multi-Driver Git Discipline).
  2. 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.
  3. 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.
  4. Verify:
    • run python scripts/dev-verify.py plan --base dev from the source worktree and inspect its changed-file/domain/reason output; if the exact current diff has no recorded passing receipt, run the matching python 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.md frontmatter with the kernel's read_skill_metadata(path, expected_name=<dir name>) (src/zf/core/skills/provenance.py) so name matches the directory, and run the skill-metadata sentinel tests/test_skill_provenance.py;
    • if validation is not run, state the exact reason.
  5. Commit:
    • choose one conventional prefix: feat:, fix:, docs:, style:, refactor:, test:, or chore:;
    • 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-only contains no other driver's files;
    • commit once with a concise message.
  6. 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 on dev; there is no source worktree closeout;
    • merge_to_dev: capture source_worktree, source_branch, and source_head, then continue through merge, verification, and automatic closeout;
    • do not infer merge or remote mutation from a commit-only request.
  7. Merge / push:
    • only the designated dev merge owner
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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), без исполняемых скриптов.

Похожие скиллы

Сравнить zf-harness-commit-push с