OpenParable
Skip to content
← Back to skills

Cleanup

Testing & Quality
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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/LedgerHQ/ledger-live/blob/HEAD/.agents/skills/cleanup/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cleanup, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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):

    pnpm <app> lint --quiet --fix
    pnpm <app> prettier
    pnpm <app> typecheck
    
  3. Commit fixes (if any):

    git add -A && git commit -m "chore: fix lint and format issues"
    

Summary Template

## Cleanup Summary

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