antfu
Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use when setting up new projects, configurin…
What it does
- 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
- 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:
- Explicit return types: Declare return types explicitly when possible
Requirements & configuration
- Prefer this over npm view <pkg> version when you only need the latest version, and over reading package.json from the registry directly.
- Avoid the default catalog. Catalog names can be adjusted per project needs.
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use when setting up new projects, configuring ESLint/Prettier alternatives, monorepos, library publishing, or when the user mentions Anthony Fu's preferences.
Source
Repository: https://github.com/antfu/skills
antfu FAQ
What does the antfu skill do?
Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use when setting up new projects, configuring ESLint/Prettier alternatives, monorepos, library publishing, or when the user mentions Anthony Fu's preferences. 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
What does antfu require?
Prefer this over npm view <pkg> version when you only need the latest version, and over reading package.json from the registry directly. Avoid the default catalog. Catalog names can be adjusted per project needs.
How do I install antfu?
Run: npx -y skills add https://github.com/antfu/skills --skill antfu --agent claude-code — the source lives at github.com/antfu/skills.
Maintain antfu?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/antfu-skills-antfu?ref=badge) npx agentictools info skills/antfu-skills-antfu The second line is the CLI lookup for this page — handy in READMEs and docs.