Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/eliornl/rolemulenpx agentmods add rules/eliornl/rolemule/frontend-build-pipelineWrote 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.
[](https://agentmods.dev/rules/eliornl/rolemule/frontend-build-pipeline)<a href="https://agentmods.dev/rules/eliornl/rolemule/frontend-build-pipeline"><img src="https://agentmods.dev/badge/rules/eliornl/rolemule/frontend-build-pipeline/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.
<a href="https://agentmods.dev/rules/eliornl/rolemule/frontend-build-pipeline"><img src="https://agentmods.dev/badge/rules/eliornl/rolemule/frontend-build-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00833 |
| Opus 5.5 | $0.00000 | $0.00333 |
| Sonnet 5.5 | $0.00000 | $0.00167 |
| Haiku 4.5 | $0.00000 | $0.00083 |
Grade A, and why
frontend-build-pipeline 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Frontend Build Pipeline
RoleMule uses a dual pipeline unified by ui/scripts/build-all.mjs:
- Legacy esbuild (
ui/build.mjs) — minifies and content-hashes CSS only. - Vite (
ui/scripts/build-vite.mjs) — bundles each TypeScript page entry fromui/vite.entries.jsonas an IIFE, emits hidden source maps (.js.mapon disk, nosourceMappingURLin the bundle), content-hashes JS, and writesvite-manifest.json. - Merge — Vite keys override legacy keys in
ui/static/dist/manifest.json.
Jinja templates still use {{ asset_url('js/...') }} / {{ asset_url('css/...') }}. FastAPI resolves hashed paths via asset_url() in main.py.
Source of truth
| Kind | Location |
|---|---|
| Page / global scripts | ui/src/pages/*.ts (registered in ui/vite.entries.json) |
| Shared TS modules | ui/src/shared/*.ts |
| CSS | ui/static/css/ (still esbuild-minified) |
| Build output | ui/static/dist/ (gitignored) |
Running the Build
cd ui
npm install
npm run build # unified: legacy + vite + merge
npm run typecheck # tsc --noEmit
npm run test # vitest
macOS — use Make targets (quarantine strip for node_modules binaries):
make build-frontend
make setup
Windows — just build-frontend / just setup.
In development, asset_url() re-reads manifest.json every request when not in production — hard-refresh after npm run build.
Adding a New Page Script
- Create
ui/src/pages/my-page.ts - Add to
ui/vite.entries.json:"js/my-page.js": "src/pages/my-page.ts" - Reference in the template:
{{ asset_url('js/my-page.js') }} - Run
npm run build/make build-frontend
Migrating a leftover legacy file
cd ui
node scripts/migrate-js-to-ts.mjs js/some-file.js
npm run build
asset_url()
Unchanged: production uses /static/dist/<hashed>; missing manifest falls back to /static/<path>.
Source maps (production)
Vite builds use sourcemap: 'hidden': hashed *.js.map files are written next to bundles under ui/static/dist/js/ for server-side debugging, but browsers do not auto-load them (no comment in the bundle). Do not expose /static/dist/js/*.map publicly unless you accept revealing TS source structure.
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.
- 3mo ago First seen · 81 lines · 0 tokens per session scan A 9ac5a42c0559
frontend-build-pipeline is a cursor rule published in the GitHub repository eliornl/rolemule (39 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 833 tokens. 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.
frontend-build-pipeline compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| frontend-build-pipelineeliornl/rolemule | Cursor rule | 39 | today | MIT | A | 0 | Claude Code, Cursor |
| desktop-layoutLawofall/AgentCore | Cursor rule | 90 | 25d ago | none | A | 0 | Cursor |
| color-tokensLawofall/AgentCore | Cursor rule | 90 | 25d ago | none | A | 0 | Cursor |
| design-tokensAlphaBitCore/nexus-gateway | Cursor rule | 25 | 2mo ago | Apache-2.0 | A | 0 | Cursor |
| cursor.headgg-mo/stagecraft-agent-skill | Cursor rule | 6 | 7mo ago | MIT | A | 57 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 201k | 8d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | 4d ago | MIT | A | 0 | Cursor |