skills/dbx-technical-plan/SKILL.md
Evidence-grounded technical implementation planning before code changes. Use when the user asks to plan a software feature, refactor, migration, bug-fix strategy, infrastructure change, validation strategy, rollout, or codebase modification before implementation. Produces a scoped plan contract with goal, non-goals, evidence boundary, source of truth, invariants, implementation slices, validation model, risks, and handoff. Do not use for direct implementation, concrete diff review, strict critique of an existing plan, product/design judgment, generic brainstorming, commit/PR writing, or the stateful dbx-software-plan-first phase chain unless explicitly requested.
npx skillsauth add dbvc/skills dbx-technical-planInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create an implementation-ready technical plan before code changes.
Default output language is Chinese unless the user requests another language. Be direct, technical, evidence-first, and bounded. This skill is not a thinking ritual. It is a planning control loop that turns a software change intent into a plan contract that can be reviewed, implemented, validated, or promoted into a stronger workflow.
This is a lightweight, stateless planning controller.
It does not:
.plan-first workflow files;dbx-linus-review, dbx-diff-review, dbx-code-ratchet, or the dbx-software-plan-first-* chain.It does:
Use this skill before implementation when the user wants a technical execution plan.
dbx-decision-framing first when the real task is go/no-go, option selection, prioritization, or whether to invest in a direction.dbx-product-judgment when the central question is product correctness, value, IA, roadmap, or feature fit.dbx-design-judgment when the central question is UI, flow, visual hierarchy, interaction design, or design-system fit.dbx-linus-review when the user already has a plan/proposal and wants strict pragmatic critique of whether it is over-engineered, badly modeled, or merge-risky.dbx-diff-review when there is a concrete PR, diff, commit, staged change, working tree change, or selected file change to review.dbx-code-ratchet only when the user explicitly asks for bounded review-repair-revalidation and code modification is allowed.dbx-software-plan-first-* when the user explicitly wants the stateful plan-first phase chain with plan.md, tasks.md, and a workflow seal.This skill can hand off to those skills, but it should not silently activate a heavyweight workflow.
Use this skill when the user asks for software technical planning, for example:
Do not use this skill for:
Before producing a plan, check these gates.
If a missing fact would materially flip the plan, choose blocked and ask 1 to 3 blocking questions. If missing facts only affect confidence or details, proceed with assumptions and mark them.
Choose the smallest sufficient mode.
| Mode | Use when | Output behavior |
| --- | --- | --- |
| quick_plan | Small, clear task with low risk and no needed repo grounding | Short plan, no heavy contract |
| grounded_plan | Existing codebase facts, source of truth, tests, or project rules must be checked | Evidence-bound plan with explicit knowns/unknowns |
| migration_plan | Many call sites, files, packages, APIs, schemas, or rollout stages | Inventory, partitioning, compatibility, validation, rollback |
| architecture_change_plan | Ownership, state model, public contract, module boundary, or source of truth may change | Alternatives only when needed, trade-offs, invariants, rollout |
| bug_fix_strategy | User wants a repair approach before patching | Repro, hypotheses, minimal fix path, regression test, verification |
| validation_plan | User mainly needs test/build/manual validation strategy | Risk-to-validation mapping and evidence gaps |
| blocked | A blocking decision or missing evidence would flip the plan | Ask only the smallest blocking questions |
| direct_answer | The request is not a recurring planning task | Answer normally without this skill’s full structure |
Depth defaults:
quick_plan when the change is local, reversible, and low-risk.grounded_plan when the user asks about an existing repo or names concrete files/modules but the relevant facts are not yet confirmed.migration_plan for deprecations, framework upgrades, API shape changes, schema movement, shared utility replacement, or cross-package refactors.architecture_change_plan for source-of-truth, ownership, cache/state, public API, async, lifecycle, compatibility, or module-boundary changes.bug_fix_strategy when the safest next action is reproducing and isolating before patching.A technical plan must show what it is standing on.
Maintain this internal evidence boundary:
evidence_boundary:
repo_facts_read: []
user_supplied_facts: []
external_docs_or_versions: []
assumptions: []
unknowns: []
not_read_or_not_run: []
Rules:
Run this workflow in order.
references/plan-patterns.md instead of using one universal checklist.references/adversarial-plan-check.md.Use task-specific shapes.
| Task type | Preferred shape | | --- | --- | | Small feature | Vertical slice, minimal surface, direct validation | | Bug fix | Repro -> hypothesis -> minimal patch -> regression test -> verification | | Refactor | Invariant-first, behavior-preserving, narrow slices, re-review checkpoints | | Migration | Inventory -> partition -> compatibility layer -> batch execution -> validation -> cleanup | | Architecture change | Source-of-truth decision -> alternatives -> selected model -> migration path -> rollback | | Tooling or infra | Compatibility matrix -> pilot -> adoption path -> fallback -> CI validation | | Public API or contract | Contract delta -> compatibility policy -> caller impact -> rollout -> deprecation | | Frontend state/cache change | Owner/lifetime/key model -> stale data paths -> async races -> validation flows | | Validation-only request | Risk inventory -> coverage map -> automated/manual split -> evidence gaps |
See references/plan-patterns.md for details and failure modes.
This skill can use dynamic-workflow style thinking without requiring a specific host.
When the host supports subagents, workflow scripts, or delegation, and the user explicitly allows heavier analysis, use read-only specialist workers for high-risk planning:
Rules:
SKILL.md.Each non-trivial task slice should be independently reviewable.
slice:
id: T1
title: ""
purpose: ""
allowed_scope: []
forbidden_scope: []
dependencies: []
source_of_truth: []
invariants_to_preserve: []
validation: []
review_focus: []
stop_if: []
Good slices:
Bad slices:
Use for quick_plan.
## 快速技术计划
- 状态:ready / needs-grounding / needs-decision / blocked
- 推荐路径:
- 关键假设:
- 最高风险:
- 实施步骤:
1.
2.
3.
- 验证:
- 需要停止并重新判断的情况:
Use for normal grounded_plan, bug_fix_strategy, validation_plan, and moderate-risk plans.
## 技术计划结论
- 状态:ready / needs-grounding / needs-decision / blocked
- 推荐方向:
- 最高风险:
- 不建议直接做的事:
## 证据边界
- 已确认事实:
- 假设:
- 未知:
- 未读取 / 未运行:
## 问题框架
- Goal:
- Non-goals:
- 影响面:
- Source of truth:
- 必须保持的不变量:
## 推荐方案
- 核心思路:
- 关键取舍:
- 为什么不是其他方案:
## 实施切片
1. **T1 标题**
- Purpose:
- Allowed scope:
- Forbidden scope:
- Invariant:
- Validation:
- Review focus:
- Stop if:
## 验证模型
- Automated:
- Manual:
- Review-only:
- Not covered:
## 对抗检查
- 可能失败点:
- Scope 膨胀点:
- 需要人类判断:
- 推翻当前方案的证据:
## Handoff
- 下一步建议:
- 可交给:implementation / dbx-linus-review / dbx-software-plan-first-* / dbx-diff-review / dbx-code-ratchet
- Handoff contract:
For large migrations or architecture changes, include these extra sections when useful:
## 备选方案比较
| 方案 | 收益 | 代价 | 风险 | 可逆性 | 适合条件 |
|---|---|---|---|---|---|
## 迁移 / Rollout 策略
- Inventory:
- Partition:
- Compatibility:
- Batch order:
- Rollback:
- Cleanup:
## 风险矩阵
| 风险 | 影响面 | 触发条件 | 预防 | 验证 |
|---|---|---|---|---|
Do not pad small plans with deep sections. The right plan is the smallest one that preserves correctness.
If evidence is missing and would flip the plan, stop after the blocking questions.
## 需要先确认
当前不能可靠给出技术计划,因为以下信息会直接改变方案:
1.
2.
3.
确认后我会给出:范围、source of truth、不变量、实施切片、验证模型和 handoff。
Use references/handoff-contracts.md.
Default handoff decisions:
dbx-linus-review before implementation.dbx-software-plan-first-plan-issue or dbx-software-plan-first-ground-plan rather than writing ad hoc state.dbx-diff-review instead of continuing plan speculation.dbx-code-ratchet.You may say the plan is ready only when:
You may not say the plan is safe, verified, tested, green, or repo-grounded unless the relevant evidence exists in the current session.
references/plan-patterns.md: task-specific plan shapes, success criteria, and failure modes.references/adversarial-plan-check.md: plan-killer questions and rejection criteria.references/handoff-contracts.md: handoff schemas for DBX review, plan-first, implementation, and ratchet workflows.references/workflow-harness-patterns.md: optional mapping from this skill to subagents, workflow scripts, and external state holders.references/examples.md: compact examples and anti-patterns.development
Codex 专用的 subagent 上下文策略辅助技能。Use when 用户要求使用 Codex subagent delegation、Codex worker/explorer delegation、并行 review、独立 reviewer、隔离上下文、不要带上下文、fork_context=false,或把 review/dbx-linus-review/waza-check/plan-eng-review 等技能交给 Codex subagent 执行时。默认新开 Codex subagent 不继承父线程历史,只传最小任务摘要;只有用户明确要求继承父线程时才使用 fork_context=true。不要因为用户讨论业务代码里的 worker、browser worker、架构 explorer 概念而触发。
development
Use when the user asks to judge whether a product, feature, PRD, information architecture, content, interaction, UI flow, live product, implementation, roadmap, or competitor position is right, good, usable, valuable, coherent, worth building, or product-ready. Grounds judgment in target user, job/context, evidence, alternatives, critical path, trust, and implementation alignment. Ask blocking questions or collect evidence before judging when background is missing. Do not use for pure implementation, generic UI inspiration, ordinary code review without product judgment, generic market summaries, or unsupported guesses.
development
High-signal code change review workflow for PRs, patches, staged/index changes, working-tree diffs, commit ranges, and file-scoped review. Use when the user asks to review concrete code changes for functional/user-impact risks, data model correctness, state ownership, compatibility, or maintainability. Handles partial staged hunks and user-selected files/commits by selecting the exact review target before reading the diff. Do not use for implementation-only requests, generic code explanation, release publishing, issue triage, or plan-only Linus-style strict-pragmatic critique; for strict critique of a concrete diff, use this skill only to establish the target before dbx-linus-review.
development
Use when the user asks to judge, audit, critique, review, shape, redesign, or produce a design plan for a UI, flow, PRD, screenshot, prototype, live product, component, design system, or code-backed interface. Grounds design judgment in target user, task path, information architecture, visual hierarchy, interaction states, visual language, design system consistency, accessibility, responsive behavior, and evidence. May read PRDs, code, screenshots, and live products. May inspect read-only surfaces. Must not edit files, write implementation code, apply patches, install packages, or commit changes.