/engineering:javascript-modernfrom engineering
Provides ES6+ patterns for browser JavaScript in PHP-backed SaaS apps, covering modules, async flows, error handling, and performance.
Ships in engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
references/javascript-patterns.md and load references/javascript-patterns.md.docker-development.| Category | Artifact | Format | Example |
|---|---|---|---|
| Correctness | JavaScript module test plan | Markdown doc covering async, generators, Proxy, and module boundary tests | docs/web/js-module-tests.md |
references/ directory for deep detail after reading the core workflow below.references/javascript-advanced.md when the task needs deeper ES language mechanics, async patterns, metaprogramming, or performance.references/javascript-patterns.md when the task involves OOP, prototypes, design patterns, event modules, or maintainable browser architecture.Expert-level ES6+ patterns for PHP+JavaScript SaaS developers. Assumes fluency with variables, loops, and functions.
JavaScript belongs in its own .js files. PHP only emits a <script src="..."> tag or passes config via a single JSON data attribute. No <?php echo $var ?> scattered through JS files.
<!-- PHP emits one data attribute — no inline JS -->
<div id="app-config"
data-config='<?= json_encode($config, JSON_HEX_APOS) ?>'
data-user='<?= json_encode(['id' => $user->id, 'role' => $user->role]) ?>'>
</div>
// assets/js/app.js — reads config cleanly from its own file
const config = JSON.parse(document.getElementById('app-config').dataset.config);
const user = JSON.parse(document.getElementById('app-config').dataset.user);
// assets/js/modules/user-table.js
const UserTable = (() => {
let tableInstance = null; // private — unreachable from outside
function init(config) { tableInstance = new DataTable('#users-table', config); }
function refresh() { tableInstance?.ajax.reload(); }
return { init, refresh }; // public API only
})();
export default UserTable;
// Named exports for shared utilities: assets/js/core/utils.js
export function debounce(fn, delay) { /* ... */ }
export function throttle(fn, limit) { /* ... */ }
Extended guidance for javascript-modern was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
Use that deep dive for:
2. Async/Await — The Right Patterns3. Production-Grade Fetch Wrapper4. Destructuring — Beyond the Basics5. Optional Chaining and Nullish Coalescing6. Generators for Pagination / Lazy Data7. WeakMap for Private Data and DOM Metadata8. Proxy for Validation and Reactivity9. Error Handling Strategy10. Event Delegation (Performance Pattern)11. Debounce and Throttle12. LocalStorage with Expiry13. const/letand Arrow Functionthis``| Condition | Action |
|---|---|
| Code is shared across features | Use explicit ES modules with narrow exports |
| Work is CPU-bound | Move it off the main thread or backend |
| Legacy IIFE is stable and isolated | Preserve it unless tested conversion adds value |
Read and search are required. Editing and browser or test execution require authorisation; network access is optional.
Fallback: without execution, provide a patch plus exact lint, unit, and browser checks still required.
| Artefact | Required? | Purpose |
|---|---|---|
| JavaScript target, runtime, code, and project conventions | yes | Select compatible language and module patterns |
references/javascript-advanced.md (opens in a new tab)references/javascript-patterns.md (opens in a new tab)references/javascript-patterns/references/scalable-js-oop-patterns.md (opens in a new tab)references/javascript-patterns/references/skill-deep-dive.md (opens in a new tab)references/javascript-patterns/references/source-register-dev-engine.md (opens in a new tab)references/skill-deep-dive.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub peterbamuhigire/chwezi-dev-engine --plugin engineering169 skills in this plugin
/accounting-engineUse when designing or implementing double-entry accounting policy and an embedded ledger engine for invoices, payments, stock, balanced postings, mapped accounts, idempotency, reversals, period locks, audit trails, and financial statements./accounting-finance-controllerUse when coordinating accounting and finance implementation reviews, doctrine routing, control evidence, remediation priorities, and release decisions across a software system./advanced-testing-strategyUse when designing or reviewing test strategy for production systems, APIs, mobile apps, SaaS platforms, ERP workflows, and AI-enabled systems. Covers unit, integration, contract, end-to-end, regression, release-gate, and risk-based testing decisions.Other plugins' skills for the same job