close-slice
Close Slice
Use this skill when implementation is complete and you want to close an execution slice cleanly.
Responsibilities
- Resolve the target slice through
guide-execution. - Validate that the slice is ready to close.
- Close the slice without deleting the original artifacts.
- Optionally record explicit invalidation or supersession relations as part of closure.
Source of Truth Rules
- Keep the original slice artifacts intact.
close-slicerecords closure only; any later cleanup or archival is a separate explicit maintenance step. - Treat
<slice_dir>/README.md,<slice_dir>/registry.json, and<slice_path>/.slice-meta.jsonas the canonical closure records.
Artifact Ownership
close-slice owns closure metadata updates and relation-bearing slice closure.
guide-execution should route into closure only after execution review is complete; it should not replace close-slice by mutating closure state directly outside normal registry/status tooling.
Workflow
- Resolve the target slice explicitly, or use the active slice.
- Run
manage_execution.py validate-slice. - If the slice is not already
closed, close it through tooling. - If relation-bearing closure is requested:
- record explicit slice relations such as
supersedesorreplaces_partially - require explicit impact confirmation unless forced
- run relation auditing through the execution registry tooling
- record explicit slice relations such as
- Return the closed slice outcome and the retained source artifacts.
Tooling
# Close the active slice
python3 <path-to-close-slice>/scripts/close_slice.py
# Close a slice while explicitly confirming that it supersedes an older one
python3 <path-to-close-slice>/scripts/close_slice.py --slice "<slice-id-or-path>" --relate supersedes "<old-slice-id-or-path>" --confirm-impact
# Close a slice with a partial replacement relation scoped to one story/requirement
python3 <path-to-close-slice>/scripts/close_slice.py --slice "<slice-id-or-path>" --relate replaces_partially "<old-slice-id-or-path>" --story-title "Story 2 - Legacy flow" --requirement-id FR-002 --selector "legacy checkout path" --confirm-impact
# Output JSON for downstream tooling
python3 <path-to-close-slice>/scripts/close_slice.py --json
Use --confirm-impact when closure also changes the semantic validity of older execution slices. Use --force only for deliberate repair when the slice lifecycle is temporarily inconsistent and you have already verified the intent with the user.
If a repository later wants to archive or prune closed slices, treat that as a separate explicit maintenance workflow rather than part of slice closure.
More from sirius-cc-wu/sirius-skills
dioxus-ui-ux
Dioxus UI/UX design intelligence. Specialized guidelines for Dioxus Components, plus 50 styles, 21 palettes, 50 font pairings. Stacks: dioxus, daisyui, shadcn, html-tailwind. Actions: plan, build, create, design, implement, review, fix, improve, optimize. Projects: web app, dashboard, admin panel, SaaS, mobile app. Elements: button, modal, navbar, card, form, chart.
16dioxus-stitch
Transforms Stitch designs into clean, modular Dioxus code using daisyUI. Handles RSX conversion, type-safe props, and data decoupling for Rust projects.
8dioxus-ui-skill
Dioxus UI/UX design intelligence. Specialized guidelines for Dioxus Components, plus 50 styles, 21 palettes, 50 font pairings. Stacks: dioxus, shadcn, html-tailwind. Actions: plan, build, create, design, implement, review, fix, improve, optimize. Projects: web app, dashboard, admin panel, SaaS, mobile app. Elements: button, modal, navbar, card, form, chart.
4discover
Frames a project or feature before implementation by capturing goals, constraints, stakeholders, and initial story candidates.
2ui-flow
Captures optional UI and UX flows, screen-level requirements, and interaction notes before implementation.
2design
Produces feature-level system-design.md artifacts before breakdown when a feature needs architecture, interface, constraint, failure-handling, or validation decisions captured durably.
2