Agent Skillshappier-dev/happier › decompose-gates

decompose-gates

GitHub

将复杂任务分解为可独立验证的单元,通过明确检查门控和风险加权排序来优化计划制定与子代理协作。

.agents/skills/decompose-gates/SKILL.md happier-dev/happier

触发场景

规划大型工作任务 编写子代理指令 任务难以整体验证

安装

npx skills add happier-dev/happier --skill decompose-gates -g -y
更多选项

非标准路径

npx skills add https://github.com/happier-dev/happier/tree/dev/.agents/skills/decompose-gates -g -y

不安装直接使用

npx skills use happier-dev/happier@decompose-gates

指定 Agent (Claude Code)

npx skills add happier-dev/happier --skill decompose-gates -a claude-code -g -y

安装 repo 全部 skill

npx skills add happier-dev/happier --all -g -y

预览 repo 内 skill

npx skills add happier-dev/happier --list

SKILL.md

Frontmatter
{
    "name": "decompose-gates",
    "description": "Decompose a hard or multi-part task into independently checkable pieces with explicit verification gates and risk-weighted ordering. Use when planning corridor-sized work, writing lane briefs for subagents or Codex, or whenever a task is too large to verify as a whole."
}

Decompose With Gates

Turn a hard task into pieces that can each pass or fail on their own, ordered so the riskiest assumption is tested first. Full doctrine: docs/agent-craft.md §2–§3.

Procedure

  1. Split along verification boundaries, not implementation convenience. Each piece must have its own pass/fail check that does not depend on the other pieces being right. If checking B assumes A is correct, A+B is one piece, not two.
  2. State each piece as a falsifiable claim, not a task. "The watermark advances only after server ack" (checkable) — not "update watermark logic" (a task). Attach to each claim the concrete check that decides it: a test slice, a log observation, a live replay, a measurement.
  3. Name the risk spots before sequencing. Write the two or three "if I'm wrong anywhere, it's here" spots — silent failure modes, irreversible steps, boring mechanical stretches — and design a specific verification for each. Generic suite runs are uniform effort against non-uniform risk.
  4. Order by information yield. Test first the smallest shared assumption whose failure would invalidate repeated downstream units. This gates only dependent replication: keep independent work moving and expand the rolling window as soon as the assumption holds. Skip the ramp when prior evidence or a deterministic tool already proves the unit shape.
  5. Relay dependency context, not only order. State the upstream contract and evidence each piece consumes. Those assumptions are themselves claims to check; most integration failures live at the interfaces.
  6. Right-size. A piece owns a whole responsibility end to end: analysis, change, tests, validation. Too small to fail meaningfully is overhead — micro-slicing (one-boolean extractions) provably grew the god-files it was meant to shrink. Too big to check independently is not decomposed yet.
  7. Prefer consumed verticals over horizontal spines. The first implementation slice should connect a real entry point through its canonical owner to an observable outcome. Do not split protocol/schema/producer/consumer into weeks of dormant layers whose correctness can only be known after activation. When compatibility forces phases, each phase names its active reader/consumer and removal condition.
  8. Firewall live-path corrections. If gated or dormant work exposes a live dispatch, lifecycle, persistence, migration, or startup defect, handle that correction as its own complete vertical at the live owner. Do not partially activate the dormant design to fix the production path.

For compatibility-sensitive work, use .agents/skills/happier-compatibility and decompose the transition into independently falsifiable prepare/read, activate/write, migrate/backfill, mixed-version or rollback, and contract/removal claims only where those phases are reachable. Every such claim names its exact released/predecessor baseline and old/new producer-consumer direction; do not create empty phases for an additive or internal-only change.

