Skip to content
Back to skills

Cleanup 1

ASecurity

Archive processed inbox items. Activate when user says "cleanup", "archive inbox". Moves session summaries to archive, keeps inbox clean for new items.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolsbash

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cleanup-1 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cleanup 1?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cleanup 1
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cleanup-1/badge)](https://www.skillsdirectory.com/skills/david-li0406-cleanup-1)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cleanup
description: Archive processed inbox items. Activate when user says "cleanup", "archive inbox". Moves session summaries to archive, keeps inbox clean for new items.
allowed-tools: Bash, Read
---

# Cleanup (Inbox Archive)

Archive processed inbox items to keep inbox clean for new work.

## When to Activate

- User says: "cleanup", "archive inbox", "clean inbox"
- After learn skill completes
- When inbox has accumulated processed items

## Process

### 1. Check Inbox Contents

```bash
ls -la inbox/
ls -la inbox/session-summaries/ 2>/dev/null
```

### 2. Archive Session Summaries

Move processed summaries to monthly archive:

```bash
# Create archive directory
mkdir -p inbox/session-summaries/archive/$(date +%Y-%m)

# Move files older than 1 hour (not currently being written)
find inbox/session-summaries/ -maxdepth 1 -name "*.md" -mmin +60 -exec mv {} inbox/session-summaries/archive/$(date +%Y-%m)/ \;
```

### 3. Clean Other Processed Items

```bash
# Remove ephemeral files after processing
rm -f inbox/role-review-needed.txt 2>/dev/null
```

### 4. Verify Clean State

```bash
ls inbox/
```

### 5. Report

```
Inbox cleanup complete.

Archived:
- [N] session summaries → inbox/session-summaries/archive/YYYY-MM/

Inbox ready for new items.
```

## Archive Structure

```
inbox/
├── session-summaries/
│   ├── archive/
│   │   ├── 2025-11/
│   │   └── 2025-12/
│   └── (empty - ready for new)
└── (clean)
```

## Safety

- Only archive files older than 1 hour
- Never delete session summaries (archive instead)
- Idempotent - safe to run multiple times

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…