Chuyển đến nội dung
Skillpedia
Lập trình chung48k · #3611

gitnexus-plan

Skill này làm gì

Nó hướng dẫn agent của bạn viết một kế hoạch triển khai rõ ràng cho một thay đổi mã, dựa trên bản đồ của codebase và đối chiếu với mã nguồn thực tế. Nó dành cho lập trình viên muốn có kế hoạch cẩn thận trước khi bắt đầu viết mã.

Khi nào nên dùng

  • ✓Khi bạn cần kế hoạch cho một thay đổi mã trước khi bắt đầu viết mã.
  • ✓Khi một kế hoạch đã có cần được kiểm tra lại và làm chắc chắn hơn.
  • ✓Khi một tính năng chạm vào nhiều phần của codebase và cần sắp xếp thứ tự cẩn thận.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/abhigyanpatwari/GitNexus/blob/main/.claude/skills/gitnexus-plan/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể lập kế hoạch thêm hỗ trợ thử lại cho pipeline nạp dữ liệu của chúng tôi, để một lập trình viên có thể làm theo không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent lập bản đồ các đoạn mã liên quan bằng chỉ mục, kiểm tra các file mã nguồn thực tế và viết một tài liệu kế hoạch. Nó không tự thay đổi mã của dự án.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

Nó có viết mã không?

Không. Skill nói nó chỉ lập kế hoạch, không triển khai, nên không thay đổi mã sản xuất hay bài kiểm thử.

Kế hoạch được lưu ở đâu?

Kế hoạch được lưu thành tài liệu trong thư mục docs/plans của dự án.

Nó có cải thiện một kế hoạch tôi đã viết không?

Có. Skill có thể làm sâu thêm một kế hoạch có sẵn để nó chắc chắn hơn.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#3611
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự