跳到正文
Skillpedia
通用编程48k · #3611

gitnexus-plan

它能做什么

这个技能指导你的智能体利用代码库地图并对照真实源码检查,为代码改动编写清晰的实施计划。适合希望在开始编码前有一份周密计划的开发者。

适用场景

  • ✓当你需要在开始编码之前为代码改动制定计划的时候。
  • ✓当已有计划需要检查并加以完善的时候。
  • ✓当一个功能涉及代码库的许多部分,需要仔细安排顺序的时候。

技能链接

https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-plan/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-plan/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为我们的摄取流水线添加重试支持制定一份计划,让开发者可以照着执行。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会利用索引梳理相关代码,检查实际的源文件,并编写一份计划文档。它本身不会修改项目代码。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

gitnexus-plan — implementation-ready engineering plans

Produce an implementation-ready plan for an engineering task. GitNexus is the navigation layer (where to look), statement-level PDG is the constraint layer (what gates and feeds the behavior), and your native targeted source reads are the verification layer (what is actually true right now). The output is a plan document plus a compact, machine-readable implementation context pack that a follow-up implementation agent (gitnexus-work, or any executor) can consume without repeating the investigation.

/gitnexus-plan <task description>
/gitnexus-plan impact_depth:3 depth:deep <task description>   # knob overrides, see Configuration

This skill plans. It never implements. Do not modify production code, tests, or configuration while running it. The only repository file it writes is the plan document (a working ledger kept outside the repo is fine). The only other permitted state change is an index refresh via analyze --index-only, which writes only the .gitnexus index store. It must not build analyzer dist/ output and must not mutate source, tests, configuration, or evaluation data. Stale analyzer provenance is disclosed as a source-weighted limitation, never repaired by a planning run.

Hard rules

  • Ledger first. Before every GitNexus call and every repo file read, check the context ledger. Never repeat a query or reread an unchanged range that already answered the same question (allowed repeats are defined in references/context-ledger.md; this skill's own reference files are exempt from ledger bookkeeping).
  • Every graph query answers a named planning question. Record the question and the conclusion in the ledger. No exploratory dredging.
  • Source beats graph. The graph navigates; current source is authoritative. Verify before asserting (see Phase 4). Comments are the weakest evidence — never stronger than executable code.
  • No fabrication. Never invent symbols, filenames, test names, tool results, or PDG edges. Unknowns go to Assumptions and Open Questions.
  • No scope creep. Adjacent refactors the task didn't ask for go to plan §12 as explicitly-deferred follow-ups, not into Proposed Changes.
  • Pin working-tree evidence, not only HEAD. Every plan form carries the versioned global dirty digest and sorted cited-path manifest defined in references/context-ledger.md. Generate it only with the portable helper and byte contract in scripts/evidence-provenance.mjs and references/evidence-provenance.md; never reimplement the digest.
  • Write the plan only through the helper. The generated-plan path is a normalized repo-relative docs/plans/YYYY-MM-DD-gitnexus-plan-<3-5-word-slug>.md path. Compose the complete UTF-8 document in memory or in a scratchpad outside the target repo, then pass it on stdin to the helper's write-plan command. Never write the destination directly or fall back to an external output path when the safe writer fails.
  • Read an existing plan only through the helper. Deepen must invoke scripts/evidence-provenance.mjs read-plan, parse the exact decoded plan_bytes_base64 from its descriptor-anchored receipt, and retain that receipt's canonical generated_plan_path and plan_digest as one binding. Never parse a direct lexical-path read or apply one plan's digest to another path.
  • Stop when you have enough. Sufficient evidence ends exploration; plans do not improve monotonically with tokens spent.

Phase 0 — Parse and classify

Read references/context-ledger.md and open the ledger with the task: original request, interpreted goal, acceptance criteria. Classify the task:

Category Posture (depth · plan form · tool-call budget · freshness)
Bug fix (local) Narrow, 1–2 primary symbols, impact_depth 1 · compact · ~15 · accept
Feature Default knobs · compact · ~30 · accept
Refactor / shared API change Impact mandatory, impact_depth 3 · full · ~45 · strict
Performance Default + performance PDG mode (references/pdg-slice.md) · full · ~45 · strict
Security Default + security PDG
常见问题

它会写代码吗?

不会。该技能说明,它只做规划,从不实施,因此不会修改生产代码或测试。

计划保存在哪里?

计划会以文档形式保存在项目的 docs/plans 文件夹中。

它能改进我已经写好的计划吗?

可以。该技能可以深化已有计划,使其更加完善。

详情

作者的原始描述

Use when you need a deep, implementation-ready engineering plan for a code change — built from GitNexus graph intelligence, statement-level PDG analysis, and targeted source verification, compact enough that an implementation agent can start without re-investigating. Also strengthens existing plans via Deepen mode. Examples: "/gitnexus-plan Add retry support to the ingestion pipeline", "/gitnexus-plan deepen docs/plans/<plan>.md", "plan this change using the knowledge graph".

repo: abhigyanpatwari/GitNexus

热度

GitHub 星标
48k
排名
#3611
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能