cleanup

Purge Docker, APT, and build caches with dry-run validation.

10|3|Updated May 26, 2026
One-click install
npx skills add https://github.com/agentik-os/OmegaOS --skill cleanup-agentik-os
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup
Source: https://github.com/agentik-os/OmegaOS/tree/main/skills/cleanup
Command: npx skills add https://github.com/agentik-os/OmegaOS --skill cleanup-agentik-os

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docker, lsof, git, omega, and includes scripts (resource) components.

What problem does it solve?

Nettoyage intelligent du VPS/projets — analyse disque, fermeture des sessions de travail détachées, purge sûre (caches Docker/APT/journal, résidus /tmp, caches Bun/npm/go), purge des artefacts de build rebuildables (target/, Rust, node_modules, .next) avec garde-fou anti-session-active, et audit de cohérence de la documentation des projets.

Core Features & Use Cases

  • Analyse disque et détection des zones sensibles et résidus à nettoyer sans toucher aux sessions actives ni à la doc canon.
  • Purge des caches Docker/APT/journal, résidus /tmp, caches Bun/npm/go et artefacts de build rebuildables (target, node_modules, .next) avec garde-fous.
  • Audit documentaire par projet via doc-audit pour classer en PROTECTED / SCRATCH / REVIEW et proposer des actions.

Quick Start

Passez en mode dry-run pour voir ce qui serait supprimé, puis lancez le processus de nettoyage avec les scripts décrits.

Frequently Asked Questions about cleanup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely clean Docker and APT caches on a VPS without breaking active sessions?

To purge Docker and APT caches safely, run a disk cleanup skill that applies guardrails against active sessions. It uses an idle-check script to detect detached workloads, ensuring safe cache purges and residue removal without disrupting running processes.

What is the best way to free up disk space by removing rebuildable build artifacts like node_modules and target directories?

Freeing up disk space by removing rebuildable build artifacts involves purging node_modules, target/, and .next directories. A dedicated clean-builds script identifies and removes these rebuildables, reclaiming storage while preserving your project source code and configurations.

Can I perform a dry-run disk analysis before purging /tmp residues and Bun/npm/go caches?

Yes, you can perform a dry-run disk analysis before purging /tmp residues and Bun/npm/go caches. The analyze script scans disk usage and identifies sensitive zones, showing exactly what would be deleted before executing the actual safe-clean process.

Does this disk cleanup tool support documentation consistency audits for software projects?

Yes, this disk cleanup tool supports documentation consistency audits via a doc-audit script. It classifies project documentation into PROTECTED, SCRATCH, and REVIEW categories, proposing targeted actions to maintain documentation coherence alongside standard disk cleanup routines.

What limitations or precautions should I consider when cleaning up Docker images and journal logs?

When cleaning up Docker images and journal logs, the main precaution is avoiding active session disruption. The cleanup process enforces guardrails and requires interactive confirmation for sensitive items, preventing accidental deletion of critical system logs or running container data.