spatie avatar

Spatie Javascript

This one enforces Spatie's JavaScript and TypeScript conventions, which are opinionated but sensible if you like wider lines and more spacing than typical JS defaults. It pushes for 4-space indents and 120-character line widths in Prettier, strict equality checks everywhere, const over let, and full variable names in multi-line functions. The destructuring and arrow function guidance is straightforward: use them when they make code clearer, skip them when they don't. If you're working on a Spatie project or just prefer their house style to Airbnb or Standard, this keeps everything aligned without thinking about it.

skills.sh installs
557
GitHub stars
98
last updated
Aug 21, 2026

Install

$ npx -y skills add spatie/guidelines-skills --skill spatie-javascript --agent claude-code

Installs into .claude/skills of the current project.

Files

Spatie JavaScript Guidelines

Overview

Apply Spatie's JavaScript coding standards to keep JS/TS code consistent and readable.

When to Activate

  • Activate this skill for any JavaScript or TypeScript coding work.
  • Activate this skill when working on .js, .ts, .jsx, .tsx, or .vue files.
  • Activate this skill when configuring Prettier for a project.

Scope

  • In scope: JavaScript, TypeScript, Vue single-file components, Prettier configuration.
  • Out of scope: PHP, Laravel, CSS-only files, server configuration.

Workflow

  1. Identify the JavaScript, TypeScript, Vue, or Prettier artifact being changed.
  2. Read references/spatie-javascript-guidelines.md and focus on the relevant sections.
  3. Apply Prettier configuration first, then the language rules relevant to the change.

Sponsors

Details

Repository
github.com/spatie/guidelines-skills
First seen
Jun 3, 2026

More from spatie/guidelines-skills

All 4

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs