🛠️
FrontendTypeScript

Anthony Fu Conventions

by antfu

Anthony Fu Conventions is a Frontend skill for Claude Code, published by antfu in skills.

5.8K stars317 forkson antfu/skillsAdded 2026/08/15Repository updated 2026/06/23
agent-skillsskills
Install in seconds
Install Anthony Fu Conventions
Copy Anthony Fu Conventions into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/antfu/skills/tree/main/skills/antfu ~/.claude/skills/antfu

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/antfu/skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/antfu/SKILL.md in antfu/skills
Installs to
~/.claude/skills/antfu
Collection
One of 19 skills cataloged from this repository
Category
Frontend567 skills

What Anthony Fu Conventions does

Anthony Fu Conventions encodes Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use it when setting up new projects, configuring ESLint/Prettier alternatives, monorepos, library publishing, or when the user mentions Anthony Fu's preferences.

Anthony Fu Conventions is cataloged under Frontend on DirSkills. Anthony Fu Conventions comes from a repository tagged agent-skills and skills.

Documentation

README

Coding Practices

Code Organization

  • Single responsibility: Each source file should have a clear, focused scope/purpose
  • Split large files: Break files when they become large or handle too many concerns
  • Type separation: Always separate types and interfaces into types.ts or types/*.ts
  • Constants extraction: Move constants to a dedicated constants.ts file

Runtime Environment

  • Prefer isomorphic code: Write runtime-agnostic code that works in Node, browser, and workers whenever possible
  • Clear runtime indicators: When code is environment-specific, add a comment at the top of the file:
// @env node
// @env browser

TypeScript

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Anthony Fu Conventions

  • What else does antfu publish alongside Anthony Fu Conventions?

    Anthony Fu Conventions is one of 19 skills that DirSkills catalogs from antfu/skills, the repository it ships in. Its siblings there include Antfu Design, Nitro and Nuxt. Each one is a separate skill with its own page in this directory, installs the same way Anthony Fu Conventions does, and is maintained by antfu in that same repository. The rest of the collection is listed on the antfu/skills page.

  • How does Anthony Fu Conventions compare to other Frontend skills?

    Anthony Fu Conventions ranks #132 by stars among the 567 Frontend skills in this catalog. The most-starred ones next to it are Angular Developer, Android Clean Architecture and Accessibility. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Anthony Fu Conventions against them. Open each page to compare what they document and how they install.

More from antfu/skills

Anthony Fu Conventions is one of 19 skills cataloged on DirSkills from antfu/skills.

See all 19 skills
🎨
2w ago

Antfu Design

Antfu Design provides antfu-style design conventions for building interfaces with UnoCSS, using semantic tokens, light/dark parity, and micro-interaction polish. Use it when building or refactoring any interface with UnoCSS.
Frontend
5.8K317
🚀
2w ago

Nitro

Nitro is a framework-agnostic server toolkit for building and deploying web servers anywhere. Use it when working with nitro.config, server routes/event handlers, route rules, caching, storage, tasks, websockets, or deploying to Node, Bun, Deno, Cloudflare, or Vercel.
DevOps
5.8K317
🟩
2w ago

Nuxt

Nuxt provides server-side rendering, auto-imports, and file-based routing for Vue apps. Use when building Nuxt apps, server routes, useFetch, middleware, or hybrid rendering.
Frontend
5.8K317
🍍
2w ago

Pinia

Pinia is the official Vue state management library, type-safe and extensible. Use when defining stores, working with state/getters/actions, or implementing store patterns in Vue apps.
Frontend
5.8K317
📦
2w ago

Pnpm

Pnpm manages Node.js dependencies with strict resolution and a content-addressable store. Use it when running pnpm-specific commands, configuring workspaces via pnpm-workspace.yaml, or managing catalogs, patches, overrides, and config dependencies.
DevOps
5.8K317
📽️
2w ago

Slidev

Slidev creates and presents web-based slidedecks for developers using Markdown, Vue components, code highlighting, animations, and interactive features. Use it for technical talks, code walkthroughs, and teaching materials.
Frontend
5.8K317