Language

From Mte90/dotfiles · View interactive version

Language is an AI agent skill from the GitHub repository Mte90/dotfiles. Modern JavaScript (ES2022+) patterns for clean, maintainable code.

How to use this skill

Skill file

JavaScript Language Patterns

**Priority: P0 (CRITICAL)**

Implementation Guidelines

Anti-Patterns

Code

// Modern Syntax
const [x, ...rest] = items;
const name = user?.profile?.name ?? 'Guest';

// Async + Error Handling
async function getUser(id) {
  const res = await fetch(`/api/${id}`);
  return res.json(); // Errors propagate
}

// Private Fields
class Service {
  #key;
  constructor(k) {
    this.#key = k;
  }
}

Reference & Examples

For advanced patterns and functional programming:

See references/REFERENCE.md.

Related Topics

best-practices | tooling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.