Para Deep Clean
ASecurityRun a comprehensive cleanup pass on a vault - audits structural/housekeeping issues, normalizes README structure per a canonical template, closes documented open items by reading source PDFs, grooms over-grown action files back to the actionable frontier, and ensures status tables make each entity's state visible at a glance. Use when user asks for a "deep clean", "deep cleanup", "vault review", "vault cleanup", "cleanup pass", "groom my actions", "audit this vault", "check the vault without ...
- 4 stars
- 0 votes
- 0 copies
- 1 view
- Added September 23, 2026
Works with
Security analysis
100/100Pro scans all 7 files and shows the line behind each finding
npx -y skills add Vinedine/para-os --skill para-deep-clean --agent claude-codeAre you the author of Para Deep Clean?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vinedine-para-deep-clean)---
name: para-deep-clean
description: Run a comprehensive cleanup pass on a vault - audits structural/housekeeping issues, normalizes README structure per a canonical template, closes documented open items by reading source PDFs, grooms over-grown action files back to the actionable frontier, and ensures status tables make each entity's state visible at a glance. Use when user asks for a "deep clean", "deep cleanup", "vault review", "vault cleanup", "cleanup pass", "groom my actions", "audit this vault", "check the vault without changing anything", or types /para-deep-clean.
allowed-tools: Bash(python3 *), Bash(py *), Bash(git show *), Bash(git rm *), Bash(diff *), Bash(pwd *), Glob, Grep, Read, Edit, Write, AskUserQuestion, ToolSearch, mcp__claude_ai_Gmail__search_threads, mcp__claude_ai_Gmail__get_thread, mcp__google-workspace__search_gmail_messages, mcp__google-workspace__get_gmail_messages_content_batch, mcp__google-workspace__get_gmail_thread_content
argument-hint: '[phase1|phase2|phase3|phase4|audit] [--test]'
---
<!-- reviewed with: claude-opus-5-5 -->
# Deep clean
A phased cleanup of a PARA vault with per-entity `sources/`, against the vault's own `CLAUDE.md`.
## Arguments
| Arg | Behavior |
|---|---|
| *(none)* | Every phase, from Phase 1 |
| `phase1`, `phase2`, `phase3`, `phase4` | That phase only |
| `audit` | Phase 1 and Phase 4, observe only: writes nothing in the vault. The scan runs with `--record`, so the findings count lands under `$PARAOS_HOME` for the brief's health card |
| `ref=<git-ref>` | The committed para-os ref precondition 3 compares against instead of `origin/stable`, with any of the above. A working-tree path is refused. |
| `--test` | Test run, see [para-shared/test-run.md](../para-shared/test-run.md). |
## Preconditions
1. The vault has a `CLAUDE.md` documenting its structure, naming and "do not add" rules. Missing: stop and ask for one.
2. **Loose files in `triage/`** (`preconditions.triage_loose`) are a Phase 1 finding, never a stop; a `triage_readme` is flagged for deletion there.
3. **The vault is on the newest shipped template revision**, per `preconditions.template_marker` at the `ref=` argument, else `origin/stable`. Detection only: acting on the master's content is `/para-upgrade`'s job.
- **`behind`, or no vault marker:** stop and say to run `/para-upgrade` first.
- **`ahead`:** name both markers in one line and carry on against the vault's own `CLAUDE.md`. Never send it to `/para-upgrade`.
- **`no_clone`:** say the revision could not be verified, and carry on.
- **`ref_missing` on the default ref** (a clone with no `stable` branch): ask the operator to switch the clone to `stable`, and check again; not done, carry on as with no clone.
## Step 0 - Scan
Phases 1, 3 and 4 each open with the scan, per [para-shared/scripts.md](../para-shared/scripts.md): preconditions 2 and 3 plus that phase's candidates.
```bash
# Windows: py -3
python3 "<this skill's base directory>/scripts/clean_scan.py" --vault . --phase <1|3|4> [--record] [--today <date the operator named>] [--ref <git-ref>] [--clone <path>] [--templates-dir <dir>]... [--generated-dir <dir>]... [--dated-pattern <regex>] [--next-steps-heading <heading>]... > <scan output path>
```
Pass a flag for each value the vault declares: a folder holding templates or a script's output, a dated-name pattern for `archive/meetings/` other than an eight-digit prefix, next-steps headings other than `Next steps` and `Open items`.
## Phases
Each phase ends with a summary and waits for approval; the operator can amend, skip or stop. **Never auto-advance.**
### Phase 1 - Structural audit
Housekeeping findings into one issues table, lossless fixes first: [references/phase1-structural.md](references/phase1-structural.md).
### Phase 2 - README structure
The root README's four headings, then entity READMEs against the vault's declared shape, one worked example first: [references/phase2-readmes.md](references/phase2-readmes.md).
### Phase 3 - Open items and grooming
Close items from documents on file, surface what is time-sensitive, groom action files to the actionable frontier and prose to the content frontier: [references/phase3-open-items.md](references/phase3-open-items.md).
### Phase 4 - Final audit
Read-only, and the second half of `audit`. A scan row with `pass: false` is a residual issue unless Phase 1's exclusions or an operator decision this run accounts for it. A `pass: None` row's verdict is the agent's. Then check what no row covers:
- The root README passes the Step 1.1 shape check, every README follows the structure `CLAUDE.md` documents, and active entities' Open items hold only real work.
- Every contradiction Phase 3 found is corrected in the copies or is an open item on the owning entity.
- Status tables ("where do we stand": cost basis, stage, key numbers) are present and current, where the vault uses them.
- **`/para-daily-brief` runs** against the cleaned vault, terminal only, and its counts look right.
Report a clean state, or the residual issues with proposed fixes; where Phase 3 did not run, say that its contradiction check did not run.
## Output
A final summary: what was fixed, by phase; a status snapshot, one row per entity with its key numbers; the remaining open items of each active entity; suggestions for a next pass.
Last, unless the run was `audit`, run Step 0's script with `--stamp` in place of `--phase`: it dates the pass for the brief on every machine.
## Strict rules
**Everything in [para-shared/operating-discipline.md](../para-shared/operating-discipline.md) applies.** Specific to this skill:
- **Lossless changes batch** on the issues table: demotions, link repoints, renames, README normalisation. **Anything that closes, removes, strips a marker or deletes is one question per item**, per [para-shared/asking.md](../para-shared/asking.md), never a batch approval.
- **Read every README, and the source document a proposal rests on**, before proposing.
- **Respect the vault's "do not add" rules**: no per-entity templates, no derived outputs that drift from their source.
Files in this skill
- SKILL.md
- references/phase1-structural.md
- references/phase2-readmes.md
- references/phase3-open-items.md
- references/phase4-audit.md
- scripts/clean_scan.py
- scripts/test_clean_scan.py
Attribution
Related skills
View all in business →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.