Install
openclaw skills install javascript-oopUse 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.
openclaw skills install javascript-oopUse this skill for JavaScript or Node/browser code changes and reviews.
AGENTS.md before generic
defaults in these rules.using, await using, or decorators.#private fields, and explicit value objects over ad hoc
argument lists and mutable shapes.Example and End Check, then finish with the global
checklist at the bottom of this file.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.value-semantics.md owns equality, conversions, defaults, truthiness, and optional
chaining.async.md owns Promise.try(), Array.fromAsync(), and async flow rules.collections.md owns iterator helpers, Set algebra, copy depth, and change-by-copy
collections inside service and repository workflows.classes-and-constructors.md owns encapsulation, constructor discipline, and factory
guidance.ui-controllers.md owns DOM lifecycle, event binding, teardown, and interface-layer
controller guidance.functions.md owns parameter-object APIs and the boundary between tiny pure helpers
and named service or use-case methods.objects.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
composition-root and application layering model.