Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
alphaonedev avatar

Coding Javascript

  • 54 installs
  • 6 repo stars
  • Updated March 13, 2026
  • alphaonedev/openclaw-graph

coding-javascript is a skill that helps an AI assistant write modern browser JavaScript with ES2024 features like DOM manipulation, promises, generators, WeakRef, and Proxy.

About

A coding skill that helps an AI assistant write modern browser JavaScript using ES2024 features. It covers DOM manipulation, the fetch API, promises and async/await, plus advanced patterns like generators, WeakRef, and Proxy. A developer uses it for interactive frontend web apps and API-driven client code.

  • Modern JavaScript ES2024+ for browser development
  • DOM manipulation, fetch, promises, async/await
  • Advanced patterns: generators, WeakRef, Proxy

Coding Javascript by the numbers

  • 54 all-time installs (skills.sh)
  • Ranked #1,272 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

coding-javascript capabilities & compatibility

Use cases
frontend · api development · debugging
From the docs

What coding-javascript says it does

This skill equips OpenClaw to assist with JavaScript coding tasks using ES2024 features, focusing on modern browser-based development like DOM manipulation, asynchronous operations, and advanced patte
SKILL.md
Manage memory with WeakRef for garbage collection-friendly references.
SKILL.md
npx skills add https://github.com/alphaonedev/openclaw-graph --skill coding-javascript

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs54
repo stars6
Last updatedMarch 13, 2026
Repositoryalphaonedev/openclaw-graph

What it does

Write modern browser JavaScript with DOM manipulation, fetch/promises, and ES2024 patterns like Proxy and WeakRef.

Who is it for?

Frontend JavaScript in browser contexts and API-driven client code.

Skip if: Backend Node.js server work, which the sibling node skill covers.

When should I use this skill?

Building interactive web apps, handling fetch/promises, or using WeakRef and Proxy in ES6+ code.

By the numbers

  • 6 key capabilities listed

Files

SKILL.mdMarkdownGitHub ↗

coding-javascript

Purpose

This skill equips OpenClaw to assist with JavaScript coding tasks using ES2024 features, focusing on modern browser-based development like DOM manipulation, asynchronous operations, and advanced patterns.

When to Use

Use this skill when users need help with frontend JavaScript, such as building interactive web apps, handling API requests, or implementing efficient memory management with WeakRef. Apply it for tasks involving promises, generators, or Proxies in ES6+ environments, especially in browser contexts.

Key Capabilities

  • Manipulate DOM elements using querySelector and event listeners.
  • Handle asynchronous code with fetch API, promises, and async/await.
  • Use generators for iterative processes, e.g., yielding values in loops.
  • Manage memory with WeakRef for garbage collection-friendly references.
  • Implement Proxies for custom object behavior, like trapping property access.
  • Apply modern patterns such as modules, arrow functions, and destructuring.

Usage Patterns

To invoke this skill, prefix user queries with "use coding-javascript" in OpenClaw commands, e.g., "openclaw use coding-javascript and write a fetch function". For code generation, provide specific inputs like variable names or API endpoints. Always specify ES2024 features if needed, e.g., "generate code using WeakRef". Integrate by chaining skills, like "use coding-javascript then coding-web for full-stack advice". Test outputs in a browser console before deployment.

Common Commands/API

Use OpenClaw CLI to activate: openclaw run coding-javascript --query="explain promises". For JavaScript specifics:

  • Fetch API: Use fetch('https://api.example.com/data', { method: 'GET' }) to make requests; handle responses with .then(response => response.json()).
  • Promises: Chain with .then() and .catch(), e.g., new Promise(resolve => resolve('data')).then(data => console.log(data)).
  • Generators: Define with function* gen() { yield 1; yield 2; } and iterate using for (let value of gen()) { console.log(value); }.
  • WeakRef: Create with new WeakRef(object) and dereference via .deref() for potential null if garbage collected.
  • Proxy: Set up with new Proxy(target, { get: (target, prop) => console.log(prop) }) to intercept access.

Config format: Use JSON for skill inputs, e.g., { "feature": "promises", "example": true } in OpenClaw configs. If external APIs are involved, set auth via env vars like $JAVASCRIPT_API_KEY in your script.

Integration Notes

Integrate this skill with OpenClaw by including it in multi-skill workflows, e.g., "openclaw chain coding-javascript and coding-css". For browser environments, ensure code runs in a modern engine like Chrome or Node.js v14+. Use env vars for secrets, e.g., export $FETCH_API_KEY and reference in code as process.env.FETCH_API_KEY. Avoid conflicts by specifying versions, like "use ES2024 only". For testing, wrap code in modules: import { fetch } from 'whatwg-fetch';.

Error Handling

Always wrap asynchronous code in try-catch blocks, e.g.:

try {
  await fetch('url').then(res => res.json());
} catch (error) {
  console.error('Fetch failed:', error.message);
}

For promises, use .catch(): promise.then(data => process(data)).catch(err => logError(err)). With generators, handle iteration errors via try-catch in the loop. For Proxies, trap errors in handlers, e.g., new Proxy({}, { get: (target, prop) => { if (!target[prop]) throw new Error('Property not found'); } }). Check for WeakRef validity: if (weakRef.deref() !== undefined) { useObject(); }. In OpenClaw, log errors with openclaw log --skill=coding-javascript --error=details.

Concrete Usage Examples

1. To fetch and display user data: Use openclaw use coding-javascript and generate: const userId = 1; fetch(https://api.example.com/users/${userId}).then(res => res.json()).then(data => console.log(data.name));. 2. For Proxy-based validation: Invoke with openclaw use coding-javascript and code: const handler = { set: (obj, prop, value) => { if (prop === 'age' && value < 18) throw Error('Underage'); obj[prop] = value; } }; const proxy = new Proxy({}, handler); proxy.age = 16; // Throws error.

Graph Relationships

  • Related to: coding-python (for cross-language comparisons), coding-web (for frontend integration).
  • Depends on: general-coding (for base syntax), async-patterns (for promise handling).
  • Conflicts with: legacy-javascript (due to ES5 focus).

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.