# Jessy Cleanup

> Internal cleanup stage. Prune old / acted-on rows from ~/.jessy/jessy.db using config.yaml limits.

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

---


# jessy-cleanup

Thin wrapper around `${CLAUDE_PLUGIN_ROOT}/scripts/db.sh cleanup`. Reads
`cleanup` section from `~/.jessy/config.yaml`:

- `cleanup.max_age_days`
- `cleanup.max_rows`

Then runs:

```
${CLAUDE_PLUGIN_ROOT}/scripts/db.sh cleanup <max_age_days> <max_rows>
```

Print the script's `pruned X; now Y rows` output as-is.

## Safety

`${CLAUDE_PLUGIN_ROOT}/scripts/db.sh cleanup` only deletes rows where
`user_action IS NOT NULL`.
Rows the user has not yet seen (`user_action IS NULL`) are never
touched, regardless of age or row count. No confirmation prompt
needed — the operation is bounded by config and excludes unseen rows.

## Errors

If `~/.jessy/config.yaml` is missing the `cleanup` section, fall back to
defaults: `max_age_days=30`, `max_rows=5000`.

