gitnexus-work
它能做什么
这个技能指导你的智能体逐步实现已规划的改动,每一步通过测试后才进入下一步。适合已有计划、并希望认真执行该计划的开发者。
适用场景
- ✓当你有一份计划文件,并希望按步骤执行工作的时候。
- ✓当一项小而明确的任务可以直接完成、并进行仔细检查的时候。
- ✓当你希望每项改动都分小块进行验证和提交的时候。
技能链接
https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-work/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请执行 docs/plans 中为重试功能制定的计划,并在每一步通过测试后提交。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会读取计划,检查它所编辑的每个符号的影响,并运行计划中的测试。只有改动通过检查后,它才会提交。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
gitnexus-work — execute a gitnexus-plan
Execute an implementation plan produced by gitnexus-plan, shipping it as a
sequence of verified, atomic commits. The plan's section 11
(implementation_context pack) is the primary machine-readable input; the
prose sections are its rationale. This skill does edit code — it is the
executor counterpart to the planning-only gitnexus-plan.
/gitnexus-work <plan path> # execute this plan
/gitnexus-work # newest docs/plans/*gitnexus-plan*.md here
/gitnexus-work <small task text> # direct mode, see Input triage
Input triage
- Plan path (or blank → the newest
docs/plans/*gitnexus-plan*.mdunder the current repo root): the normal mode; continue to Phase 1. Schema-2 plans have a normalized repo-relativedocs/plans/YYYY-MM-DD-gitnexus-plan-<3-5-word-slug>.mdgenerated_plan_path. Resolve only a lexical candidate, then invoke `scripts/evidence-provenance.mjs read-plan --repo <root> --generated-plan
<candidate>and load only the exact bytes in its descriptor-anchored receipt. Require the receipt's canonical repo-relative path to equal the document'sgenerated_plan_path` byte-for-byte;
reject an external, escaping, differently scoped, or mismatched value. A
plan in another target repo may still be passed by explicit path. If Phase 1's
pre-completed check finds every §7 step of the newest plan already landed,
stop and ask instead of re-executing it.
- Bare task text: trivial and bounded (1–2 files, no architectural
decisions) → implement directly with the same discipline:
impactbefore every symbol edit, minimal change, tests when behavior changes, verification commands taken from the repo's own scripts (package.json / CI),detect_changesbefore every commit, and the shared Build-current/index-current procedure before graph-dependent impact and final verification. Anything larger → recommend running/gitnexus-planfirst; honor the user's choice if they decline.
Phase 1 — Load and re-anchor the plan
- Resolve the target repo and normalized plan candidate, then invoke this
skill's descriptor-anchored
scripts/evidence-provenance.mjs read-plancommand exactly as specified inreferences/evidence-provenance.md. Reject a missing, external, escaping, symlinked, or differently scoped path. Decode and read the receipt's exactplan_bytes_base64completely; never read or reopen the lexical path directly. It is a decision artifact, not a script: scope boundaries andavoidentries bind you; exact code is yours to write. Retain the receipt's canonicalgenerated_plan_pathandplan_digestin session state. Never edit the plan body. - Parse the §11
implementation_contextpack:acceptance_criteria,evidence_provenance,primary_symbols,related_symbols,files_to_modify,execution_path,pdg_constraints,architectural_patterns,tests,verification_commands,risks,assumptions,open_questions,avoid. Compact plans carry the mini-pack subset — absent optional fields are empty, not errors.evidence_provenanceis mandatory: absence or schema 1 means a legacy plan, not a clean tree. Before relying on it, require exact byte-for-byte equality between the read-plan receipt's canonicalgenerated_plan_pathandevidence_provenance.generated_plan_path. - Two-layer drift check — always recompute. Even when current HEAD is the
same HEAD as the plan pin, recompute both the canonical global dirty digest
and the sorted cited-path manifest. Read
references/evidence-provenance.md, then invoke this skill'sscripts/evidence-provenance.mjswith the plan's exactgenerated_plan_path, every cited manifest path, and schema version 2. Never recreate its bytes in shell or prose. Schema 1 cannot be recomputed unambiguously and requires conservative re-anchoring. Include object kind plus HEAD/index/worktree/untracked layer digests, and classifystaged,unstaged,untracked,deleted,renamed,mixed, andabsentevidence. Honor the generated-plan exclusion exactly; do not exclude all plans. - Re-anchor on either mismatch. Missing or legacy provenance, a HEAD
mismatch, or a global dirty digest mismatch requires a conservative
re-anchor before work:
- Diff every cited-path manifest entry. Changed cited paths — including staged-only, unstaged-only, deleted, bot
常见问题
它需要计划文件吗?
不一定。该技能也可以直接处理小任务,而无需完整的计划。
它如何避免破坏已有功能?
它会在编辑每个符号之前检查其影响,并在每次提交前检查改动。
它在哪里找计划?
如果你没有指定,它会使用 docs/plans 文件夹中最新的计划文件。
详情
作者的原始描述
Use when executing an engineering plan produced by gitnexus-plan (or a small bounded task directly) — implements step by step with GitNexus impact checks before every symbol edit, tests from the plan''s scenarios, and detect_changes gating every commit. Examples: "/gitnexus-work docs/plans/2026-07-11-gitnexus-plan-ingestion-retry.md", "/gitnexus-work" (latest plan), "execute the plan".
repo: abhigyanpatwari/GitNexus
热度
- GitHub 星标
- 48k
- 排名
- #3614
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …