# Cleanup

> Cleanup is an Agent Skill for testing & quality published in the LedgerHQ/ledger-live repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Run lint, format, and typecheck on modified files

- Skill name: `cleanup`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/LedgerHQ/ledger-live/blob/HEAD/.agents/skills/cleanup/SKILL.md
- Repository: LedgerHQ/ledger-live (604 GitHub stars when collected)

## SKILL.md

# Cleanup

Run lint, format, and typecheck on modified files.

## Process

1. **Identify apps**: `git diff --name-only develop..HEAD`
   - `apps/ledger-live-desktop/` → desktop
   - `apps/ledger-live-mobile/` → mobile
   - `libs/` → both

2. **Run commands** (from repo root):
   ```bash
   pnpm <app> lint --quiet --fix
   pnpm <app> prettier
   pnpm <app> typecheck
   ```

3. **Commit fixes** (if any):
   ```bash
   git add -A && git commit -m "chore: fix lint and format issues"
   ```

## Summary Template

```markdown
## Cleanup Summary

- **Lint**: ✅ / ⚠️ Fixed (X files)
- **Format**: ✅ / ⚠️ Fixed (X files)
- **TypeScript**: ✅ / ❌ X errors
```

---

Source: https://www.openparable.com/skill/testing-quality/cleanup (OpenParable). Cite the canonical URL above.
