revealui-cleanup
One-off session residue cleanup. Alias /cleanup. Runs the GAP-314 cleanup-session workflow (tmpscript sweep, workboard-sweep, worktree triage, unpushed/memory/scratchpad). Default is report-only; --fix is gated. Also runs from /checkpoint after prepare-for-exit (no --fix). Not /recover. Not /ops list.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- revealui-cleanup
- license
- MIT
- metadata
- { "author": "RevealUI Studio", "related": [ "revealui-ops", "revealui-checkpoint", "revealui-rollup" ], "version": "0.1.0", "website": "https://revealui.com" }
- description
- One-off session residue cleanup. Alias /cleanup. Runs the GAP-314 cleanup-session workflow (tmpscript sweep, workboard-sweep, worktree triage, unpushed/memory/scratchpad). Default is report-only; --fix is gated. Also runs from /checkpoint after prepare-for-exit (no --fix). Not /recover. Not /ops list.
- allowed-tools
- Bash
03 SKILL.md 正文
Cleanup (/cleanup) — session residue
Thin one-off onto the registered workflow cleanup-session ($JV_REPO/workflows/cleanup-session.yml). Delegates to workflow-run.js. Does not reimplement sweeps or safety classes.
Load helpers:
. "$REVEALFLEET_ROOT/revskills/scripts/lib/session-state.sh"
Default (report)
node "$JV_REPO/scripts/workflow-run.js" cleanup-session
Runs the report-first arm, then STOPPED-GATED on the destructive arm. Print the runner output. Do not pass --fix unless the user asked to apply gated cleanup.
Apply gated arms (/cleanup --fix)
Tell the user the gated step deletes expired temp scripts and removes only SAFE-TO-REMOVE worktrees (terminal PR + clean + no unpushed). Then:
node "$JV_REPO/scripts/workflow-run.js" cleanup-session --fix
--dry-run prints the plan and executes nothing.
Where this already runs
| Surface | How |
|---|---|
/checkpoint Step 5c2 |
Same runner, no --fix |
/ops cleanup-session |
Same workflow by name |
prepare-for-exit |
Overlapping read-only checks only; not a substitute |
Do not
- Do not call
cleanup-session.jsdirectly from this skill — go through the runner. - Do not pass
--fixfrom/checkpoint. - Do not remove UNKNOWN or PR-OPEN worktrees.
- Do not treat this as
/recover(crash inventory) or/rollup(MASTER_HANDOFF regen).
04 同仓库更多 Skills
good-skill
A minimal valid skill fixture used to prove the skills-lint and plugin-lint validators accept well formed input. Covers frontmatter shape only.
bad-skill-missing-field
暂无简介
bad-skill-awk
Fixture skill whose fenced shell block violates lint-skill.awk. skills-lint must reject it.
yjs-collaboration
Yjs CRDT collaboration patterns for real-time and offline-first editing. Use when building collaborative documents, shared scratchpads, or multi-user editing. Covers Y.Doc, Y.Map, Y.Array, Y.Text, state encoding, structured patches, server-side document manipulation, and conflict-free merge semantics.
vitest-testing
Vitest testing patterns for production TypeScript projects. Use when writing tests, fixing test failures, configuring coverage, mocking modules, debugging flaky tests, or setting up Vitest in a monorepo. Covers Vitest 3+, vi.mock, vi.fn, React Testing Library, PGlite in-memory PostgreSQL, pool forks, maxWorkers, and hookTimeout.
tailwind-v4
Tailwind CSS v4 patterns, CSS-first configuration, and v3 migration guide. Use when writing styles, configuring @theme variables, creating components with CVA, migrating from tailwind.config.js, or using container queries, dark mode, and new v4 utility syntax. Covers @import tailwindcss, custom properties, oklch colors, and clsx.