js-writer

Guide JavaScript code writing and modification to align with project conventions.

38|6|Updated Sep 13, 2012
One-click install
npx skills add https://github.com/pixelastic/oroshi --skill js-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: js-writer
Source: https://github.com/pixelastic/oroshi/tree/main/tools/ai/claude/config/skills/js-writer
Command: npx skills add https://github.com/pixelastic/oroshi --skill js-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Writing and maintaining JavaScript code can be error-prone and inconsistent across projects. This skill provides a guided workflow and conventions to keep code organized and aligned with project standards.

Core Features & Use Cases

  • Project structure guidance: defines entry points and module layout (e.g., lib/main.js, lib/myFunction.js) and a tests directory for tests.
  • TDD-driven workflow: encourages writing failing tests before implementing features.
  • Code quality and consistency: promotes ES6 modules, named exports, and a clear separation of concerns with optional helper directories like references for utilities.

Quick Start

Create an initial JavaScript module setup following the described structure and add a corresponding test in tests to verify behavior.

Frequently Asked Questions about js-writer

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

FAQPage Schema
How do I structure a JavaScript project with ES6 modules and named exports?

To structure a JavaScript project with ES6 modules, use a main entry point like lib/main.js, separate module files in lib/ for each function with named exports, and a __tests__ directory for test scaffolds to maintain consistent organization.

What is the best way to add a new function to an existing JavaScript module?

The best way to add a new JavaScript function is following a TDD-driven workflow: write a failing test in the __tests__ directory first, then implement the feature in a lib/ module file using ES6 named exports to align with project conventions.

Does this JavaScript coding convention workflow require specific helper utilities?

Yes, this JavaScript coding convention workflow references specific helper utilities like firost, golgoth, and aberlaas to guide code writing and modification while maintaining project structure and consistency across modules.

How does test-driven development work for JavaScript module refactoring?

Test-driven development for JavaScript refactoring involves writing failing tests in a __tests__ directory before modifying module files, ensuring ES6 named exports and separation of concerns are maintained throughout the code modification process.

Why should I use named exports instead of default exports in JavaScript modules?

Named exports in JavaScript modules promote code quality and consistency by enforcing a clear separation of concerns, aligning with project conventions that require ES6 module syntax across all files in the lib/ directory structure.