When pieces become lane briefs

  • Coordinate conceptual seams, overlapping edit hunks, generated outputs, and exclusive runtime resources; do not treat file dirtiness or a prior edit as ownership. Keep an advisory integration map for live seams/resources when useful. Lanes may layer compatible changes onto the same current file, but must not overwrite concurrent work or independently make incompatible decisions for the same seam.
  • For cross-program work, name the seam authority and each lane's Supersedes:, Extends:, or Consumes: relationship. A dependent lane consumes a typed contract; it does not repair the owning seam from the wrong program.
  • Every brief carries its gate (the falsifiable claim plus its check). Update durable state only when plan-gate readiness, dependency availability, blocker state, approved authority/contract, substantial review-boundary state, or the final verdict changes. Ordinary closed subchecks, landed fixes, RED/GREEN iterations, and lane-local validations belong in command output and the concise lane handoff.
  • Hard gates are measured, not merely reported. Re-measure decision-material claims through their deciding test, source inspection, runtime observation, or artifact check; do not create decorative count gates.
  • A lane brief should be a sufficient restart brief on its own: if the lane dies, its on-disk report plus the brief must let a fresh agent continue without the lost transcript.
  • Include exact paths/symbols, observed evidence, in-scope and out-of-scope surfaces, success criteria, required validation, expected output, and stop/fallback conditions. For compatibility lanes, include baseline tags/commits/artifacts and component roles.
  • Schedule formal independent review at the fewest substantial integrated boundaries needed by the approved plan, plus explicit user-requested or high-risk triggers. Every lane performs a compact author self-attack without a separate workspace, report, or reviewer. Advisory review may inspect moving work; boundary/ship verdicts reconcile current decision-material paths. See root AGENTS.md → "Adversarial review and handoff".

Output

A short plan listing: the pieces as claims, each with its deciding check; the named risk spots with their specific verifications; the ordering and why; the inter-piece assumptions.

Failure this prevents

The monolithic change where something works but you cannot say which part, and something fails but you cannot say where.

版本历史

  • bd19666 当前 2026-09-09 08:06

同 Skill 集合

.agents/skills/attack-conclusion/SKILL.md
.agents/skills/handoff-report/SKILL.md
.agents/skills/happier-ci-stabilize/SKILL.md
.agents/skills/happier-compatibility/SKILL.md
.agents/skills/happier-diagnose/SKILL.md
.agents/skills/happier-docs/SKILL.md
.agents/skills/happier-github-ops/SKILL.md
.agents/skills/happier-implement-plan/SKILL.md
.agents/skills/happier-implement/SKILL.md
.agents/skills/happier-instruction-eval/SKILL.md
.agents/skills/happier-issue-diagnose/SKILL.md
.agents/skills/happier-issue-triage/SKILL.md
.agents/skills/happier-plan/SKILL.md
.agents/skills/happier-port-0-2-to-0-3/SKILL.md
.agents/skills/happier-pr-steward/SKILL.md
.agents/skills/happier-release-notes/SKILL.md
.agents/skills/happier-release-promote/SKILL.md
.agents/skills/happier-release-validation-review/SKILL.md
.agents/skills/happier-release-validation/SKILL.md
.agents/skills/happier-release/SKILL.md
.agents/skills/happier-session-control/SKILL.md
.agents/skills/happier-testing/SKILL.md
.agents/skills/verify-claims/SKILL.md
openclaw/happier-session-control/skills/happier-session-control/SKILL.md
skills/attack-conclusion/SKILL.md
skills/decompose-gates/SKILL.md
skills/handoff-report/SKILL.md
skills/happier-ci-stabilize/SKILL.md
skills/happier-compatibility/SKILL.md
skills/happier-diagnose/SKILL.md
skills/happier-docs/SKILL.md
skills/happier-github-ops/SKILL.md
skills/happier-implement-plan/SKILL.md
skills/happier-implement/SKILL.md
skills/happier-instruction-eval/SKILL.md
skills/happier-issue-diagnose/SKILL.md
skills/happier-issue-triage/SKILL.md
skills/happier-plan/SKILL.md
skills/happier-port-0-2-to-0-3/SKILL.md
skills/happier-pr-steward/SKILL.md
skills/happier-release-notes/SKILL.md
skills/happier-release-promote/SKILL.md
skills/happier-release-validation-review/SKILL.md
skills/happier-release-validation/SKILL.md
skills/happier-release/SKILL.md
skills/happier-session-control/SKILL.md
skills/happier-testing/SKILL.md
skills/verify-claims/SKILL.md
.agents/skills/happier-commit-worktree/SKILL.md

元信息

文件数
0
版本
bd19666
Hash
c925c077
收录时间
2026-09-09 08:06

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 20:01
浙ICP备14020137号-1 $访客地图$