# Cleanup Guide

> This skill is automatically called by `/forge-editor:wizard validate` via W036 check. Use when this capability is needed.

- Skill: `tomevault-io/cleanup-guide` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/cleanup-guide`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/cleanup-guide/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/cleanup-guide

---

---
name: cleanup-guide
description: Detect unnecessary files and provide cleanup recommendations
allowed-tools: ["Read", "Glob", "Grep", "Bash"]
---

# Cleanup Guide

Detect and clean unnecessary files in plugin/project directories.

## File Categories

| Category | Risk | Examples | Action |
|----------|------|----------|--------|
| SENSITIVE | HIGH | `.env`, `*.pem`, `credentials.json` | Immediate gitignore + secret rotation |
| DELETE | MEDIUM | `*.log`, `__pycache__`, `node_modules` | Remove with cleanup commands |
| GITIGNORE | LOW | `.DS_Store`, `.idea/` | Add to .gitignore |

## Quick Scan

```bash
# Run validation with W036 check
python3 scripts/validate_all.py . 2>&1 | grep -A 50 "W036"
```

## Detailed Patterns

See `references/file-patterns.md` for complete pattern list.

## Auto-Cleanup Commands

After identifying issues, generate cleanup script:

```bash
# Logs
rm -f *.log firebase-debug.log npm-debug.log

# Caches
rm -rf __pycache__ .pytest_cache .mypy_cache .cache

# Large dirs (careful!)
rm -rf node_modules

# Update gitignore
cat >> .gitignore << 'EOF'
*.log
__pycache__/
.DS_Store
.env
EOF
```

## Integration

This skill is automatically called by `/forge-editor:wizard validate` via W036 check.

---
> Source: [chkim-su/forge-editor](https://github.com/chkim-su/forge-editor) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-04 -->

