troy: Skill for Cursor

.cursor/skills/minify/SKILL.md

minify is a skill for Cursor from sybrew/troy. It costs 65 tokens per session (601 once invoked), scanned A, original, MIT.

A minification procedure for rebuilding compressed JavaScript and CSS files from their readable source files. Minification makes web files smaller by removing unnecessary formatting and text.

In plain words
What is it for?
Use it after editing the specified uncompressed JavaScript or CSS library files, or when the user asks to minify them.
Why use it?
It avoids hand-editing generated files and provides a defined process for updating compressed assets after source changes.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is sybrew/troy's own configuration. It tells Cursor how to work on troy itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything troy configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sybrew/troy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sybrew/troy/main/.cursor/skills/minify/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sybrew/troy

Made for: Cursor.

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 minify

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sybrew/troy/minify"><img src="https://agentmods.dev/badge/skills/sybrew/troy/minify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 601 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.00065 $0.00601
Opus 5.5 $0.00026 $0.00240
Sonnet 5.5 $0.00013 $0.00120
Haiku 4.5 $0.00006 $0.00060

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

Security

Grade A, and why

minify 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/minify.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.cursor/skills/minify/SKILL.md · 57 lines

What it actually says

Minify Troy Server JS and CSS

Edit unminified sources only. Never write *.min.js or *.min.css by hand. Never search this repo for uglify, terser, or babel-minify. Do not create, edit, read, grep, search, or git diff *.min.js or *.min.css, including after minify exit code 0.

Permission

Read .local/minify/permission.txt with an explicit path before cloning engines. Grep/Glob cannot see .local/.

Never invent True or False. Never write this file unless the user has replied with both flags.

Format is always two lines (True or False per line, never guessed):

JS=True|False
CSS=True|False
  • If the file does not exist, prompt. If you cannot prompt and no permissions exist, skip minification altogether and ask at the end of the chat.
  • After the user replies with both flags, create the file from that reply. Always write both lines.
  • If a flag is False, do not prompt again, and do not clone or minify that type.
  • If a flag is True, proceed. After a permitted import, keep that flag True.

The minify script reads this file. A missing file is a hard stop. A False flag skips that type even if the engine is already cloned.

Engines

Public source of truth:

If permission is True and run.js is missing, clone that repo and run npm install in it. Do not copy engines from elsewhere; clone the public repos above.

Override paths with BABEL_TSF_DIR and CLEANCSS_TSF_DIR only when the user sets them.

Command

From the repo root:

node .cursor/skills/minify/scripts/minify.js --js
node .cursor/skills/minify/scripts/minify.js --css
node .cursor/skills/minify/scripts/minify.js

--js and --css limit the run. No flags minifies both.

If the script exits non-zero, fix the failure. Do not hand-write min files as a fallback.

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. 2d ago First seen · 57 lines · 65 tokens per session scan A 596ef70c52e5

Subscribe to this mod's changes

minify is a skill published in the GitHub repository sybrew/troy (55 stars, last pushed 14d ago), licensed MIT. It adds 65 tokens to every session and 601 once invoked, about $0.0003 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-10-26.

Related

Other skills, from other repositories

bio-link-deployer

Create a Linktree-style bio link hub page as a single self-contained HTML file. Triggers on: "create a bio link page", "make a linktree", "link in bio page", "bio link", "link hub", "create my link page", "all my links on one page", "linktree alternative", "build a link page", "bio page for my affiliate links", "I…

Affitor/affiliate-skills · 108 tokens

wp-admin-codemirror

Embed WordPress's bundled CodeMirror editor in admin pages via wpenqueuecodeeditor() and wp.codeEditor.initialize(). Covers MIME / file mode selection for CSS, JS, JSON, HTML, PHP, SQL, Markdown, and YAML; the false return when user profile syntax highlighting is disabled; passing settings to JS; the bare textarea ID…

Lonsdale201/wp-agent-skills · 159 tokens

wp-plugin-assets-loading

Register and enqueue WordPress plugin scripts/styles with modern loading behavior, including WP 7.1 admin design-system assets, WP 7.0 classic-script module dependencies, script module translations, fetchpriority support, script module args, footer placement, inline style limits, and removal of legacy IE conditional…

Lonsdale201/wp-agent-skills · 141 tokens

block-theme-global-styles

Build and audit WordPress 7.1 block-theme Global Styles and theme.json. Covers schema version 3, responsive mobile/tablet viewport states, block and element pseudo-states, Navigation Link current-state styles, style variations, CSS generation, background gradients, minimum width, text shadow, block visibility…

Lonsdale201/wp-agent-skills · 112 tokens

classic-theme-assets-build

Build or audit frontend asset loading for classic PHP WordPress themes on WP 7.1. Covers wpenqueuescripts, child-theme-safe getthemefileuri() and getthemefilepath(), cache-busting with filemtime(), classic scripts and script modules, loading strategy/fetch priority, conditional enqueues, comment-reply, RTL style data…

Lonsdale201/wp-agent-skills · 124 tokens

wc-product-attribute-swatches

Build or audit WooCommerce product attribute swatch integrations around the experimental wc-visual attribute type. Covers feature gating, global pa attribute taxonomies, the WooCommerce 11 slug byte limit, color/image term meta, visual admin search results, Store API experimentalvisual / experimentalVisual, classic…

Lonsdale201/wp-agent-skills · 119 tokens