Overview
antfu is an open-source productivity skill for Claude Code and compatible agents, published by antfu. Its author describes it as: “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…”. The project has 5.8k stars on GitHub and is available under the MIT license. Add it to your setup with `git clone https://github.com/antfu/skills ~/.claude/skills/antfu`.
What antfu 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
What’s inside
The SKILL.md for antfu is organised into these sections:
- Coding Practices
- Code Organization
- Runtime Environment
- TypeScript
- Explicitness
- Comments
- Testing (Vitest)
- Tooling Choices
- @antfu/ni Commands
- Checking npm Package Versions
- TypeScript Config
- ESLint Setup
Installation
Add antfu to your agent with:
git clone https://github.com/antfu/skills ~/.claude/skills/antfu Review a skill’s source before installing it — skills can instruct your agent to run commands. This command comes from the skill’s public repository, which is the source of truth for setup steps. New to skills? Read how to install Claude Code skills.
Supported agents
Neither the skill nor its repository names a specific agent. It uses the SKILL.md format, which several agents can load — check the repository for any agent-specific requirements.
License
antfu is published under the MIT license.
Strengths
- Clear MIT license — safe to read and adapt within its terms
- Ships in antfu/skills, an established project with 5,770 GitHub stars
Author
Topics
Frequently asked questions
- What does antfu 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.
- How do I install antfu?
- Run git clone https://github.com/antfu/skills ~/.claude/skills/antfu in your agent, then reload your skills. Review the source at https://github.com/antfu/skills before installing.
- Is antfu free to use?
- Yes. antfu is free and open source under the MIT license, so you can read, run, and adapt it within that license's terms.
- Where does antfu come from?
- antfu ships inside antfu/skills, a repository that contains 19 catalogued skills in total. The repository's 5,770 GitHub stars apply to that whole collection, not to this skill on its own.