# Keybase Unused Assets

> Keybase Unused Assets is an Agent Skill for development published in the keybase/client repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when finding or deleting unused image/icon assets in the Keybase client codebase (icons, illustrations, iconfont SVGs).

- Skill name: `keybase-unused-assets`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/keybase/client/blob/HEAD/skill/keybase-unused-assets/SKILL.md
- Repository: keybase/client (9,231 GitHub stars when collected)

## SKILL.md

# Keybase Unused Assets

Find and delete PNG icons, illustrations, and iconfont SVGs no longer referenced in any TypeScript source.

## Finding Unused Assets

```bash
./skill/keybase-unused-assets/find-unused-assets.sh
```

Scans all `.ts`/`.tsx` files (excluding generated icon constants) and reports assets whose name — or any prefix of it — isn't referenced. Prefix matching catches dynamically-constructed names like `` `icon-phone-revoke-background-${n}` ``.

Light/dark icon pairs (`icon-foo` / `icon-dark-foo`) are treated as a unit: if either is referenced, both are kept.

## Deleting Unused Assets

Pass asset names (without extension) to the delete script:

```bash
./skill/keybase-unused-assets/delete-unused-assets.sh icon-foo-bar illustration-welcome
```

This removes all variants (`@2x`, `@3x`, etc.) for each name across all asset directories, then runs `yarn gen:icon-constants` to regenerate the icon constants files.

---

Source: https://www.openparable.com/skill/development/keybase-unused-assets (OpenParable). Cite the canonical URL above.
