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.
npx skills add cosmix/loom --skill loom-javascriptgit clone --depth 1 https://github.com/cosmix/loomWrote 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/skills/cosmix/loom/loom-javascript)<a href="https://agentmods.dev/skills/cosmix/loom/loom-javascript"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-javascript/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/skills/cosmix/loom/loom-javascript"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-javascript.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.00029 | $0.05580 |
| Opus 5.5 | $0.00012 | $0.02232 |
| Sonnet 5.5 | $0.00006 | $0.01116 |
| Haiku 4.5 | $0.00003 | $0.00558 |
Grade A, and why
loom-javascript scanned grade A with 2 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 24d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
const res = await fetch(url, { signal: AbortSignal.timeout(timeoutMs) }); Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
| Child processes | `node:child_process` (`execFile`, `spawn`) | How it starts
The opening of the file, as written. The whole thing — 400 lines — stays where its author put it; the contents beside it link to each section on GitHub.
JavaScript Language Expertise
Overview
Idiomatic ES2022+ JavaScript on Node.js 22+ (or Bun): ES modules, async/await, JSDoc types checked by tsc, the built-in node: APIs, and a small tool set. Assumes the reader knows the language. The content is decision rules and the traps that survive review: a floating promise, == on mixed types, a lost this, JSON.parse output merged into an object (prototype pollution), a catch that swallows the error, a test runner that finds zero files and exits 0. TypeScript syntax is covered by loom-typescript.
Tooling
Use the package manager the repository's lockfile names. For new work prefer Bun: bun add, bun remove, bunx. Do not run npm or npx commands in this workflow.
| Task | Command |
|---|---|
| Install | bun install |
| Add a dependency | bun add zod (dev: bun add -d vitest) |
| Run a script | bun run build |
| Run a one-off tool | bunx eslint . |
| Run a file | node src/main.js or bun src/main.js |
| Type-check JSDoc | bunx tsc --noEmit |
| Lint | bunx eslint . or bunx biome check . |
| Format | bunx biome format --write . or bunx prettier --write . |
| Test, whole suite | bun test / bunx vitest run / node --test |
| Audit dependencies | bun audit |
- Lockfile: commit
bun.lock. Install in CI withbun install --frozen-lockfile, which fails whenpackage.jsonand the lockfile disagree. - Node version: pin it in
package.json("engines": {"node": ">=22"}) and in.nvmrcor.tool-versions. Node 22+ shipsrequire(esm),fetch,node:test,--watchand--env-file. - Linting: ESLint 9 uses a flat config (
eslint.config.js);.eslintrc*is the legacy format. Biome is a single binary that lints and formats (biome.json) and replaces ESLint plus Prettier when the rule set it ships is enough. Pick one linter per repository.
Floating promises need type information. ESLint's @typescript-eslint/no-floating-promises works on JavaScript when parserOptions.projectService points at a jsconfig.json. Without it, review every call to an async function for an await or a .catch.
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.
- 24d ago First seen · 400 lines · 29 tokens per session scan A a28bb3dd4573
loom-javascript is a skill published in the GitHub repository cosmix/loom (64 stars, last pushed 2d ago), licensed MIT. It adds 29 tokens to every session and 5,580 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-04.
Other skills, from other repositories
API Discoverability for Agents
Making self-hosted services agent-discoverable — bake in a machine-readable API description (OpenAPI spec or a minimal API.md) when building, and discover-first (spec paths, repo search) before probing when integrating.
sandbox-stable
Build or maintain Cloudflare Sandbox apps on the stable @cloudflare/sandbox package. Use sandbox-next for preview apps and sandbox-migrate-to-next for stable-to-preview migrations.
sandbox-next
Build or maintain Cloudflare Sandbox apps on @cloudflare/sandbox@next (SDK 1.0 preview). Use sandbox-migrate-to-next when porting a stable app.
durable-objects
Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.
cloudflare
Discover and choose Cloudflare products for apps, APIs, AI agents, storage, networking, and security. Use for architecture and product selection, including when the user describes a need without naming a Cloudflare product; then find the relevant skill or documentation.
cloudflare-email-service
Implement or troubleshoot Cloudflare Email Sending and Email Routing integrations and their delivery configuration.