| name | beam-search-execution |
| description | Use when one-pass iteration is likely to miss stronger solutions. Generate bounded variants, score them, and converge with explicit evidence. |
Beam search execution
Trigger conditions
Use this skill when at least one is true:
- the task has multiple plausible approaches with meaningful tradeoffs
- correctness or quality depends on selecting among alternatives
- first-pass drafts keep requiring major rewrites
Do not use for trivial single-step fixes.
Core rule
Generate multiple bounded variants, then select with explicit criteria and evidence.
Workflow
- Define constraints and non-goals before generating variants.
- Generate
N variants (default 3, max 7).
- Score each variant on correctness, risk, effort, and reversibility.
- Select one variant and justify rejection of others.
- Run a thin-slice validation plan for the selected variant.
- If selection confidence is low, run one focused re-beam on weak areas only.
Output contract
Return:
Constraints: required boundaries and exclusions.
Variants: concise summary for each option.
Score matrix: criteria scores with evidence notes.
Selection: chosen option and reject rationale.
Thin-slice validation: first implementation step and verification.
Anti-patterns
- unbounded variant generation with no selection discipline
- selecting by fluency instead of evidence
- re-generating full solutions when only one weak area needs refinement