api-and-interface-desi…
Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints,…
Systematic VPS cleanup — analyze files, categorize by importance, safely delete temporary/old data to free disk space
$ npx -y skills add kevinnft/ai-agent-skills --skill vps-cleanup --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/vps-cleanupContext preview
The summary Claude sees to decide when to auto-load this skill.
Systematic VPS cleanup — analyze files, categorize by importance, safely delete temporary/old data to free disk space
name: vps-cleanup description: Systematic VPS cleanup — analyze files, categorize by importance, safely delete temporary/old data to free disk space tags: [vps, cleanup, disk-space, maintenance, linux] related_skills: [vps-security-hardening] origin: unknown source_license: see upstream language: en
Systematic approach to cleaning up VPS disk space — analyze files, categorize by importance, safely delete temporary/old data without losing critical files.
# Check disk usage df -h / # Analyze home directory cd /home/ubuntu du -sh * 2>/dev/null | sort -h # Check large directories du -h --max-depth=1 | sort -h | tail -20
For each file/directory, assess:
| Category | Keep? | Examples | |----------|-------|----------| | **Backups** | ✅ Keep | `*.zip`, `*.tar.gz` with "backup" in name | | **System** | ✅ Keep | `snap/`, `.cache/`, `.local/` | | **Active projects** | ✅ Keep | Current development work | | **Temporary workspaces** | ❌ Delete | Analysis folders, test directories | | **Old archives** | ❌ Delete | Extracted folders + their `.tar.gz` (duplicates) | | **Generated outputs** | 🟡 Optional | PNGs, reports (if source exists) | | **Source files** | 🟡 Optional | `.html` if `.png` generated, `.drawio` if exported |
Create analysis table:
files = {
'file.zip': {
'size': '135M',
'type': 'backup',
'keep': True,
'reason': 'Important backup'
},
'temp-workspace/': {
'size': '538M',
'type': 'workspace',
'keep': False,
'reason': 'Temporary analysis, reports done'
},
# ... more files
}Calculate:
Show user:
1. **Summary stats** (total, keep, delete, %) 2. **Keep list** (sorted by size, with reasons) 3. **Delete list** (sorted by size, with reasons) 4. **Recommendations** (phased approach)
**Format:**
✅ KEEP (IMPORTANT) 135M backup.zip Important backup 2.4M snap/ System directory ❌ CAN DELETE (NOT IMPORTANT) 538M temp-workspace/ Temporary, work done 1.2M diagrams/ PNGs generated
**CRITICAL:** Always confirm before deleting, especially for:
**Ask:**
# Delete directories rm -rf ~/temp-workspace/ rm -rf ~/old-project/ # Delete files rm ~/old-archive.tar.gz rm ~/report.md # Verify ls -lh ~/ df -h /
**Safety checks:**
When user says "delete semua yang gak penting" or "delete all unimportant":
**DO:**
**DON'T:**
When presenting cleanup plan, user may respond:
**User's decision-making pattern:** 1. Asks for analysis → wants to see what's unused 2. Asks "aman?" → wants safety confirmation 3. Says "ya" → ready to execute 4. Expects immediate action after confirmation (no further questions)
**Projects (e.g., oh-my-china/):**
🟡 AMBIGUOUS: oh-my-china/ (340 MB) Type: Project Question: "Masih aktif develop atau cuma testing?" If active → KEEP If testing → DELETE
**Generated outputs:**
🟡 OPTIONAL: diagram.png (4 MB) Type: Output Question: "Masih perlu atau gak?" If needed → KEEP If done → DELETE
**Patterns:**
**Indicators:**
**Example:**
hermes-analysis/ # 538 MB ├─ 10 cloned repos ├─ ANALYSIS_REPORT.md (done) └─ install script (used) → DELETE (reports done, repos installed elsewhere)
**Pattern:** Both `.tar.gz` AND extracted folder exist
**Example:**
gmail_research/ # 100 KB (extracted) gmail_research_2026-05-01.tar.gz # 20 KB (archive) → DELETE BOTH (duplicate, old data)
**Patterns:**
**Example:**
VPS_SECURITY_AUDIT_REPORT.md # 12 KB VPS_SECURITY_HARDENING_REPORT.md # 12 KB → DELETE (hardening done, info applied)
**Pattern:** Source exists, output generated
**Example:**
ai-promo.html # 16 KB (source) ai-promo.png #
191 attribution-first agent skills for Hermes Agent, Claude Code, Cursor — one installer, 28 categories, searchable catalog. See NOTICE for upstream attribution.
Repo: kevinnft/ai-agent-skills
Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints,…
Tests in real browsers. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze…
Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test…
Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to…
Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend…
Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure…