rn-asset-hygiene

rn-asset-hygiene is a skill for Claude Code from AndrewDongminYoo/rn-agents-kit. It costs 72 tokens per session (1,792 once invoked), scanned A, original, Apache-2.0.

A review and cleanup tool for assets in React Native apps, which are mobile apps built with JavaScript or TypeScript.

In plain words
What is it for?
Use it to audit image, SVG, and Lottie files, consolidate asset paths, and generate typed references after approval.
Why use it?
It helps find unused images and other files, scattered asset paths, and fragile string-based references before they create maintenance or bundle-size problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rn-agents-kit plugin — 10 skills shipped together

Good fit Use it to audit image, SVG, and Lottie files, consolidate asset paths, and generate typed references after approval.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andrewdongminyoo/rn-agents-kit/rn-asset-hygiene
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AndrewDongminYoo/rn-agents-kit --skill rn-asset-hygiene
Clone the repo
git clone --depth 1 https://github.com/AndrewDongminYoo/rn-agents-kit

Made for: Claude Code.

Or install rn-agents-kit, the plugin that ships this one along with the rest of its 10 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rn-asset-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/andrewdongminyoo/rn-agents-kit/rn-asset-hygiene/github.svg)](https://agentmods.dev/skills/andrewdongminyoo/rn-agents-kit/rn-asset-hygiene)
Your own site
<a href="https://agentmods.dev/skills/andrewdongminyoo/rn-agents-kit/rn-asset-hygiene"><img src="https://agentmods.dev/badge/skills/andrewdongminyoo/rn-agents-kit/rn-asset-hygiene/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rn-asset-hygiene

Your own site · 80×15
<a href="https://agentmods.dev/skills/andrewdongminyoo/rn-agents-kit/rn-asset-hygiene"><img src="https://agentmods.dev/badge/skills/andrewdongminyoo/rn-agents-kit/rn-asset-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,792 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.01792
Opus 5 $0.00036 $0.00896
Sonnet 5 $0.00014 $0.00358
Haiku 4.5 $0.00007 $0.00179

Measured 11d ago against content hash 734a4f6bf6f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

rn-asset-hygiene scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/rn-asset-hygiene/SKILL.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RN Asset Hygiene — Audit & Tidy React Native Assets

Overview

Drives the rn-typed-assets CLI to (1) report unreferenced/unused assets and scattered asset paths, and (2) optionally consolidate those paths and migrate brittle require('../../assets/x.png') strings into a typed registry. This skill is the judgment + safety layer; rn-typed-assets does the deterministic scanning, codegen, and rewriting. Nothing in your source or assets changes until you approve itaudit is read-only, and the registry + manifest that generate writes land under src/generated/.

When to Use

  • "find unused images/assets", "clean up asset paths", "is this asset still bundled?"
  • Onboarding a legacy RN app whose assets/ folder has grown out of control
  • Trimming dead weight from the bundle before a release
  • Migrating string require() asset references to type-safe constants

Prerequisites

  • A React Native project using TypeScript (the audit uses the TS compiler API; typescript is a peer dependency of rn-typed-assets)
  • A clean git working tree before any mutation step (steps 5+)
  • Metro does not need to be running — this is static analysis

Quick Steps

1 — Detect the asset layout & SVG setup

ls src/assets 2>/dev/null                                   # where assets live
grep -R "react-native-svg-transformer" metro.config.* 2>/dev/null  # decides SVG config below

2 — Configure SVG typing (no install needed)

Every rn-typed-assets command below runs through npx, so auditing adds nothing to package.json — installing it as a devDependency is part of adopting the tool (see Distribution), not of taking a first look.

If the project renders SVGs, create rn-typed-assets.config.js (see SVG Type Configuration) so the generated registry types them correctly. Skip it for an images-only project or if the file already exists.

3 — Generate the manifest (writes generated files only; does not touch source)

npx rn-typed-assets generate

Read the full file on GitHub · 167 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 167 lines · 72 tokens per session scan A 734a4f6bf6f4

Subscribe to this mod's changes

rn-asset-hygiene is a skill published in the GitHub repository AndrewDongminYoo/rn-agents-kit (2 stars, last pushed 7d ago), licensed Apache-2.0. It adds 72 tokens to every session and 1,792 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories