Skip to content

Antfu skill

Apply Anthony Fu's JavaScript and TypeScript tooling preferences to a compatible project.

Community · Anthony Fu
AuthorAnthony Fu
LicenceMIT
Sourceantfu/skills · SKILL.md on GitHub
Works inClaude 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

This is a community skill by Anthony Fu, not checked by us or by Anthropic. Skills can tell the agent to run code, read files or call the network. Before installing, read its SKILL.md and every script in the folder, and look for anything that does not match what it says it does.

What it does

  1. Inspect the project's runtime, scripts and established conventions.
  2. Choose applicable app, library or monorepo references.
  3. 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 folderWhat it is for
SKILL.mdCore 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 antfu

A 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/
AgentProject folderYour user folderNotes
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).
Only install skills you trust. Anthropic's advice is to use skills only from trusted sources, and to read every file of any other skill before using it: a skill can direct the agent to run commands, read files or send data in ways its description does not mention.

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

Skill categories

Buy me a coffee