agentleFS
jscraikjscraik/Agent-Skills/Skills/agent-ops/javascript-pro/SKILL.md

javascript-pro

Skill9 starsChanged 46 days agoApache-2.0View on GitHub

Create and debug modern JavaScript code with ES6+, async patterns, and Node.js APIs. Use when working on runtime behavior, promises, or browser and Node compatibility.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use receiving-code-review, requesting-code-review and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CloudflareSkill

    receiving-code-review

    Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation

    Also in 3 projects that use this

  • OpenAISkill

    requesting-code-review

    Use when completing tasks, implementing major features, or before merging to verify work meets requirements

    Also in 3 projects that use this

  • StrayDragonSkill

    ui-ux-pro-max

    UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use for JavaScript implementation and review tasks.

    line 21
  2. Distinctive:

    Use when async behavior or runtime compatibility is critical.

    line 22
  3. Distinctive:

    Prefer small pure functions for transformation logic.

    line 38
  4. Very specific:

    Use const by default, let only when reassignment is required.

    line 39
  5. Distinctive:

    Keep API surfaces explicit and documented through JSDoc when needed.

    line 40
  6. Very specific:

    Use Promise.all only for truly independent operations.

    line 45
  7. Distinctive:

    If side effects cannot be isolated, keep behavior unchanged and document risk.

    line 62
  8. Distinctive:

    Keep guidance deterministic so repeated runs produce consistent decisions.

    line 81
  9. Distinctive:

    Run the relevant local checks for touched files and workflow contracts.

    line 91
  10. Distinctive:

    Read when: the task needs advanced edge cases, migration-safe patterns, or runtime-specific nuance beyond the core checklist.

    line 104

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Table of Contents

  • When to use
  • Required inputs
  • Deliverables
  • Core Practices
  • Async Safety
  • Examples
  • Failure mode
  • Gotchas

When to use

  • Use for JavaScript implementation and review tasks.
  • Use when async behavior or runtime compatibility is critical.

Required inputs

  • Target runtime and module format.
  • Files or functions to update.
  • Error or performance constraints.

Deliverables

  • Behavior-correct JavaScript changes.
  • Clear async flow and explicit error handling.
  • Compatibility notes when needed.

Core Practices

  • Prefer small pure functions for transformation logic.
  • Use const by default, let only when reassignment is required.
  • Keep API surfaces explicit and documented through JSDoc when needed.

Async Safety

  • Await every promise that affects correctness.
  • Use Promise.all only for truly independent operations.
  • Surface actionable errors with context.
  • Redact secrets, tokens, credentials, and sensitive data by default.

Examples

export async function loadJson(url) {
  const response = await fetch(url)
  if (!response.ok) throw new Error(`Fetch failed: ${response.status}`)
  return response.json()
}

Failure mode

  • If side effects cannot be isolated, keep behavior unchanged and document risk.

Gotchas

  • Unawaited promises can mask production failures.

See Also

SkillWhen to use
[[typescript]]Typed JavaScript superset when strict contracts and module boundaries are needed
[[biome-linting]]Enforce JavaScript/TypeScript lint and format rules with Biome

Topic map: [[agent-ops]]

Philosophy

  • Optimize for clear, verifiable outcomes with the minimum necessary changes.
  • Keep guidance deterministic so repeated runs produce consistent decisions.

Procedure

  1. Confirm scope, constraints, and required inputs before edits.
  2. Apply focused changes tied directly to the requested outcome.
  3. Re-run the highest-signal validations and capture concrete evidence.

Validation

  • Run the relevant local checks for touched files and workflow contracts.
  • Fail fast: stop at the first blocking validation failure and report exact evidence.
  • Re-run checks after fixes and record residual risk if any remains.

Anti-patterns

  • Skipping validation after making changes.
  • Applying broad refactors to solve narrow issues.
  • Assuming behavior without evidence from current checks.

References and assets

  • Open deep guidance: Infrastructure/references/deep-guidance.md
  • Read when: the task needs advanced edge cases, migration-safe patterns, or runtime-specific nuance beyond the core checklist.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.