strategy-template-governor
SKILL.md
Strategy Template Governor
Produce a gate-style design review packet that selects Strategy, Template Method, Hybrid, or No-change using code-grounded evidence.
Workflow
- Ground in code reality before deciding.
- Score the decision matrix from
references/decision-matrix.md. - Validate the score using domain casebooks:
Use
references/ai-casebook.mdfor AI flow patterns. Usereferences/payment-casebook.mdfor provider/payment patterns. - Produce a design review packet from
references/review-packet-template.md. - Apply anti-forcing gate checks. Block implementation advice if evidence is insufficient.
Gather Evidence First
Collect all items before scoring:
- Runtime selection points (factory, map, conditional dispatch).
- Variant count and growth direction (stable or expanding).
- Shared lifecycle steps (validation, setup, execute, finalize, error map).
- Algorithm heterogeneity (same pipeline vs protocol-level divergence).
- UI/service leakage (how much variant branching remains outside the chosen abstraction).
- Test surface (unit seams and integration boundaries).
Apply Matrix and Decide
Score each dimension in references/decision-matrix.md.
Verdict rules:
- Choose Strategy-dominant when runtime interchangeability and algorithm-level divergence are both high.
- Choose Template-dominant when the skeleton is stable and variability is concentrated in step overrides/hooks.
- Choose Hybrid when both are materially true and neither pattern alone keeps branching local.
- Choose No-change when benefits are weak, confidence is low, or migration cost outweighs expected gains.
Design Boundaries by Verdict
For Strategy-dominant:
- Keep one interface contract for interchangeable executors.
- Move per-variant protocols/providers into concrete strategies.
- Keep selection/composition at one boundary (factory/map/composer).
For Template-dominant:
- Implement a fixed
final/non-overridden flow entrypoint. - Expose only required operations and optional hooks.
- Keep shared lifecycle in base and forbid external reordering.
For Hybrid:
- Use Strategy for outer runtime variant swap.
- Use Template inside each strategy family for stable internal lifecycle.
- Keep one source of truth for cross-cutting validation and error policy.
For No-change:
- Keep the current architecture and state explicit reasons.
- List guardrails that prevent further drift.
- Define objective re-evaluation triggers for revisiting pattern changes.
Required Output Format
Always output a complete design review packet using references/review-packet-template.md.
Minimum required sections:
- Verdict and confidence.
- Why-not analysis for rejected alternatives.
- Boundary and interface proposal.
- Failure modes and rollback plan.
- Test strategy and acceptance criteria.
- Migration/compatibility considerations.
- Disconfirming evidence that argues against the chosen verdict.
Anti-Forcing Gate Checks (Mandatory)
Do not issue implementation-ready advice unless all checks pass:
- At least three code-grounded evidence points are present.
- At least one rejected pattern has explicit rationale.
- Variant growth expectation is stated.
- Testability impact is addressed.
- Failure handling path is defined.
- Cost-of-change is explicitly estimated (migration scope, regression risk, rollout cost).
- Disconfirming evidence is explicitly documented.
- Confidence is not
Low.
If a check fails, return:
- Missing evidence list.
- Required next inspection targets.
- Temporary recommendation with explicit uncertainty.
- No-change as the default safe interim verdict unless urgency is high.
Reference Navigation
Use only what you need:
references/decision-matrix.md: scoring model and thresholds.references/ai-casebook.md: AI-focused cues and anti-patterns.references/payment-casebook.md: payment/provider-focused cues and anti-patterns.references/review-packet-template.md: final response contract.
Weekly Installs
3
Repository
strongorange/st…t-skillsFirst Seen
Feb 27, 2026
Security Audits
Installed on
opencode3
antigravity3
claude-code3
github-copilot3
codex3
kimi-cli3