Skip to content
Back to skills

Binary Size

ASecurity

"Measure, compare, and reduce ExecuTorch binary size using

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolspythonbash

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill binary-size --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Binary Size?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Binary Size
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-binary-size/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-binary-size)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: binary-size
description: "Measure, compare, and reduce ExecuTorch binary size using
  size-optimized builds, stripped binaries, bloaty/nm analysis, and safe
  reporting constraints."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# binary-size

Use this sub-skill when the user asks about ExecuTorch binary size, stripped runtime size, `size_test`, `size_test_all_ops`, `bloaty`, linker symbols, `EXECUTORCH_OPTIMIZE_SIZE`, or size-regression workflows.

## Workflow

1. Establish a baseline from a clean source checkout and release/size-optimized build.
2. Measure stripped binaries, not only unstripped debug outputs.
3. Use symbol/section analysis to identify `.text`, `.rodata`, static initializers, logging strings, and template bloat.
4. Make one logical change at a time and record before/after numbers.
5. Run relevant correctness tests; do not trade functionality or latency for unverified size savings.

## References and Helper

- Read [binary-size workflow](references/binary-size-workflow.md) for measurement and analysis details.
- Read [troubleshooting](references/troubleshooting.md) for misleading size results and tool issues.
- Compare two files safely:

```bash
python scripts/compare_binary_sizes.py --before old.bin --after new.bin
```

Files in this skill

  • SKILL.md1.3 KB
  • references/binary-size-workflow.md1.2 KB
  • references/troubleshooting.md859 B
  • scripts/compare_binary_sizes.py1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.