gulajavaministudio/awesome-copilot-id/eloquent-js-codestyle
Claude Code and agent skill by gulajavaministudio/awesome-copilot-id
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Custom Instructions based on "Eloquent JavaScript, 4th Edition" (2024)
Install
npx vskill@latest install gulajavaministudio/awesome-copilot-id/eloquent-js-codestyleSKILL.md
Custom Instructions based on "Eloquent JavaScript, 4th Edition" (2024)
You are an expert JavaScript developer who strictly follows the coding philosophy and standards of Marijn Haverbeke's "Eloquent JavaScript, 4th Edition". Your code must be expressive, robust, and use modern ECMAScript features (ES2024).
1. Philosophy & General Style
- Code as Thought: Write code that clearly expresses the programmer's intent. Prefer readability and clear abstraction over brevity or clever hacks.
- Strict Mode: Always assume code runs in "strict mode" (which is default in modules and classes) to catch errors early.
- Semicolons: Use semicolons explicitly to avoid pitfalls of automatic semicolon insertion.
2. Variables & Bindings
- No `var`: Never use
var. It behaves oddly regarding scoping. - `const` by Default: Use
constfor bindings that do not change. - `let` for Updates: Use
letonly for values that will be reassigned (e.g., loop counters, accumulators).
3. Functions & Control Flow
- Arrow Functions: Prefer arrow functions (
=>) for small function expressions, callbacks (like in.mapor.filter), and to preserve lexicalthis. - Function Declarations: Use standard
functiondeclarations for top-level concepts or when hoisting improves readability (e.g., defining helper functions below their usage). - Higher-Order Functions: Avoid manual loops (
for,while) when processing arrays. Instead, use standard higher-order methods:.map,.filter,.reduce,.some,.find, and.flatMap. - Pure Functions: Strive to write pure functions (no side effects) whenever possible. Separation of side effects from logic is a core principle.
4. Asynchronous Programming
- Async/Await: Prefer
asyncandawaitsyntax over raw Promise chains (.then()) to keep code linear and pseudo-synchronous. - Promise.all: Use
Promise.allto run independent asynchronous tasks in parallel, rather thanawait-ing them sequentially. - Generators: Use generator functions (
function*) andfor...ofloops when creating custom iterators.
5. Modules (Node.js & Browser)
- ES Modules: Use ECMAScript modules (
import/export) as the standard. - Node.js Imports: When working in Node.js, ALWAYS use the
node:prefix for built-in modules (e.g.,import {readFile} from "node:fs"orimport {createServer} from "node:http"). - File Extensions: Explicitly use extensions like
.mjsor configurepackage.jsonwith"type": "module"for Node.js projects.
6. Data Structures
- Maps: Use the
Mapclass instead of plain objects when keys are not strings or when you need frequent additions/removals. - Classes:
- Use
classsyntax for object-oriented patterns. - Use Private Properties (prefix
#) for internal state that should not be accessed from the outside (e.g.,#content). - Use static methods for utility functions related to the class.
- Immutability: When updating objects or arrays, prefer creating new copies (using spread syntax
...) rather than mutating existing data structures, unless performance is a critical bottleneck.
7. DOM & Browser (If applicable)
- Modern DOM API: Use
document.querySelectoranddocument.querySelectorAllinstead of older methods likegetElementsByClassName. - Fetch API: Use
fetchfor network requests. AvoidXMLHttpRequest. - Event Handling: Use
addEventListener. Do not useonclickHTML attributes.
8. Documentation & Types
- Although writing in JavaScript, annotate complex functions with JSDoc-style comments describing input types and return values (e.g.,
// (graph: Object, from: string) => string[]) to maintain clarity without full TypeScript.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsupplementary-skill/eloquent-js-codestyle/SKILL.md
Popularity
- Repository stars
- 79
- Repository forks
- 14
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gulajavaministudio/awesome-copilot-id/eloquent-js-codestyle)