跳到主要内容
知仓学习社ZHICANG

vc-plan-discovery

Discover related plans for the current task: same feature folder full depth, other features active-only, general-plans active. Like vc-context-disco…

执行命令读文件严重 0 · 高危 3withkynam/vibecode-pro-max-kit

它会碰到什么

扫了多少3 个文本文件,12 KB
它会碰到什么执行命令读文件
命中总数5 处
命中统计严重 0 · 高 3 · 中 2 · 低 0

这个仓库里自带 2 个测试样本文件(有些技能仓会放故意的恶意样本做演示),它们不计入上面的能力与命中。

逐条看命中(3 条严重或高危)
  • scripts/discover-plans.mjs:8exec-spawn
    import { execSync } from "node:child_process";
  • scripts/discover-plans.mjs:8exec-spawn
    import { execSync } from "node:child_process";
  • scripts/discover-plans.mjs:10exec-spawn
    const root = execSync("git rev-parse --show-toplevel").toString().trim();

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

vc-plan-discovery

> Output style: Follow process/development-protocols/communication-standards.md — answer-first, plain language, no unexplained jargon, TL;DR on long responses.

Invocation

Primary method — run the auto-discovery script. It applies the Scope Rules below

(same-feature full depth; other features active-only; general-plans active always) and

extracts ONLY the leading YAML frontmatter block of each .md file (no whole-file reads):

node .claude/skills/vc-plan-discovery/scripts/discover-plans.mjs [--feature <name>] [--json]

It groups output into Active Plans / Backlog / Completed / Reports / References (each line:

- [name]: description (path)) and prints a trailing `Found N active, N backlog, N

completed, N reports, N references` line. It never throws on a missing root and exits 0

unless given a bad flag. Use --json for a machine-readable object. Prefer this over the

manual scan below — it is deterministic and avoids loading huge files into context.

Per task-folder artefact colocation, the script scans one level into each

{slug}_{date}/ task folder and surfaces co-located _PLAN_/_REPORT_/_REF_ artefacts;

the sibling reports//references/ dirs are deprecated and only hold legacy artefacts.

The manual scan in Scope Rules below is the FALLBACK for when the script fails.

Purpose

Surface all plans relevant to the current task so agents have full plan context — what was tried, what is in progress, what is deferred, and what reports and references exist — before doing any phase work.

Scope Rules

  • Same feature folder (from task context or argument): read ALL of active/, backlog/, completed/, plus any legacy sibling reports/, references/ — surface every file with frontmatter
  • Other feature folders: read active/ only — surface plans whose frontmatter description or feature field matches the task domain
  • general-plans/active/: always scan
  • general-plans/completed/, legacy reports/, references/: scan only when same-feature folder is not identified

Per task-folder artefact colocation, expect every current artefact (plan, spec, reports, references) INSIDE its {slug}_{date}/ task folder — scan one level into each task folder. The sibling reports//references/ dirs are deprecated and only hold legacy artefacts.

Frontmatter Reading

Read frontmatter fields: name, description, type, feature, phase

Route by description field for relevance matching (same approach as vc-context-discovery).

Skip files without frontmatter or with incomplete frontmatter — log as "no frontmatter, skipped".

Output: grouped list by folder — Active Plans / Backlog / Completed / Reports / References — with name + description per file.

When To Invoke

  • First action alongside vc-context-discovery at the start of every loop step (research / validate / execute / update-process)
  • Any time an agent needs to know: what plans exist for this feature, what was tried before, what is deferred, what references exist

Output Format

### Active Plans
- [name]: description (path)

### Backlog
- [name]: description (path)

### Completed
- [name]: description (path)

### Reports
- [name]: description (path)

### References
- [name]: description (path)

Found N active, N backlog, N completed, N reports, N references

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。