antfu
An agent skill by antfu, from antfu/skills. Tags: code-quality, development, javascript, setup, typescript.
What it does
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.
Install
With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:
npx skills add antfu/skills --skill antfu
Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):
git clone --depth 1 https://github.com/antfu/skills
cp -r skills/skills/antfu ~/.claude/skills/antfu
Safety box score
Grade C, moderate risk: 28 of 100 risk points, rated 2026-09-22. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.
This skill is a documentation-only guide for setting up opinionated JavaScript/TypeScript projects, with templates for linting, CI, monorepos, and library publishing. It mostly affects files inside the repo, but the main risks are remote package/workflow fetches and an optional tag-triggered publish workflow if you adopt the templates.
| Category | Level | Why |
|---|---|---|
| Code & shell execution | 1 (low) | It recommends running package-manager and registry commands such as `pnpm run lint --fix`, `npx simple-git-hooks`, and `nlx fast-npm-meta`, but it ships no executable scripts of its own. |
| Network access | 2 (moderate) | The templates explicitly rely on networked fetches, including `nlx fast-npm-meta` and reusable GitHub Actions like `uses: sxzz/workflows/.github/workflows/release.yml@main`. |
| Filesystem reach | 1 (low) | Its scope is mostly repo-local config and workflow files such as `.gitignore`, `.github/workflows/*.yml`, `.vscode/extensions.json`, `eslint.config.mjs`, and `tsconfig.alias.json`. |
| Secrets & credentials | 0 (none) | It does not read credential stores or ask for secrets; the only secrets-related mention is adding `.env` to `.gitignore`, which is protective. |
| Privilege & persistence | 0 (none) | There is no sudo, service installation, shell startup modification, or other privilege-changing step. |
| Instruction hijack surface | 0 (none) | I found no instructions to ignore safeguards, hide actions, or follow remote prompt text; the content is conventional setup guidance. |
| Irreversible actions | 2 (moderate) | The library template includes an automated release path on tags, e.g. `on: push: tags: - 'v*'` with `with: publish: true`, which can publish artifacts after build. |
| Transparency | 2 (moderate) | Several dependencies are fetched from mutable external sources, notably `@main` reusable workflows and registry-run commands like `npx simple-git-hooks`, so a reviewer cannot fully inspect what will run ahead of time. |
Before installing
- Read `references/setting-up.md` and decide whether you want tag-triggered publishing (`tags: ['v*']`).
- Replace any `@main` reusable workflow refs with pinned SHAs before adopting the templates.
- Treat `npx`/`nlx` commands as networked code execution; test them in a scratch repo first.
Rated 2026-09-22 by an automated review of 6 files from the skill's repository.
Source
- Repository
- antfu/skills (all skills from this repository)
- Path
- skills/antfu/SKILL.md
- Branch
- main
- Updated
- 2026-09-22
Related skills
- expo-migrate-module — Framework (OSS). Migrate an existing Apple/Swift Expo native module from the Expo Modules API 1.0 definition DSL to the 2.0 macro API (sometimes called v2).
- principle-type-system-discipline — Apply when designing types, reviewing a function signature, or writing code in any statically-typed language.
- typescript-best-practices — TypeScript best practices. Use when reading or editing any .ts or .tsx file.
- tsdown — Bundle TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown.
- setup-ts-deep-modules — Wire dependency-cruiser into a TypeScript repo so each package is a deep module.
- typescript-pro — Implements advanced TypeScript type systems, creates custom type guards, utility types, and branded types, and configures tRPC for end-to-end type safety.