filesystem-lifecycle
Audit, classify, reclaim, and prevent regrowth of local filesystem cruft and agent-workspace storage.
Skill by Tom-R-Main
Chalk Labs
Need help deploying filesystem-lifecycle?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/tom-r-main-filesystem-lifecycle
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security, marketing, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/filesystem-lifecycle
What's inside
- Skill name
filesystem-lifecycle- Description
- Audit, classify, reclaim, and prevent regrowth of local filesystem cruft and agent-workspace storage. Use when asked what consumes disk, what can be safely deleted, to recover a target amount of space, to inspect or retire Git/Codex worktrees, to clean generated artifacts or inactive app caches, or to diagnose recurring storage growth on macOS or Linux. Protect active sessions, processes, dirty or unique Git work, credentials, user documents, databases, and ambiguous paths; default to a read-only manifest unless the user explicitly requested bounded mutation.
- License
- MIT
- Instructions
- 189 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (13)
- SKILL.md
- openai.yaml · agents/
- codex-storage.md · references/
- docker.md · references/
- generated-artifacts.md · references/
- git-worktrees.md · references/
- linux-filesystems.md · references/
- macos-apfs.md · references/
- object-model.md · references/
- owner-adapters.md · references/
- safety-invariants.md · references/
- fs_lifecycle.py · scripts/
- test_fs_lifecycle.py · tests/
SKILL.md (first lines)
# Filesystem lifecycle The purpose is useful storage recovery: investigate what occupies space, establish what can be cleared, and execute authorized reclamation. Combine owner metadata, retained recovery inputs, content checks and liveness evidence; a path name or age alone is insufficient. Use Python 3.11+ and the standard-library CLI at `scripts/fs_lifecycle.py`, resolving paths relative to this skill directory. ## Choose the entry point | Need | Command / mode | Authority | |---|---|---| | Explain disk or inode pressure | `doctor` | Bounded observation | | Inventory removal candidates | `audit` | Read-only metadata; explicit output only | | Review saved evidence | `report` | Reads the supplied record | | Explain growth since a prior run | `compare` | Reads supplied inventories and receipts | | Inspect installed Mole observations | `observe` | Optional, explicit observation operation | | Freeze a bounded candidate set | `select` | Produces a plan, never deletes | | Reclaim or retire a worktree | `apply` | Explicit authorized IDs/selection plus fresh checks | | Diagnose recurring growth / PREVENT | `doctor`, `compare`, owner references | Recommend a cause-specific change; never activate it silently | Default to observation. A current explicit bounded reclamation goal can authorize its exact safe set; otherwise obtain approval of the manifest's exact IDs or paths. Do not ask again for already-authorized actions. General cleanup does not authorize branches, history, containers, volumes, snapshots, user data, software installation, service restarts or newly discovered candidates. Passive means user-invoked: no scheduler, background monitor, machine guard, global admission rule or automatic settings change. It does not mean audit-only when the user has authorized cleanup. A lease expiry or catalog match alone does not create deletion authority. ## Start bounded ```bash SKILL_DIR="<directory-containing-this-SKILL.md>" python3 "$SKILL_DIR/scripts/fs_lifecycle.py" doctor \ --root /absolute/project --volume /absolute/project --format markdown python3 "$SKILL_DIR/scripts/fs_lifecycle.py" audit \ --root /absolute/project --repo /absolute/repository \ --volume /absolute/project --output /explicit/output/manifest.json python3 "$SKILL_DIR/scripts/fs_lifecycle.py" report \ --input /explicit/output/manifest.json --format markdown ``` Use explicitly named roots; a capacity volume is not permission to recurse through it. Never recursively scan `/`, credential stores, user-document bodies, cloud mounts or backups. Add a separate mount only as a separately authorized root. Do not read `.env`, keys, vault data, browser authentication, mail, photos or document contents. Inspect only the minimum allowlisted owner metadata. Preserve partial, inaccessible and deferred coverage; missing evidence is not zero usage. Read [diagnostics](references/diagnostics.md) for bounded traversal, accounting and the catalog/report contract. Read [macOS/APFS](references/macos-apfs.md) or [Linux](references/linux-filesystems.md) for platform limits. ## Classify before selecting - `safe_now`: complete evidence establishes inactivity, recovery, no unique state, owner invariants and the authorized boundary. - `safe_after_active_thread_closeout`: otherwise disposable but referenced by a live process, open handle, owner or current task root. - `retain`: source, user state, main checkout, dirty/unique/locked Git state, tracked outputs or a deliberately preserved resource. - `unknown`: unavailable recovery, inspection failure, incomplete visibility, drift, ambiguity or unsupported adapter. Discovery is broader than mutation. New catalog entries are inventory-only until qualified; existing recovery adapters can establish removal eligibility. Known-cache names, dependency lockfiles and project markers are inputs to those checks, not blanket permission or blanket exclusions. Recovery can require downloads or rebuilding; offline or bit-for-bit reproduction is not required for disposable artifacts. Treat `unknown` as an investigation result with a concrete reason and next bounded check. Inspect the relevant owner metadata, qualify a smaller resource where supported, or identify the missing adapter. Continue other qualified candidates toward the user's target. Do not turn one unsupported cache into a ban on caches or dependency environments, and do not hand-edit classifications or bypass the executor. Load [owner adapters](references/owner-adapters.md) before changing eligibility, [generated artifacts](references/generated-artifacts.md) for build output, [Git worktrees](references/git-worktrees.md) before retirement, [Docker](references/docker.md) for container storage, and [Codex storage](references/codex-storage.md) for task history. Prefer the resource owner's supported archive/retirement operation where one manages the checkout; do not bypass owner metadata with generic recursion. ## Freeze, revalidate, apply Before any deletion or executor change, read [safety invariants](references/safety-invariants.md) and [object model](references/object-model.md). 1. Discover within the authorized roots and filesystem. Finish traversal before the liveness observation. 2. Freeze identity, evidence, recoverability and the machine-checkable authorization envelope. Record exact IDs, order, target and allocated-byte ceiling. Checksums detect changes; they do not authenticate human consent. 3. Select measured `safe_now` candidates without overlap. Allocated totals guide selection; they do not promise physical recovery. 4. Immediately before each action, recheck identity, mount boundary, owner/recovery state and liveness. Recheck owner-process vetoes as well as handles and CWDs. Incomplete evidence fails closed. 5. Persist operation intent before mutation. Reserve the candidate budget when dispatch starts. Use the owning operation or qualified descriptor-relative executor. 6. Persist the result, including partial or uncertain effects. Stop and reconcile uncertainty before retry. Never force through an owner lock, permission failure or unsupported primitive. 7. Verify absence, preserved owner state and fresh free bytes on the bound filesystem. Stop at target, ceiling or approved-set exhaustion. A task in one worktree protects that workspace's generated artifacts, not every nested or sibling worktree merely sharing an ancestor. Exact/descendant task roots, CWDs, handles and owner checks still veto deletion. Protect active main dependencies even when reproducible. For a separately authorized writer pause, identify the initial process set and detect new/changed writers; do not silently refresh the baseline to accept them. This is a scoped procedure, never a reintroduced machine guard. Examples, only after the stated authorization exists: ```bash python3 "$SKILL_DIR/scripts/fs_lifecycle.py" select \ --manifest /explicit/output/manifest.json --output /explicit/output/selection.json python3 "$SKILL_DIR/scripts/fs_lifecycle.py" apply \ --manifest /explicit/output/manifest.json --id artifact:approved-id \ --authorization-source manifest_approval --execute --ack 'DELETE EXACT SAFE-NOW PATHS' ``` A recorded goal authorization can use `--selection` with `--authorization-source goal_authorization`. A selection cannot substitute for manifest approval. Old mutation schemas require a fresh audit, not silent migration. Do not hand-edit a candidate into `safe_now`. ## Explain recurrence ```bash python3 "$SKILL_DIR/scripts/fs_lifecycle.py" compare \ --before /explicit/output/before.json --after /explicit/output/after.json \ --receipt /explicit/output/apply.json --format markdown ``` Read [recurrence and observation](references/recurrence-and-observation.md) before comparison or optional Mole use. Recreated requires a successful prior removal receipt; missing from partial coverage means not assessed. Recommend the smallest evidence-supported prevention change. Do not automatically re-delete a resource or modify the skill from run history. ## Report and finish Lead an apply report with fresh filesystem free-space change, then actions, skips, partial effects, uncertainty and shortfall. Present the compact resource table and coverage gaps for diagnosis. Never call candidate-size sums reclaimed space. Keep recoverability, recovery cost and physical reclaim confidence separate. Concurrent writes and shared blocks limit causal attribution. When the user changes priority, stop expanding discovery, reconcile any in-flight action and record unresolved work. Validation and maintenance follow [verification](references/verification.md); tests use owned temporary fixtures, never live cleanup targets.
From Tom-R-Main/siftable-skills, MIT.
More from Tom-R-Main/siftable-skills
- 0.592score
footwork-tools
Tom-R-Main
Equip an agent with observation and action tools for browser UI, native Mac apps, terminals/services, and saved artifacts.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
pgvector-postgres
Tom-R-Main
Design, review, migrate, measure, or debug PostgreSQL vector retrieval with pgvector.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
paper-design
Tom-R-Main
Create, inspect, edit, import, export, and hand off product or visual designs through Paper and its MCP server.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
grok-guide
Tom-R-Main
Use Grok 4.5 as an explicit strategic control plane above Codex for plan, replan, and completion-audit lifecycles.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
plan
siftable
Produce a visual, grounded plan for an objective.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
go
Tom-R-Main
Implement, review, debug, test, migrate, and optimize Go.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
c-systems-programming
Tom-R-Main
Implement, debug, and review C systems software.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
css
Tom-R-Main
Implement, debug, and review CSS and Tailwind styling.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
opengl-c-graphics
Tom-R-Main
Build, debug, review, and optimize core-profile OpenGL in C.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
mermaid
siftable
Create Mermaid diagrams and render them through an available host renderer.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
cloud-environment-runtime
Tom-R-Main
Establish the selected cloud task's execution, network, and credential context before using cloud tools.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
generating-design-references
Tom-R-Main
Generate and critique a design-reference image when no existing visual precedent fits.
SkillAFreshness: A★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 12, 2026 (19 days ago)
- Last release
- Aug 14, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Tom-R-Main/siftable-skills
- Website
- siftable.io
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Tom-R-Main
- 0.592score
paper-design
Tom-R-Main
Create, inspect, edit, import, export, and hand off product or visual designs through Paper and its MCP server.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
pgvector-postgres
Tom-R-Main
Design, review, migrate, measure, or debug PostgreSQL vector retrieval with pgvector.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
grok-guide
Tom-R-Main
Use Grok 4.5 as an explicit strategic control plane above Codex for plan, replan, and completion-audit lifecycles.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
footwork-tools
Tom-R-Main
Equip an agent with observation and action tools for browser UI, native Mac apps, terminals/services, and saved artifacts.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
css
Tom-R-Main
Implement, debug, and review CSS and Tailwind styling.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
go
Tom-R-Main
Implement, review, debug, test, migrate, and optimize Go.
SkillAFreshness: A★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get filesystem-lifecycle running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
filesystem-lifecycle skill. Agent Mart. https://agentmart.dev/skills/tom-r-main-filesystem-lifecycle (last updated 2026-10-24)