bestax-optimize

bestax-optimize is a skill for Claude Code, Codex from allxsmith/bestax. It costs 102 tokens per session (2,080 once invoked), scanned A, original, MIT.

A process for reducing the size of CSS files in apps using @allxsmith/bestax-bulma, a Bulma-based styling library. It measures the built stylesheet both before and after each optimization.

In plain words
What is it for?
Use it to optimize production CSS by choosing a lighter built-in style, creating a modular Sass build, or removing unnecessary imports and icon assets.
Why use it?
It helps identify whether the stylesheet is actually too large and applies the least costly change that fits the size target.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to optimize production CSS by choosing a lighter built-in style, creating a modular Sass build, or removing unnecessary imports and icon assets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/allxsmith/bestax/bestax-optimize
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 allxsmith/bestax --skill bestax-optimize
Clone the repo
git clone --depth 1 https://github.com/allxsmith/bestax

Made for: Claude Code, Codex.

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 bestax-optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/allxsmith/bestax/bestax-optimize/github.svg)](https://agentmods.dev/skills/allxsmith/bestax/bestax-optimize)
Your own site
<a href="https://agentmods.dev/skills/allxsmith/bestax/bestax-optimize"><img src="https://agentmods.dev/badge/skills/allxsmith/bestax/bestax-optimize/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 bestax-optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/allxsmith/bestax/bestax-optimize"><img src="https://agentmods.dev/badge/skills/allxsmith/bestax/bestax-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,080 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00102 $0.02080
Opus 5.5 $0.00041 $0.00832
Sonnet 5.5 $0.00020 $0.00416
Haiku 4.5 $0.00010 $0.00208

Measured 13d ago against content hash c1ed75264c09, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bestax-optimize 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 13d 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/bestax-optimize/SKILL.md · 144 lines

How it starts

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

Optimizing CSS size with @allxsmith/bestax-bulma

The JS side is tree-shakable (the entire library is ~65 KB min+gzip). The stylesheet is not: a prebuilt flavor ships all of Bulma + the bestax extras regardless of which components the app renders. Judge stylesheet weight by the gzipped transfer size — never the raw dist/ number.

Always measure first

Run the production build, then measure the built CSS — raw and gzip:

npm run build
wc -c dist/assets/*.css            # raw bytes (what Vite reports)
gzip -c dist/assets/*.css | wc -c  # transfer bytes (what users download)

Re-measure after every step below and report the before/after delta (raw + gzip). Never claim a saving without a number.

⚠️ ~800 KB raw is ~82 KB over the wire. Seeing ~800 KB of CSS in dist/ is expected with the default flavor, not a build misconfiguration — servers and CDNs gzip/brotli by default. If the gzip number is already within the app's budget, say so and stop: "your CSS is already fine" is a valid, honest outcome.

Decision flow

Cheapest first. Use only the library's own shipped CSS builds and SCSS sources — do not add third-party build plugins (no CSS purgers/post-processors).

  1. Flavor switch — one-line import change, minutes (up to ~15 KB gzip).
  2. Modular Sass build — small @use file, the biggest honest win.
  3. Import & icon-asset hygiene — minor; JS and icon fonts, not the Bulma CSS.

Lever 1 — lighter prebuilt flavor

Swap the single CSS import (in src/main.tsx / src/main.jsx) between the shipped flavors. Measured sizes drift slightly between releases — hence measure:

Flavor Import Raw Gzip
complete import '@allxsmith/bestax-bulma/bestax.css'; ~800KB ~82 KB
no-dark-mode import '@allxsmith/bestax-bulma/versions/bestax-no-dark-mode.css'; ~680KB ~70 KB
no-helpers import '@allxsmith/bestax-bulma/versions/bestax-no-helpers.css'; ~595KB ~67 KB

Read the full file on GitHub · 144 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 13d ago Changed · +2 lines c1ed75264c09
  2. 15d ago Changed · +1 lines 3300ad0a415c
  3. 21d ago Changed 3629be3dd62d
  4. 22d ago Changed · +2 lines 33cfc265ba67
  5. 1mo ago Changed · +2 lines 83f1ddcde2db
  6. 1mo ago Changed · +4 lines e3287182b19a
  7. 1mo ago Changed · +1 lines 972cc703b910
  8. 2mo ago Changed 434953a2d33e
  9. 3mo ago First seen · 132 lines · 102 tokens per session scan A 64b313d1d9c5

Subscribe to this mod's changes

bestax-optimize is a skill published in the GitHub repository allxsmith/bestax (15 stars, last pushed today), licensed MIT. It adds 102 tokens to every session and 2,080 once invoked, about $0.0004 per session on Opus 5.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-30.

Related

bestax-optimize compared with skills from other repositories

bestax-optimize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bestax-optimizeallxsmith/bestaxSkill15todayMITA102Claude Code, Codex
animal-island-ui-styleguokaigdg/animal-island-uiSkill5.2ktodayMITA113Claude Code, Codex
fast-typescript-checkinternet-development/www-sacredSkill1.6k14d agoMITA84Claude Code, Codex
port-sacred-terminal-ui-to-typescript-cliinternet-development/www-sacredSkill1.6k14d agoMITA0Claude Code, Codex
reviewing-personhog-protocolPostHog/posthogSkill41ktodaynoneA111Claude Code, Codex
modeling-revenue-metricsPostHog/posthogSkill41ktodaynoneA231Claude Code, Codex
django-startup-timePostHog/posthogSkill41ktodaynoneA104Claude Code, Codex