javascript
Skill15 starsChanged 42 days agoMITView on GitHub
Expert modern JavaScript (ES2024+) assistance covering closures, async/await, promises, modules, event loop concurrency, and DOM manipulation. Use when writing frontend or Node.js code, designing clean asynchronous flows, or modernizing legacy JavaScript.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- DaraBoth/skilljmskilltheir own version, first seen Nov 8, 2026
- testdino-hq/google-styleguides-skillstheir own version, first seen Nov 8, 2026
- turkeryildirim/ai-skillstheir own version, first seen Nov 1, 2026
- infiniumtek/code-review-agenttheir own version, first seen Oct 25, 2026
- shreyam1008/shre-skillstheir own version, first seen Oct 9, 2026
- SynchronetBBS/sbbstheir own version, first seen Oct 9, 2026
Used with
Projects with it also use debugging and architecture.
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.
BlockSkilldebugging
Debugging guidelines and best practices
Also in 3 projects that use this
AnthropicSkillarchitecture
Create or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-offs and consequences, reviewing a system design proposal, or designing a new component from requirements and constraints.
Also in 3 projects that use this
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- SynchronetBBS/sbbs★ 115same name
- testdino-hq/google-styleguides-skills★ 15same name
- DojoCodingLabs/code-sensei★ 14same name
- infiniumtek/code-review-agent★ 4same name
- turkeryildirim/ai-skills★ 4same name
- wewpellex21/code-sensei★ 3same name
- DaraBoth/skilljmskill★ 2same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- Autocss-com/ai★ 1same name
- discourse/skills★ 1same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 160
Always Use Strict Equality (===): Avoid implicit type coercion bugs by using === and !==.
- Very specific: line 161
Use const by Default and let for Reassignment: Never use legacy function-scoped var.
- Very specific: line 169
Use eval() or new Function(): Dynamic code evaluation opens critical remote code execution (RCE) vectors.
“Common” is measured: kept by at least 6 in 10 of the 9 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.
Files
JavaScript
Modern JavaScript development with ES6+ features, async patterns, and best practices.
When to Use
- Universal Full-Stack Web Development: The foundational language of the web, executing across browsers, Node.js, Bun, Deno, and Edge workers.
- Event-Driven Asynchronous Backends: Serving high-concurrency microservices, real-time WebSockets, and serverless functions.
- Interactive Browser User Interfaces: Manipulating the DOM, capturing browser events, and orchestrating client-side component state.
- Cross-Platform Scripting & Tooling: Building developer tools, CLI scripts, and build plugins with npm/npx.
Quick Start
// Modern async function with error handling
async function fetchData(url) {
try {
const response = await fetch(url);
if (!response.ok) throw new Error(`HTTP ${response.status}`);
return await response.json();
} catch (error) {
console.error("Fetch failed:", error);
throw error;
}
}Core Concepts
Event Loop & Microtask Concurrency
JavaScript is single-threaded; asynchronous operations queue callbacks across Macrotasks and Microtasks:
console.log("1: Synchronous start");
setTimeout(() => console.log("4: Macrotask (setTimeout)"), 0);
Promise.resolve().then(() => console.log("3: Microtask (Promise)"));
console.log("2: Synchronous end");
// Output Order: 1 -> 2 -> 3 -> 4Modern ECMAScript (ES2024+) Features
Leverages modern language primitives for concise, safe data handling:
// Structured Clone for deep copying
const original = { user: { name: "Alice" }, tags: new Set(["admin"]) };
const deepCopy = structuredClone(original);
// Array grouping (Object.groupBy)
const inventory = [
{ name: "Apples", category: "Fruit" },
{ name: "Carrots", category: "Vegetable" },
{ name: "Bananas", category: "Fruit" },
];
const grouped = Object.groupBy(inventory, (item) => item.category);
// Safe Object hasOwn
if (Object.hasOwn(original, "user")) {
console.log("User property exists safely");
}Async / Await with Concurrent Promise.allSettled
Handles batch asynchronous requests safely without failing fast on single errors:
async function fetchUserDashboard(userId) {
const results = await Promise.allSettled([
fetch(`/api/users/${userId}`).then((r) => r.json()),
fetch(`/api/users/${userId}/notifications`).then((r) => r.json()),
]);
const user = results[0].status === "fulfilled" ? results[0].value : null;
const notifications =
results[1].status === "fulfilled" ? results[1].value : [];
return { user, notifications };
}Common Patterns
Async/Await Best Practices
Problem: Managing multiple async operations efficiently.
Solution:
// Parallel execution
async function fetchAllData(ids) {
const promises = ids.map((id) => fetchData(id));
return Promise.all(promises);
}
// Sequential with error handling
async function processItems(items) {
const results = [];
for (const item of items) {
try {
results.push(await processItem(item));
} catch (error) {
results.push({ error: error.message, item });
}
}
return results;
}
// AbortController for cancellation
async function fetchWithTimeout(url, ms = 5000) {
const controller = new AbortController();
const timeout = setTimeout(() => controller.abort(), ms);
try {
return await fetch(url, { signal: controller.signal });
} finally {
clearTimeout(timeout);
}
}Modules
Problem: Structuring modular, reusable code without polluting global namespace scope.
Solution:
// Named exports (preferred)
export const API_URL = "https://api.example.com";
export function fetchUser(id) {
/* ... */
}
export class UserService {
/* ... */
}
// Re-exports
export { default as Button } from "./Button.js";
export * from "./utils.js";
// Dynamic imports
const module = await import(`./features/${feature}.js`);Best Practices
Do:
- Always Use Strict Equality (
===): Avoid implicit type coercion bugs by using===and!==. - Use
constby Default andletfor Reassignment: Never use legacy function-scopedvar. - Adopt Native ESM Modules: Use
importandexportstatements; deprecate CommonJSrequire()in modern projects. - Handle Rejected Promises with
try...catch: Always wrapawaitcalls in error handling blocks to avoid unhandled rejection crashes.
Don't:
- Block the Event Loop: Never execute heavy synchronous loops or CPU-intensive math on the main thread; offload to Web Workers.
- Pollute global prototypes: Never modify
Array.prototypeorObject.prototype. - Use
eval()ornew Function(): Dynamic code evaluation opens critical remote code execution (RCE) vectors.
Troubleshooting
| Error | Cause | Solution |
Cannot read property of undefined | Accessing nested property on null/undefined | Use optional chaining ?. |
Uncaught (in promise) | Unhandled promise rejection | Add .catch() or try/catch |
X is not a function | Calling undefined method | Check if method exists before calling |
References
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
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.

