π¦ ClawHub
JavaScript
by @ju8z
Use this skill for JavaScript implementation, refactoring, debugging, or review when you need strong Java-style OOP conventions, ES2025+ standard features, t...
TERMINAL
clawhub install javascript-oopπ About This Skill
name: JavaScript OOP description: > Use this skill for JavaScript implementation, refactoring, debugging, or review when you need strong Java-style OOP conventions, ES2025+ standard features, targeted rule files, and explicit controller, service, repository, policy, use-case, and port boundaries.
JavaScript Skill
Scope
Use this skill for JavaScript or Node/browser code changes and reviews.
Precedence
AGENTS.md before genericES2025+ Baseline
using, await using, or decorators.Java-Style OOP Baseline
#private fields, and explicit value objects over ad hocOperating Model
1. Start with this file.
2. Load the baseline rules for almost every task:
- References
- Variables
- Functions
- Modules
- Naming Conventions
- SOLID and Structure
3. Load only the rule groups that match the task.
4. Use each file's local Example and End Check, then finish with the global
checklist at the bottom of this file.
Rule Map
Syntax and formatting
Objects, arrays, and data shape
Functions, classes, and modules
Equality, conversion, and modern syntax
Async and failure handling
Task-Based Loading
Load these additional files when the task has these traits:
objects, destructuring, collections,value-semantics.
classes-and-constructors, functions,accessors, modules, error-handling, naming-conventions,
solid-and-structure.
ui-controllers,classes-and-constructors, modules, naming-conventions, comments.
async,error-handling, standard-library.
value-semantics,standard-library.
formatting, strings,comments, control-flow.
Important Distinctions
value-semantics.md owns equality, conversions, defaults, truthiness, and optionalasync.md owns Promise.try(), Array.fromAsync(), and async flow rules.collections.md owns iterator helpers, Set algebra, copy depth, and change-by-copyclasses-and-constructors.md owns encapsulation, constructor discipline, and factoryui-controllers.md owns DOM lifecycle, event binding, teardown, and interface-layerfunctions.md owns parameter-object APIs and the boundary between tiny pure helpersobjects.md owns value-object and DTO boundary guidance.error-handling.md owns domain-error policy.standard-library.md owns concrete ES2025+ helper APIs such as RegExp.escape(),Error.isError(), and binary conversion helpers inside object-oriented designs.
solid-and-structure.md is the only file that names SRP, OCP, LSP, ISP, DIP, and the