plan-stack-from-findings
Plan a stack from findings: take findings already in context — review feedback, audit results, architecture recommendations — and produce the fewest coherent landing batches, ordered by priority and dependency with every priority inversion flagged. Use when turning findings or issues into an ordered stack of change batches, or when another skill needs findings converted into a batched, dependency-ordered plan.
- License 许可
- MIT
- 所属仓库
- nseng-ai/ns
- 最近更新
- 2026-10-02
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- plan-stack-from-findings
- metadata
- { "internal": true }
- description
- Plan a stack from findings: take findings already in context — review feedback, audit results, architecture recommendations — and produce the fewest coherent landing batches, ordered by priority and dependency with every priority inversion flagged. Use when turning findings or issues into an ordered stack of change batches, or when another skill needs findings converted into a batched, dependency-ordered plan.
03 SKILL.md 正文
Plan a Stack from Findings
Turn a loose set of findings into the fewest coherent landing batches, then order those batches into a stack. Each batch should tell one reviewable story and build only on batches before it. For an ordinary finding set, target one to three PRs; one PR is the default first attempt, not one PR per finding.
This skill is one composable step. It runs on findings already in context, whatever produced them, and hands an abstract plan back to the caller. It does not rank findings (priority arrives with each finding), and the plan it returns names no branches, gates no approval, and edits no code — naming, approval, and execution belong to the caller.
Findings it expects
Findings arrive in context as prose. Each should convey roughly: what the issue is, how confidently it should land (a priority tier), what it touches, and the gist of the change. Work with whatever detail is present; do not demand a fixed set of fields.
Priority tiers, most-to-least confident. Each source maps its own axis (trunk-acceptance, payoff, reviewer blocking-ness) onto these — you consume the tier and stay agnostic about why it was assigned:
high— low risk, clear evidence, obvious acceptance.medium— plausible and bounded, with some uncertainty.low— useful but interpretation- or context-dependent.stretch— high-risk/high-reward, broad, or likely to need discussion.
1. Batch the findings
Start by attempting one landing batch. Combine findings when they share any coherent review narrative, including a product outcome, implementation area, lifecycle, validation suite, root cause, or invariant. Mixed priority tiers do not by themselves justify a split. Keep tests, docs, type adjustments, and local cleanup with the behavior they support.
Treat dependencies as a reason to combine by default. Split dependent work only when separate landing, review, deployment, or revert has clear value.
Split a batch only for one or more of these reasons:
- the findings affect genuinely unrelated subsystems;
- they have independent deployment or revert boundaries;
- some work is speculative while the rest is ready to land;
- the combined diff would be unreviewably large.
For every proposed boundary, answer: Why can't this batch be combined with an adjacent batch? If the answer is only priority, finding identity, change type (such as tests or docs), or a soft dependency, combine them. More than three landing batches requires an explicit explanation for why each adjacent pair cannot be combined.
Keep deferred or conditional findings outside the landing stack. State the evidence or decision that would activate them rather than manufacturing placeholder batches. For example, if ready findings form one coherent outcome while cadence work depends on future evidence, emit one landing batch now and list the cadence work as a conditional follow-up.
Done when every ready finding belongs to exactly one landing batch, every deferred or conditional finding is listed separately, and every split has a concrete non-combination rationale.
2. Order the batches
After batching for coherence, sort landing batches by priority, most confident first. A mixed-priority batch keeps the tiers of its included findings; do not split it merely to produce single-tier batches. Then reason across all batches about which changes must precede which. When a batch builds on another's change and separate landing has clear value, the prerequisite comes first even if it is lower priority. This is a priority inversion — record each one with the dependency that forced it.
Done when the landing batches are in one total order and every case of a lower-priority batch preceding a higher-priority one carries an inversion note naming its cause.
3. Emit the plan
Return the ordered batches. For each batch:
- a short kebab slug suggestion (not a branch name);
- included finding ids;
- priority tier or mixed-tier profile;
- the shared outcome or review narrative that makes the batch coherent;
- why it cannot be combined with an adjacent batch (omit only for a one-batch plan);
- batches this one depends on;
- any inversion note from step 2;
- areas expected to change;
- validation hints, when the findings carry them.
After the landing stack, list deferred or conditional findings with their activation evidence. If the plan has more than three batches, add an explicit summary explaining why no adjacent batches can combine.
Done when every landing batch appears in order with each applicable element, and non-landing findings are clearly separated from the stack.
04 同仓库更多 Skills
pr-make-accountable
Interview a PR author to establish shared understanding of intent and design decisions, then co-author the What / Why / Changes PR body with opt-in Requested reviewer focus.
typescript-style
Opinionated style guide for strict, portable TypeScript. Use when writing, designing, or reviewing TypeScript: type design, boundary validation, error handling, module architecture, and review discipline.
typescript-fake-driven-testing
TypeScript fake-driven testing architecture. Use when writing or reviewing TS code with external dependencies, gateway interfaces, real adapters, in-memory fakes, or CLI scenario tests.
ns-typescript
TypeScript overlay for ns-style projects. Use when editing or reviewing TS in this repo: tsconfig baseline, pnpm/Vitest/oxlint/oxfmt/native tsc commands, relative .ts imports, workspace subpath exports, and the exactOptionalPropertyTypes spread idiom. Repo-specific enforcement (test lanes, time seams, style guard) lives in the host repo's AGENTS.md.
ns-typescript-style-tripwire
Invoke the ns TypeScript style Tripwire against a supplied diff or current branch.
skill-management
Manage skills with `npx skills`: add, edit, remove, rename, update, or list skills (local or GitHub), and the nested `skills/<disposition>/.../<name>/` / flat `.agents/skills/` layout conventions.