ce:review-cleanup
Review Artifact Cleanup
Offline, operator-initiated deletion of old ce:review run directories. This skill must never dispatch a review, select a review mode, or create a new run while claiming writers are stopped. It only previews and deletes existing run directories through the bundled helper.
Step 1: Identify the target root
Before asking anything else, fix the target project root for this invocation (the operator-supplied path, or the current checkout if none is given) and hold it as TARGET_ROOT for every command below. Every invocation in this skill -- preview and execute -- reuses this exact same value. The preview helper's JSON response carries no root field, so execute must never guess or reconstruct the root from that response; it must reuse the value fixed here.
Step 2: Offline acknowledgment
Before any scan, ask the operator to confirm they have stopped all review writers using this checkout, including other sessions and other machines, and that they will remain stopped through deletion. This is a stated precondition, not a verified one: the helper does not detect active writers. If the operator refuses or cannot confirm, stop -- do not run preview.
Step 3: Age cutoff
Ask for the age cutoff (days, or a number suffixed d/w) if the operator has not already supplied one. Age is a required argument with no default; never assume or infer a cutoff.
Step 4: Preview
Fill TARGET_ROOT with the value fixed in Step 1 and AGE with the confirmed cutoff, then invoke the bundled helper for a read-only preview. Quote both values -- never interpolate operator text unquoted: