一键导入
planner-consolidate-wps
Analyze WP complexity per phase and emit consolidation group manifests for trivial WP merging (L1+L0 pattern)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze WP complexity per phase and emit consolidation group manifests for trivial WP merging (L1+L0 pattern)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze issue dependencies and produce a dispatch execution map for parallel orchestration
Execute recipe sessions batch-by-batch for triaged GitHub issues. Reads the triage-issues output manifest, processes each batch sequentially, and launches the appropriate recipe for each issue. Use when user says "process issues", "run issues", or "execute pipeline for issues".
Validate review-decisions audit findings with mandatory intent analysis and seven evidence-gathering rules. Adds docstring-as-contract recognition, deliberate-change detection, test-as-intent-signal, consumer-impact verification, architectural feasibility checks, behavioral simulation, and symmetry-as-design recognition to the standard validation workflow. Use when validating reports from audit-review-decisions specifically.
Generate YAML recipes for .autoskillit/recipes/. Use when user says "make script skill", "generate script", "script a workflow", "write a script", "create a script", "new recipe", "write a pipeline", or when loaded by other skills for script formatting.
Validate audit findings from audit-arch, audit-tests, or audit-cohesion against actual code, git history, and design intent using 9–10 parallel subagents. Removes contested findings, documents exceptions, adjusts severities. Use when user says "validate audit", "validate findings", "validate report", or "check audit results".
Validate audit findings from audit-arch, audit-tests, audit-cohesion, audit-feature-gates, audit-docs, or audit-review-decisions against actual code, git history, and design intent using 9–10 parallel subagents. Removes contested findings, documents exceptions, adjusts severities. Use when user says "validate audit", "validate findings", "validate report", or "check audit results".
| name | planner-consolidate-wps |
| categories | ["planner"] |
| description | Analyze WP complexity per phase and emit consolidation group manifests for trivial WP merging (L1+L0 pattern) |
| hooks | {"PreToolUse":[{"matcher":"*","hooks":[{"type":"command","command":"echo '[SKILL: planner-consolidate-wps] Analyzing WP complexity for consolidation...'","once":true}]}]} |
L1 session that analyzes WP complexity per phase and proposes consolidation groups
for trivial work packages. Dispatches one L0 subagent per phase in parallel. Each
L0 evaluates per-WP complexity, groups trivial WPs that share the same assignment
and have sequential ordering or a direct dependency chain, and writes a
{phase_id}_consolidation.json manifest. The L1 validates each response and writes
the manifest files to {planner_dir}/work_packages/consolidation/.
This is an analysis-only step: even if all L0s fail, the downstream
consolidate_wps_merge callable performs a no-op passthrough (no manifests = no
merging).
refine_wps, before consolidate_wps_mergerefined_wps.json (full WP set) and the planner run directory{phase_id}_consolidation.json filesrefined_wps.json (PlanDocument with work_packages: list[WPElaborated]){{AUTOSKILLIT_TEMP}}/planner/run-YYYYMMDD-HHMMSS)NEVER:
merged_id that is not one of the source_wp_ids$2/work_packages/consolidation/run_in_background: true is prohibited)ALWAYS:
$2/work_packages/consolidation/ before dispatching L0sconsolidation_manifest_dir = {planner_dir}/work_packages/consolidationRead $1 (refined_wps.json). Parse as a PlanDocument. Extract all WP entries from
work_packages[]. Fail immediately if the file is malformed:
FATAL: failed to parse {path}: {error_detail}
Group WPs by phase_id (always populated; read directly from the field).
Build a map phase_id → [WPElaborated, ...].
mkdir -p "$2/work_packages/consolidation"
For each phase, assemble a context packet containing:
phase_id — the phase being analyzedwps — the full list of WP objects in this phase (id, name, goal, technical_steps,
files_touched, deliverables, acceptance_criteria, depends_on, estimated_files, scope)all_wp_ids — WP IDs from every phase (for cross-phase dep awareness)If phase count ≤ 6: spawn all in one parallel batch. If phase count > 6: spawn sequential batches of 6.
Each L0 receives the phase context packet and must return structured text in this exact format:
phase_id = P1
groups = [
{
"merged_id": "P1-A1-WP1",
"source_wp_ids": ["P1-A1-WP1", "P1-A1-WP2"],
"merge_order": ["P1-A1-WP1", "P1-A1-WP2"],
"name": null,
"goal": null
},
{
"merged_id": "P1-A1-WP3",
"source_wp_ids": ["P1-A1-WP3"],
"merge_order": ["P1-A1-WP3"],
"name": null,
"goal": null
}
]
L0 grouping rules:
merged_id MUST be the lowest-numbered WP ID in the group (primary WP).merge_order defines the technical_steps concatenation order; typically
[primary, ...others_by_id_order].name and goal may be null (inherit from primary) or a short override string when
the merged purpose is clearly distinct from the primary WP's name.For each L0 response:
phase_id must be present and match the expected phase IDgroups must be a valid JSON arraysource_wp_idsmerged_id must be one of the source_wp_idsOn phase_id mismatch:
WARNING: L0 response phase_id mismatch — expected {expected}, got {actual} — skipping
On validation failure:
WARNING: L0 response for {phase_id} failed validation — skipping
On complete L0 failure:
CRITICAL: L0 for {phase_id} failed — no manifest written for this phase
For each validated L0 response, write the manifest file:
$2/work_packages/consolidation/{phase_id}_consolidation.json
Manifest format:
{
"phase_id": "P1",
"groups": [
{
"merged_id": "P1-A1-WP1",
"source_wp_ids": ["P1-A1-WP1", "P1-A1-WP2"],
"merge_order": ["P1-A1-WP1", "P1-A1-WP2"],
"name": null,
"goal": null
}
]
}
consolidation_manifest_dir = $2/work_packages/consolidation