javascript-author

Author vanilla JavaScript Web Components with functional core and imperative shell architecture.

4|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/ProfPowell/vanilla-breeze --skill javascript-author
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: javascript-author
Source: https://github.com/ProfPowell/vanilla-breeze/tree/main/.claude/skills/javascript-author
Command: npx skills add https://github.com/ProfPowell/vanilla-breeze --skill javascript-author

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers write modern, maintainable vanilla JavaScript for Web Components, following best practices for structure, documentation, and reusability.

Core Features & Use Cases

  • Structured Code: Enforces a functional core with an imperative shell architecture.
  • Best Practices: Guides on JSDoc, naming conventions, and ESLint rules.
  • Web Component Focus: Specifically tailored for building custom elements.
  • Use Case: When creating a new interactive UI element like a custom dropdown menu or a modal dialog, use this Skill to ensure the JavaScript is well-organized, documented, and follows established patterns.

Quick Start

Use the javascript-author skill to create a new web component file named 'user-card.js'.

Frequently Asked Questions about javascript-author

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to structure vanilla JavaScript for Web Components?

The best way to structure vanilla JavaScript for Web Components is using a functional core and imperative shell architecture. This pattern enforces maintainable code by separating pure logic from side effects, alongside specific naming conventions.

How do I document custom elements and events in vanilla JS?

You document custom elements and events in vanilla JS using JSDoc annotations. This approach provides clear documentation for classes, methods, and events directly in your code without requiring external libraries or separate documentation files.

Can I use dependency injection with vanilla JS custom elements?

Yes, you can use dependency injection with vanilla JS custom elements. This architecture supports named exports and dependency injection, allowing you to build reusable and testable interactive UI elements like modal dialogs or dropdown menus.

Does writing Web Components require specific ESLint rules and naming conventions?

Writing Web Components with this approach adheres to specific ESLint rules and naming conventions for variables, classes, custom elements, and events. These rules ensure your vanilla JavaScript remains modern, structured, and maintainable.

When should I not use a functional core architecture for web components?

You should reconsider a functional core architecture if your project lacks support for named exports or modern vanilla JS workflows. This approach is tailored for maintainable custom elements and may be unnecessary for very simple, isolated scripts.