javascript-excellence

Apply DHH-inspired best practices to JavaScript and TypeScript code.

1|Updated Aug 7, 2024
One-click install
npx skills add https://github.com/tejovanthn/rasikalife --skill javascript-excellence
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: javascript-excellence
Source: https://github.com/tejovanthn/rasikalife/tree/main/.opencode/skill/javascript-excellence
Command: npx skills add https://github.com/tejovanthn/rasikalife --skill javascript-excellence

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers apply DHH-inspired best practices to JavaScript and TypeScript to write clearer, more maintainable code.

Core Features & Use Cases

  • Clarity over cleverness: write code that is easy to read and reason about.
  • Simplicity and expressiveness: prefer straightforward, readable implementations over over-engineered solutions.
  • Type-safe by default: leverage TypeScript features to improve reliability and collaboration.
  • Consistent conventions: follow sensible defaults and avoid premature abstractions.

Quick Start

Provide a real-world function or module and ask the AI to refactor it following the guidelines above.

Frequently Asked Questions about javascript-excellence

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

FAQPage Schema
How do I refactor JavaScript code to improve readability and maintainability?

Refactoring JavaScript for readability involves prioritizing clear, self-documenting code over cleverness. Focus on explicit naming, small focused functions, and straightforward implementations to ensure long-term maintainability.

What are the best practices for writing maintainable TypeScript?

Writing maintainable TypeScript involves leveraging type-safe defaults, modern language features, and consistent conventions. Avoid premature abstractions and prefer simple, expressive implementations over over-engineered solutions.

Does this JavaScript best practices approach work for both frontend and backend projects?

Yes, these JavaScript and TypeScript best practices apply to both frontend and backend projects. The guidelines cover coding style, type usage, testing patterns, and refactoring workflows across the entire development stack.

How do I use TypeScript features to write clearer code without over-engineering?

Use TypeScript features to be type-safe by default while avoiding premature abstractions. Enforce modern language features and explicit naming to create readable, self-documenting code prioritizing simplicity over complex solutions.

What is the best way to enforce consistent coding conventions in JavaScript modules?

Enforce consistent coding conventions by applying sensible defaults, explicit naming, and small focused functions. Following DHH-inspired best practices ensures JavaScript remains clear, maintainable, and avoids unnecessary cleverness.