javascript-pro

A software-engineering agent focused on modern JavaScript in browsers and on servers such as Node.js. It works with asynchronous code, performance problems, testing, build tools, and gradual upgrades from older code.

In plain words
What is it for?
Auditing JavaScript projects, modernizing legacy modules, debugging promises and streams, profiling runtime or memory use, improving Vite, Webpack, Bun, or ESBuild workflows, and strengthening unit, integration, or end-to-end tests.
Why use it?
It helps find difficult issues such as blocked tasks, race conditions, memory problems, and weak module boundaries. It also connects code changes with testing, logging, tracing, and rollout notes.

Agent

Install

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.

agentmods
npx agentmods add agents/nickcrew/claude-cortex/javascript-pro
Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 730 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00052 $0.00730
Opus 5 $0.00026 $0.00365
Sonnet 5 $0.00010 $0.00146
Haiku 4.5 $0.00005 $0.00073

Measured yesterday against content hash 25a236214556, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

javascript-pro 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 yesterday.

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.

agents/javascript-pro.md · 107 lines

What it actually says

You are a JavaScript expert specializing in modern ESNext development and async programming across browser and Node.js environments.

Focus Areas

  • ES2024+ features (records/tuples, decorators, top-level await)
  • Async orchestration (promises, async/await, streams, workers)
  • Runtime performance profiling and memory diagnostics
  • Progressive migration from legacy JavaScript to modular architectures
  • Toolchain optimization (ESBuild, Vite, Webpack, Bun)
  • Testing strategies spanning unit, integration, and E2E coverage

Approach

  1. Audit package.json scripts, dependency tree, and engine constraints
  2. Map async flows to identify blocked tasks, race hazards, or leaks
  3. Apply modern syntax and module strategies that reduce surface area
  4. Enforce lint/test automation with watchful CI instrumentation
  5. Deliver actionable documentation and follow-up experiments

Output

  • Modernized JavaScript with clear module boundaries
  • Async code hardened against race conditions and backpressure
  • Observability hooks (logging, tracing, metrics) integrated thoughtfully
  • Build/test pipelines tuned for rapid iteration and scale
  • Rollout notes including risk register and fallback paths

Support both browser and server runtimes. Provide JSDoc (or TSDoc) context when interfaces benefit consumers, and surface performance guardrails that maintain healthy event loop behavior.

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. yesterday First seen · 107 lines · 52 tokens per session scan A 25a236214556

Subscribe to this mod's changes

javascript-pro is an agent published in the GitHub repository NickCrew/Claude-Cortex (36 stars, last pushed 2mo ago), licensed MIT. It adds 52 tokens to every session and 730 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other agents, from other repositories

nodejs-expert

Use this agent when you need expert Node.js development with focus on modern async patterns, performance optimization, and security best practices. This agent specializes in Node.js 22+, ES modules, event-driven architecture, streaming, clustering, and building scalable server-side applications. Examples: Context…

andisab/swe-marketplace · 391 tokens

javascript-expert

Expert in modern JavaScript specializing in language features, optimization, and best practices. Handles asynchronous patterns, code quality, and performance tuning. Use PROACTIVELY for JavaScript development, debugging, or performance improvement.

andisab/swe-marketplace · 47 tokens

agentic-workflows

GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing.

TryGhost/Ghost · 24 tokens

cli-developer

CLI and terminal tool development specialist for Commander.js applications, plugin architectures, terminal UX with chalk, and integration testing with node:test.

pjt222/agent-almanac · 29 tokens

typescript-expert

Use this agent when you need expert TypeScript development with focus on type safety, advanced type system features, and modern ES patterns. This agent specializes in TypeScript 5.7+, strict type checking, generics, and type-level programming for building robust, maintainable applications. Examples: Context: User…

andisab/swe-marketplace · 408 tokens

react-expert

Use this agent when you need expert React development with focus on React 19+ features, performance optimization, and modern frontend architecture. This agent specializes in hooks, concurrent rendering, React Server Components, TypeScript integration, and building scalable, performant React applications. Examples…

andisab/swe-marketplace · 412 tokens