一键导入
cleanup
Assess the project to reorganize or deprecate unused/outdated files. Archives large artifacts to 12TB drive, cleans the git workspace, and commits changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Assess the project to reorganize or deprecate unused/outdated files. Archives large artifacts to 12TB drive, cleans the git workspace, and commits changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create receipt-backed persona dream packets from memory residue. Use when a persona should dream, reflect, or turn recent memories into persona insight; when create-movie/dream.py feels too heavy for the goal; when the desired output is a prompt, frame prompts, contact sheet, reflection, and memory write receipt rather than a full movie; or when a downstream movie workflow needs a dream_packet.json input.
Use when the user asks to query project memory, ask an oracle, use supported browser-backed reviewers, run Tau roundtable/single-handler workflows, run persona/deep-review workflows, generate image prompts, check OS/project health through composed skills, or run an ask DAG. This skill is the executable /ask runtime; do not replace it with an informal subagent, plain web search, or hand-written review.
Build structured evidence cases using Claims-Arguments-Evidence (CAE) trees. AGENT-DRIVEN composable orchestrator: the agent decomposes the question, calls existing skills for data collection and verification, then DECIDES the verdict. Python runner.py is a thin data collector and persistence layer.
Monitor Herdr-visible Codex/Claude agent panes for stalled, blocked, unknown, or confused state, then ask each stalled agent whether it needs human intervention or can self-unblock with brave-search or webgpt.
Internal Tau-owned LLM proxy on localhost:4001. Surfaces: chat/batch completions, scillm exec, OpenCode serve (coding delegate), OpenCode transport (DAG/SSE), standing Codex agents. Chutes, Gemini, Claude/Codex OAuth, OpenCode Go, Ollama. Auto-routes by model name. ZIP/PDF, JSON repair, batch pools. Project agents must not call this skill directly unless the human explicitly asks to operate SciLLM or the work is Tau/SciLLM maintenance.
Operate and verify the local T'au project at ${HOME}/workspace/experiments/tau. Use for Tau loop, harness, watchdog cron, GitHub issue orchestration, TUI, Memory-first chat, and E2E proof/status tasks. This skill is a light wrapper around the Tau repo and must report mocked/live proof boundaries explicitly.
| name | cleanup |
| description | Assess the project to reorganize or deprecate unused/outdated files. Archives large artifacts to 12TB drive, cleans the git workspace, and commits changes. |
| allowed-tools | Bash, Read, Grep, Glob |
| triggers | ["cleanup this project","reorganize the codebase","remove outdated files","deprecate unused code","git cleanup","archive artifacts","move artifacts to storage"] |
| metadata | {"short-description":"Deep codebase assessment and technical debt cleanup with 12TB archive"} |
| provides | ["cleanup"] |
| composes | ["task-monitor"] |
| complies | ["best-practices-skills","best-practices-python"] |
This skill performs a deep assessment of the codebase to identify technical debt, unused files, and outdated documentation, then performs cleanup operations with confirmation.
.wav, .mp4, .pt, .ckpt, .parquet, etc.) and moves them to /mnt/storage12tb/artifacts/<project>/<date>/ instead of deletingpersonaplex/, data_horus/)git worktree remove$ask/WebGPT/Surf browser
lanes as external blockers with durable request, receipt, and lock-owner
evidence instead of killing or bypassing active reviewer processes--dry-run): Scan the codebase for:
--plan): Generate a Cleanup Plan markdown file for review.--worktree-audit): Generate JSON + Markdown ownership/risk
buckets for dirty files so agents do not blindly stage unrelated work.$browser-oracle registry and
run the project's easy sanity command before moving source-like files.--execute): Perform cleanup operations with user confirmation:
--force to skip prompts)--force to skip prompts)local/CLEANUP_LOG.mdbest-practices-* checks for changed files, then commit/push only the
coherent cleanup slice.bash .pi/skills/cleanup/run.sh --dry-run to see JSON findings.bash .pi/skills/cleanup/run.sh --plan to generate a readable cleanup plan.bash .pi/skills/cleanup/run.sh --worktree-audit --output artifacts/cleanup/worktree_audit.json.bash .pi/skills/cleanup/run.sh --execute to perform cleanup.--force to skip confirmation for junk files and archives (dead files still require confirmation).| Variable | Default | Description |
|---|---|---|
CLEANUP_ARCHIVE_ROOT | /mnt/storage12tb/artifacts | Where to archive large artifacts |
src/, tests/,
scripts/, configs/, docker/, or .github/ may satisfy tracked imports,
CLI entrypoints, service routes, tests, or runtime contracts. Do not quarantine,
archive, ignore, or move them until the repository's import/readiness smoke
checks pass before and after the proposed move.README.md and project knowledge..ask/browser-oracles.yaml with $browser-oracle. If the registry is missing,
add it. If the machine-local tab binding is stale, report the stale binding
separately; do not fake a ready browser reviewer.$ask webgpt, $surf, or another
browser oracle is unavailable because a browser-handler lock is held by an
active process, preserve request/receipt/lock-owner evidence and stop that
reviewer lane. Do not kill, steal, bypass, or run --no-lock against another
active reviewer process.git worktree remove <path> is safe.local/CLEANUP_LOG.md.| Option | Description |
|---|---|
--dry-run | Print JSON findings without making changes |
--plan | Generate a Cleanup Plan markdown file |
--worktree-audit | Generate JSON + Markdown dirty-worktree buckets for commit-safe triage |
--execute | Perform cleanup operations with confirmation |
--force | Skip confirmation for junk/archive (dead files still require confirmation) |
--output <file> | Specify output file for plan (default: CLEANUP_PLAN.md) |
--archive-root <path> | Override archive destination path |
Use --worktree-audit when the repo is already dirty or the human asks why the
worktree cannot be committed cleanly. The audit classifies each
git status --porcelain=v1 entry into conservative buckets:
generated_or_cache: cache/build/junk entries; remove or ignore.generated_or_archive: artifacts, logs, cleanup evidence, and archive paths;
commit only if they are intended proof, otherwise archive/ignore.root_stray_review: root-level files outside the infrastructure allowlist;
move to docs/artifacts/scripts before committing.project_dependency_review: untracked source/config files under live project
paths; do not quarantine or move until import/readiness checks prove tracked
code does not depend on them. Prefer committing the coherent feature slice or
leaving the files in place with a receipt.agent_runtime_state: .claude, .codex, .pi, .agents, and similar
local agent state; review or ignore, never auto-stage blindly.tracked_deletion_review: tracked deletions; restore or commit only with
explicit owner intent.project_work_review: source, tests, docs, docker, scripts, and project
infrastructure; commit only as a coherent reviewed change set.requires_human_review: fallback for entries that do not match a known safe
category.The audit is proof input, not permission to mutate. $cleanup must not claim a
clean worktree until a fresh git status --short artifact shows the remaining
state and every remaining dirty entry is either intentionally documented or
resolved.
Use a secondary clean worktree only for commit isolation when the live project checkout has unrelated dirty files, unresolved conflicts, or untracked work that must not be swept into the cleanup commit.
Before editing through a clean worktree, write a short source-boundary note in the cleanup plan or status:
live_repo: the real project path that runs the service or app.commit_worktree: the temporary clean worktree path, if any.reason: the concrete dirty-state or conflict reason commit isolation is
needed.sync_back: how the live repo will be verified after push.Required post-push live-repo proof:
git -C "$live_repo" fetch origin main
git -C "$live_repo" branch --contains "$commit_sha"
test -f "$live_repo/<expected-artifact>"
git -C "$live_repo" log --oneline -- "$expected_artifact"
If the live repo cannot fast-forward because of local work, do not reset it.
Report the exact blocking paths and verify the artifact through origin/main
until the live repo can safely update.
Remove temporary commit worktrees only at the cleanup tail:
git -C "$live_repo" worktree remove "$commit_worktree"
git -C "$live_repo" worktree prune
Never use /tmp as the source repo for implementation. /tmp is allowed only
for disposable receipts, screenshots, review bundles, or extracted evidence.
Before moving any untracked source/config file out of a live repo, record a pre-move readiness receipt. Use the narrowest project-native checks available, for example:
PYTHONPATH=src python -m ... --help,
python -c "import package.cli").git status --porcelain=v1 -z inventory showing exactly which paths will move.After the move, rerun the same checks. If an import fails with
ModuleNotFoundError for a moved file, restore that file from the quarantine
immediately and record a restore receipt. Do not continue broad cleanup while
the readiness path is broken.
Run every relevant best-practices-* skill for the files a cleanup will change.
Use the previous cleanup receipt as the baseline:
$best-practices-python: use uv run, keep import
readiness green, require parse/compile checks, and include non-mocked sanity
evidence.$best-practices-skills: keep frontmatter valid,
update complies, and run the skill's sanity.sh or scoped tests.The final cleanup receipt must list checked, skipped_unchanged,
failed, and not_applicable counts by best-practices skill.
The final reviewer step is part of cleanup state, but browser reviewers are
shared external resources. If /ask no longer routes WebGPT, a browser-oracle
binding is stale, or Surf reports an active browser lock, write a blocker receipt
instead of improvising a substitute.
Required blocker receipt fields:
Allowed outcomes:
review_complete: clean/raw/meta reviewer artifacts exist and match the
sentinel or reviewer schema.review_blocked_external: no prompt submitted, or completion proof missing
because of a browser/provider/tool lock.review_not_applicable: the project has no reviewable surface and the
cleanup plan explains why.Forbidden outcomes:
Cleanup often exercises Docker rebuilds, service restarts, migrations, and health checks. When a UI or caller reports degraded status during such a window, classify the event before calling it an outage:
expected_maintenance: rebuild, restart, migration, or dependency startup is
in progress and operators know the service is temporarily unavailable.unexpected_degradation: 5xx, timeout, failed health, or import/runtime error
outside a declared maintenance window.healthcheck_mismatch: the service works through its API, but an orchestrator
such as Docker reports unhealthy.Project-state output should recommend a first-class maintenance/rebuild status when clients otherwise collapse expected maintenance into a generic 502 banner.
Nightly cleanup subagents must finish with a clean, relevant commit and push unless proof fails or the remote rejects the update. Stage only the coherent cleanup slice: sanity runner, documentation, browser-oracle registry, and reviewed moves/restores. Do not stage unrelated dirty worktree entries just to make the branch look clean.
Audio: .wav .mp3 .flac .ogg .m4a .aac .wma .opus
Video: .mp4 .avi .mkv .mov .webm .wmv .flv
Models: .bin .pt .pth .ckpt .safetensors .gguf .onnx
Archives: .tar .tar.gz .tgz .zip .7z .rar
Data: .parquet .arrow .h5 .hdf5 .npy .npz
Images: .tif .tiff .bmp .raw