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 agentmods add skills/wrongstack/wrongstack/node-modernnpx skills add WrongStack/WrongStack --skill node-moderngit clone --depth 1 https://github.com/WrongStack/WrongStackWrote 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/wrongstack/wrongstack/node-modern)<a href="https://agentmods.dev/skills/wrongstack/wrongstack/node-modern"><img src="https://agentmods.dev/badge/skills/wrongstack/wrongstack/node-modern.svg" alt="Measured on agentmods" 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.00052 | $0.01921 |
| Opus 5 | $0.00026 | $0.00960 |
| Sonnet 5 | $0.00010 | $0.00384 |
| Haiku 4.5 | $0.00005 | $0.00192 |
Grade A, and why
node-modern 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 2d 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(5000) }); Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
// ✅ Timeout on child_process How it starts
The opening of the file, as written. The whole thing — 222 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Modern Node.js (>= 22) — WrongStack
Overview
Node.js >= 22 patterns: ESM-only imports, native fetch with AbortSignal, Web Streams, and async patterns. WrongStack uses ESM throughout — no CommonJS in new code.
Rules
- Always use ESM (
importwith.jsextension) — neverrequire(). - Always use
node:protocol for built-in modules. - Always use
AbortSignal.timeout()for long-running operations (fetch, spawn, setTimeout). - Never use axios, node-fetch, or got — native fetch is sufficient.
- Always handle
ENOENTon file reads — use try/catch oraccessfirst. - Use
Promise.allSettledwhen partial failure is acceptable.
Patterns
Do
// ✅ ESM with .js extension and node: protocol
import * as fs from 'node:fs/promises';
import { createServer } from 'node:http';
import { helper } from './helper.js';
// ✅ Native fetch with AbortSignal
const res = await fetch(url, { signal: AbortSignal.timeout(5000) });
// ✅ Atomic write
const tmp = `${target}.${randomBytes(4).toString('hex')}.tmp`;
await writeFile(tmp, data);
await rename(tmp, target);
// ✅ Parallel with allSettled
const results = await Promise.allSettled(tasks.map(t => t.run()));
Don't
// ❌ CommonJS
const fs = require('fs/promises');
// ❌ No AbortSignal — hangs forever on timeout
await fetch(url);
// ❌ axios in new code
const res = await axios.get(url);
// ❌ Swallowing AbortError silently
try {
await fetch(url);
} catch (e) {
// AbortError means timeout — log it or handle explicitly
}
Imports — always ESM
// ✅ Always — node: protocol for built-ins
import * as fs from 'node:fs/promises';
import { createServer } from 'node:http';
import { join, resolve } from 'node:path';
// ✅ ESM with .js extension in relative imports
import { helper } from './helper.js';
import { types } from '../types/index.js';
// ❌ Never — CommonJS
const fs = require('fs/promises');
fetch — native only
// ✅ Native fetch (Node 18+)
const res = await fetch('https://api.example.com/data', {
signal: AbortSignal.timeout(5000),
});
// ❌ Never — axios, node-fetch, got
const res = await axios.get('https://api.example.com/data');
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.
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.
- 2d ago First seen · 222 lines · 52 tokens per session scan A a66c3f00d663
node-modern is a skill published in the GitHub repository WrongStack/WrongStack (284 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 1,921 once invoked, about $0.0003 per session on Opus 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-09-03.
Other skills, from other repositories
ai-infrastructure-ollama
Local LLM inference with the Ollama JavaScript client -- chat, streaming, tool calling, vision, embeddings, structured output, model management, and OpenAI-compatible endpoint.
ai-infrastructure-replicate
Replicate SDK patterns for TypeScript/Node.js -- client setup, predictions, streaming, webhooks, file handling, model versioning, deployments, and training.
ai-infrastructure-together-ai
Together AI SDK patterns for TypeScript — client setup, chat completions, streaming, structured output, function calling, embeddings, image generation, fine-tuning, and OpenAI-compatible endpoints.
ai-provider-anthropic-sdk
Official Anthropic SDK patterns for TypeScript/Node.js — client setup, Messages API, streaming, tool use, vision, extended thinking, structured outputs, prompt caching, batch API, and production best practices.
ai-provider-cohere-sdk
Official Cohere TypeScript SDK patterns -- CohereClientV2, chat, embeddings, rerank, RAG with citations, tool use, streaming, and model selection.
ai-provider-elevenlabs
ElevenLabs voice AI SDK patterns for TypeScript/Node.js -- text-to-speech, streaming, voice cloning, speech-to-speech, pronunciation control, and conversational AI.