antfu

by antfu 5.8k MIT Updated Jun 23, 2026
antfu skill by antfu
antfu — Productivity skill by antfu

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

Installation

Add antfu to your agent with:

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

Always review a skill's source before installing it. This command comes from the skill's public repository; the linked repo is the source of truth for exact setup steps.

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

When to use it

Reach for antfu when you want productivity help from your agent without writing the same instructions every session. Load the skill and the agent picks it up automatically for relevant tasks.

Strengths

  • Clear MIT license — safe to read and adapt
  • Ships in antfu/skills, an established project with 5,770 GitHub stars
  • Actively maintained (recent commits)

Topics

agent-skillsskills

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.

Related skills

More Productivity →

Curated AI coding agent skills and AGENTS.md playbooks for Codex, Claude Code, Cursor, OpenClaw, and other SKILL.md-compatible tools.

458 mxyhi Apache-2.0

数字生命卡兹克(Khazix)的公众号长文写作skill。当用户需要撰写公众号文章、写稿子、续写文章、根据素材产出长文时使用。触发词包括但不限于:写文章、写稿子、帮我写、续写、扩写、公众号文章、长文、出稿、按我的风格写。即使用户只是说"帮我把这个写成文章"或"用我的风格写一下",只要上下文涉及内容创作和公众号输出,都应该触发。也适用于用户丢过来一个PDF、brief、新闻链接、语音转文字或任何素材说"帮我写篇文章"的场景。不要用于短内容(小红书帖子、推特、朋友圈)或纯标题摘要生成(那个用wechat-title skill)。

20k KKKKhazix MIT

把一句话的想法拆成 AI agent 能独立跑完的目标任务书。用户说「帮我给 agent 写个目标」「帮我详细拆一下这个目标」「写个任务书/brief 给 agent」「写个 goal 提示词」「让 agent 自己跑这个项目」「把活分给几个 agent 并行」时使用。先进代码库实测、必要时联网调研,再一次性提问(≤5 个),产出一份 ≤4000 字符、直接粘进 /goal 就能跑的任务书,含实测数字、白名单地界、防作弊验收和断点续跑。执行型与探索型(调研/选型/找方案)自动分流。

20k KKKKhazix MIT

A curated collection of 1000+ agent skills from official dev teams and the community, compatible with Claude Code, Codex, Gemini CLI, Cursor, and more.

29k VoltAgent MIT

AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs

49k CherryHQ AGPL-3.0-only