Reviews and refactors JavaScript pure functions to isolate deterministic logic from side effects, mutation, and framework orchestration. Useful for utility functions, mappers, validators, reducers, and data transformations.
Ships in ngautopilot-javascript. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to review, refactor, or implement pure functions in JavaScript.
The goal is to isolate deterministic business logic from side effects, making the code easier to test, reuse, compose, and reason about.
A pure function returns the same output for the same input and does not mutate external state.
Use this skill when the task involves:
Do not use this skill when:
Identify side effects and make dependencies explicit.
Avoid mutating inputs.
Separate computation from effects.
Keep pure functions small and named by intent.
Do not over-abstract.
Preserve error behavior during refactors.
Test pure functions deterministically with input/output assertions.
Cover edge cases like empty arrays, nullish values when supported, invalid input, boundary numbers, duplicated values, nested objects, and immutability expectations.
Keep pure functions framework-agnostic.
Avoid mutating arrays with .sort(), .reverse(), .splice(), .push(), .pop(), .shift(), or .unshift() unless mutation is explicitly required.
Avoid mutating objects through direct property assignment.
Avoid reading time or randomness inside deterministic logic.
Avoid hiding I/O inside a function that looks like a mapper.
Avoid returning references that callers can accidentally mutate.
Avoid extracting tiny functions that make the code harder to read.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ngautopilot-javascript:javascript--pure-functionsfrom ngautopilot-javascript
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-javascript9 skills in this plugin
/javascript--async-error-handlingJavaScript Async Error HandlingReviews and refactors asynchronous JavaScript error handling so Promise-based code avoids swallowed failures, unhandled rejections, unclear fallback behavior, and weak failure contracts.
/javascript--async-error-handling--browser-async-error-handling-v18Browser Async Error Handling v18+Reviews asynchronous JavaScript error handling in browser-facing code, focusing on user-facing failure states, safe fallbacks, retry behavior, and preserved error context.
/javascript--async-error-handling--browser-async-error-handling-v20Browser Async Error Handling v20+Reviews asynchronous JavaScript error handling in browser-facing code for modern runtime baselines, focusing on user-facing failure states, safe fallbacks, retry behavior, and preserved error context.
Other plugins' skills for the same job