Agent skill
nesting-orientation-review-gate
How to gate orientation-preference changes in the nesting heuristic without losing fit behavior or determinism
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/nesting-orientation-review-gate
SKILL.md
Context
Use this when a nesting or packing heuristic changes orientation preference, tie-break ordering, or rotation defaults.
Pattern
-
Separate the preference case from the necessity case.
- Preference: both orientations fit, but one orientation should now win.
- Necessity: only rotation fits, so rotation must still happen.
-
Prove the rule on the real service path.
- Assert actual placement geometry and
Rotated90, not just a helper-level fit decision.
- Assert actual placement geometry and
-
Add a preserved-rotation counterexample.
- Show a case where the old rotate-to-fit behavior still works after the preference change.
-
Re-run the same request twice and compare placement order, coordinates, dimensions, and rotation flags.
- Orientation tie-break changes can silently break determinism even when utilization stays the same.
-
Keep one no-fit regression check.
- Preference changes must not rewrite impossible parts into misleading reason codes.
-
Prefer a narrow priority key over a heuristic rewrite.
- If one explainability rule should outrank the existing orientation order only in a special case, add a dedicated leading sort key for that case and leave the rest of the ordering intact.
- This keeps the change deterministic and prevents unrelated panels from inheriting a new rotation policy.
Anti-Patterns
- Approving the slice because a single happy-path panel no longer rotates
- Asserting only
Success/Fitswithout checkingRotated90 - Treating a tie-break tweak as low-risk without a repeat-run determinism check
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?