Javascript Modern logo

Javascript Modern

Community
peterbamuhigire
javascript-modern

Use when writing or reviewing modern JavaScript for browser or PHP-backed SaaS applications, including modules, asynchronous flows, error handling, language features, and performance.

Overview

Publisherpeterbamuhigire
Repositorychwezi-dev-engine
Skill namejavascript-modern
Stars
29
Forks
6
Bundled files
6
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by peterbamuhigire on GitHub. Read the source before you install it.

Installation

Install the Javascript Modern AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/languages/javascript-modern
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/peterbamuhigire/chwezi-dev-engine.git /tmp/chwezi-dev-engine
mkdir -p .claude/skills
cp -r /tmp/chwezi-dev-engine/skills/languages/javascript-modern .claude/skills/javascript-modern
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Javascript Modern in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Javascript Modern on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Javascript Modern is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

javascript-modern

Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.

Use When

  • Modern JavaScript (ES6+) patterns for PHP+JavaScript SaaS apps: modules, async/await, destructuring, Proxy/Reflect, generators, WeakMap/WeakSet, optional chaining, error handling, and performance patterns. Use when writing JavaScript for web...

Workflow

  • For OOP-heavy browser modules, reusable UI widgets, or complex stateful workflows, pair with references/javascript-patterns.md and load references/javascript-patterns.md.
  • For Node/runtime container work, pair with docker-development.

Evidence Produced

CategoryArtifactFormatExample
CorrectnessJavaScript module test planMarkdown doc covering async, generators, Proxy, and module boundary testsdocs/web/js-module-tests.md

References

  • Use the references/ directory for deep detail after reading the core workflow below.
  • Use references/javascript-advanced.md when the task needs deeper ES language mechanics, async patterns, metaprogramming, or performance.
  • Use 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.

Architecture Rule (Non-Negotiable)

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
<!-- 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>
javascript
// 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);

1. Module Pattern (IIFE + ES Modules)

javascript
// 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) { /* ... */ }

Additional Guidance

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 Patterns
  • 3. Production-Grade Fetch Wrapper
  • 4. Destructuring — Beyond the Basics
  • 5. Optional Chaining and Nullish Coalescing
  • 6. Generators for Pagination / Lazy Data
  • 7. WeakMap for Private Data and DOM Metadata
  • 8. Proxy for Validation and Reactivity
  • 9. Error Handling Strategy
  • 10. Event Delegation (Performance Pattern)
  • 11. Debounce and Throttle
  • 12. LocalStorage with Expiry
  • 13. const/letand Arrow Functionthis``
  • Additional deep-dive sections continue in the reference file.

Decision Rules

ConditionAction
Code is shared across featuresUse explicit ES modules with narrow exports
Work is CPU-boundMove it off the main thread or backend
Legacy IIFE is stable and isolatedPreserve it unless tested conversion adds value

Capability Contract

Read and search are required. Editing and browser or test execution require authorisation; network access is optional.

Degraded Mode

Fallback: without execution, provide a patch plus exact lint, unit, and browser checks still required.

Domain Anti-Patterns

  • Starting asynchronous work without handling rejection.
  • Using global mutable state instead of module scope.
  • Adding a dependency for a native language operation.
  • Blocking the main thread with large synchronous transforms.
  • Changing module format without checking runtime compatibility.

Inputs

ArtefactRequired?Purpose
JavaScript target, runtime, code, and project conventionsyesSelect compatible language and module patterns

Outputs

  • Produce reviewed JavaScript, findings, tests, and compatibility notes.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Javascript Modern AI skill do?

Use when writing or reviewing modern JavaScript for browser or PHP-backed SaaS applications, including modules, asynchronous flows, error handling, language features, and performance.

Why use Javascript Modern on TypingMind?

Because you install it once and use it with any model. Javascript Modern is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Javascript Modern in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/languages/javascript-modern. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Javascript Modern?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Javascript Modern?

As many as you like. As long as a model supports skills, you can use Javascript Modern with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Javascript Modern AI skill free?

Yes. It is published on GitHub by peterbamuhigire under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