Antfu skill
Apply Anthony Fu's JavaScript and TypeScript tooling preferences to a compatible project.
Community · Anthony Fu| Author | Anthony Fu |
|---|---|
| Licence | MIT |
| Source | antfu/skills · SKILL.md on GitHub |
| Works in | Claude Code · Codex, Gemini CLI, Cursor, Copilot |
| Read from the source on |
The antfu skill describes Anthony Fu's opinionated JavaScript and TypeScript project conventions.
It covers explicit imports, pnpm catalogs, ESLint, Vitest, Knip and library tooling. These are author preferences, not a requirement to replace an existing project's approved stack.
From the skill's SKILL.md: antfu
What it does
- Inspect the project's runtime, scripts and established conventions.
- Choose applicable app, library or monorepo references.
- Apply authorized changes and run the project's actual checks.
What you get
- Reviewable configuration and code changes, with the relevant checks recorded.
When to use it
- Start or maintain a project that deliberately adopts these conventions.
When not to use it
- Replacing a working toolchain or publishing a package without authorization.
What it needs
- A coding agent and the target project's Node/package-manager tooling; recommended development packages are installed separately.
Files in the skill
| File or folder | What it is for |
|---|---|
SKILL.md | Core conventions and task-specific references; keep the complete reference folder. |
references/ | Core conventions and task-specific references; keep the complete reference folder. |
Licence as found in the repository on 2026-11-27: MIT.
Example prompts
Type one of these after installing; naming the skill makes sure it is used.
- Review this library against antfu conventions without replacing its build system.
- Plan a pnpm catalog setup and state the affected packages.
- Check explicit imports and runtime boundaries using the existing CI command.
How to install antfu
Install only the intended skill
The source also recommends a larger skills pack. The targeted command installs this entry; copying its folder preserves its references. Lifecycle hooks, dependency updates and release commands require separate review.
npx skills add antfu/skills --skill antfuA skill is a folder with a SKILL.md file. You install it once; the agent reads its short description at the start of each session and loads the full instructions only when a request matches. Pick the place you use:
Claude Code: copy the folder into your skills folder
Put the skill's folder in ~/.claude/skills/ to use it in every project on this computer, or in .claude/skills/ inside a repository to share it with everyone who works there (commit it).
git clone --depth 1 https://github.com/antfu/skills.git
mkdir -p ~/.claude/skills
cp -R skills/skills/antfu ~/.claude/skills/Claude Code notices new or changed skills in these folders during the session. If the skills folder did not exist when the session started, run /reload-skills once. Then type /antfu or just describe the task.
On Windows, run the commands in Git Bash or WSL, or copy the folder into the same place with File Explorer.
Codex, Gemini CLI, Cursor and GitHub Copilot
These agents read the same SKILL.md folders. The one folder all four accept inside a project is .agents/skills/, so this copies the skill there:
git clone --depth 1 https://github.com/antfu/skills.git
mkdir -p .agents/skills
cp -R skills/skills/antfu .agents/skills/| Agent | Project folder | Your user folder | Notes |
|---|---|---|---|
| OpenAI Codex | .agents/skills/ | ~/.agents/skills/ | Type $ or run /skills to pick a skill; Codex also chooses one when your task matches. |
| Gemini CLI | .agents/skills/.gemini/skills/ | ~/.agents/skills/~/.gemini/skills/ | Or install from Git with gemini skills install <git URL> --path <folder> --consent. Google replaced Gemini CLI with Antigravity CLI for free-tier and Google One users on 18 June 2026; Antigravity uses .agents/skills/ in a project and ~/.gemini/config/skills/ for you. |
| Cursor | .agents/skills/.cursor/skills/ | ~/.agents/skills/~/.cursor/skills/ | Type / in Agent chat to pick a skill. Cursor also reads Claude Code's .claude/skills/ folders. |
| GitHub Copilot | .github/skills/.agents/skills/.claude/skills/ | ~/.copilot/skills/~/.agents/skills/ | Works in Copilot CLI, the cloud agent, and agent mode in VS Code, Visual Studio and JetBrains (IDE support depends on the version). Or run gh skill install OWNER/REPOSITORY SKILL (public preview, GitHub CLI 2.90.0 or later). |
Sources for these steps
Checked against each vendor's documentation on 2026-11-14:
Keep tooling changes scoped
Review existing scripts before adopting examples. A prepare hook can alter Git hooks or skill links; a release command can tag and push. Treat these effects as distinct authorized actions.
Use the appropriate reference
App, library and monorepo guidance solve different problems. Inspect the chosen path and actual check results instead of asserting compliance from copied configuration.
Questions about antfu
Are these universal JavaScript rules?
No. They are Anthony Fu's preferences. Apply them within the target project's established requirements.
Does installing the skill install its tools?
No. ESLint, Vitest, Knip and other packages remain project dependencies with their own requirements.
Will it publish my package?
The source describes release workflows, but installation does not authorize tags, pushes or package publication.
Is the collection's performance proven?
The README calls the collection a proof of concept and invites practical feedback. This page makes no quality or speed guarantee.
More AI skills
Related skills
Antfu Create PR skill
Community · Anthony FuPrepare an evidence-backed GitHub pull request with the correct diff range and review context.Tailwind Theme Builder skill
Community · Jeremy Dawes (Jezweb)Set up semantic Tailwind v4 tokens and light, dark and system themes in a Vite React project.React Patterns skill (Jezweb)
Community · Jeremy Dawes (Jezweb)Review React composition, async waterfalls and rendering costs in priority order.Daymade Skill Creator
Community · daymadeCreate and improve skills while preserving source ownership, capabilities and evidence boundaries.Caveman skill
Community · JuliusBrusseeShorten agent replies while preserving code, negations, paths, numbers and units.Leader skill (Khazix)
Community · KKKKhazixTurn a vague idea into a bounded execution brief with evidence, checkpoints and stop conditions.