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 MayR-Labs/skills --skill javascriptgit clone --depth 1 https://github.com/MayR-Labs/skillsWrote 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/mayr-labs/skills/javascript)<a href="https://agentmods.dev/skills/mayr-labs/skills/javascript"><img src="https://agentmods.dev/badge/skills/mayr-labs/skills/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/mayr-labs/skills/javascript"><img src="https://agentmods.dev/badge/skills/mayr-labs/skills/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.00043 | $0.00531 |
| Opus 5.5 | $0.00017 | $0.00212 |
| Sonnet 5.5 | $0.00009 | $0.00106 |
| Haiku 4.5 | $0.00004 | $0.00053 |
Grade A, and why
mayrlabs-language-javascript 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 12d 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.
What it actually says
JavaScript Code Doctrine
JavaScript must be treated as a strict, production-ready language. We avoid historical JS quirks and default to modern, deterministic, and safe patterns.
The Iron Law
No silent failures, no implicit globals, no parameter mutation.
Core Principles
- Modern Context (ESM & strict): Always use ES Modules (
import/export). Always operate in strict mode (inherent in ESM). - Immutability First: Never mutate function parameters. Treat all inputs as
read-only. Prefer
constoverlet. Never usevar. Use array/object spread operators to create new references instead of mutating existing ones. - Pure Functions: Functions should be deterministic. If a function requires external state, inject it as a dependency.
- Predictable Types (Runtime): Even without TS, ensure objects are structured consistently. Avoid dynamically adding/removing object keys if possible.
Functional & Structural Rules
- Destructuring: Always destructure properties early for clarity.
- Fail Fast: Use Guard Clauses to return early and reduce indentation.
- Async/Await: Promises
.then()blocks are banned. Always useasync/awaitencased in explicittry/catchor safe wrapper functions to handle rejections cleanly. - Iteration: Banish standard
forloops unless optimizing a critical raw-performance bottleneck. Use declarative array methods (.map,.filter,.reduce).
Red Flags [BANNED]
==(Always use===).- Modifying
prototypeof built-in objects. - Magic numbers/strings without descriptive constant variables.
- Using
deleteon object properties (use rest destructuring to omit keys instead).
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.
- 12d ago First seen · 59 lines · 43 tokens per session scan A bbc56071ef6f
mayrlabs-language-javascript is a skill published in the GitHub repository MayR-Labs/skills (0 stars, last pushed 18d ago), licensed MIT. It adds 43 tokens to every session and 531 once invoked, about $0.0002 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-02.
Other skills, from other repositories
unity-version-split
Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).
erlang-otp-behaviors
Use when oTP behaviors including genserver for stateful processes, genstatem for state machines, supervisors for fault tolerance, genevent for event handling, and building robust, production-ready Erlang applications with proven patterns.
omh-rust
This is an OMH rust workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
axiom-concurrency
Use when writing ANY async code, actors, or threads in an Apple-platform app, or seeing ANY concurrency error. Covers Swift 6 concurrency, @MainActor, Sendable, data races, async/await patterns.
haskell-pro
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
migrate-better-result-3
Migrate a TypeScript codebase from better-result 2.x to 3.0. Use when upgrading better-result across the TaggedError syntax, removed Result serialization helpers, recovery inference, matching, or retry APIs.