$npx skillfedfor your agent

antfu

This skill pack brings Anthony Fu's opinionated development practices directly into your agent workflow. Leverage a carefully assembled set of tools and configurations that reflect real-world TypeScript and JavaScript project standards, enabling you to bootstrap new projects with established patterns and conventions.

antfu provides an opinionated ESLint configuration that replaces traditional Prettier setups. To configure antfu ESLint and code formatting, install the ESLint config package and extend it in your `.eslintrc` file. antfu's approach combines linting and formatting into a single tool, reducing configuration complexity. The setup automatically handles code style enforcement across your JavaScript and TypeScript files without requiring separate formatter configuration.

AI-generated summary based on this skill's SKILL.md

★ 5,665  313 MITupdated by antfu

Decision gist · record as of 2026-06-23

antfu provides an opinionated ESLint configuration that replaces traditional Prettier setups. To configure antfu ESLint and code formatting, install the ESLint config package and extend it in your `.eslintrc` file. antfu's approach combines linting and formatting into a single tool, reducing configuration complexity. The setup automatically handles code style enforcement across your JavaScript and TypeScript files without requiring separate formatter configuration.

manual: git clone https://github.com/antfu/skills → cp -r skills/skills/antfu ~/.claude/skills/antfu
skills/antfu/SKILL.md · version 73b5a013

Use it when

  • antfu's TypeScript project setup begins with initializing your project structure using antfu's recommended tooling.
  • antfu monorepo best practices rely on pnpm workspaces for dependency management and package isolation.

Verify before relying

Read SKILL.md below before installing (6 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

antfu/skills/antfu · repository language: TypeScript

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I set up antfu linting and formatting in my project?

antfu provides an opinionated ESLint configuration that replaces traditional Prettier setups. To configure antfu ESLint and code formatting, install the ESLint config package and extend it in your `.eslintrc` file. antfu's approach combines linting and formatting into a single tool, reducing configuration complexity. The setup automatically handles code style enforcement across your JavaScript and TypeScript files without requiring separate formatter configuration.

What is the best way to set up an antfu TypeScript project from scratch?

antfu's TypeScript project setup begins with initializing your project structure using antfu's recommended tooling. Start by configuring your `tsconfig.json` with antfu's recommended settings, then layer in the ESLint configuration for code quality. antfu emphasizes explicit imports and clear type separation, so organize your source files accordingly. Use pnpm as your package manager for optimal workspace support, and leverage antfu's CLI commands to scaffold and manage dependencies efficiently.

How can I build a monorepo using antfu conventions with pnpm workspaces?

antfu monorepo best practices rely on pnpm workspaces for dependency management and package isolation. Configure your `pnpm-workspace.yaml` to define workspace packages, then apply antfu's ESLint and TypeScript configurations at both the root and package levels. antfu supports pnpm catalogs for version management across packages, ensuring consistency. Structure your monorepo with antfu's organizational principles—clear package boundaries, shared tooling configs, and explicit dependency declarations—to maintain scalability and developer experience.

What are Anthony Fu's coding standards and organizational principles?

antfu's coding practices emphasize explicit imports, clear type separation, and isomorphic code patterns that work across environments. Anthony Fu's conventions prioritize readability and maintainability through opinionated defaults rather than endless configuration choices. antfu code organization guidelines recommend logical package structures, consistent naming patterns, and thoughtful dependency management. These standards extend to library publishing conventions, where antfu advocates for clear entry points, proper type exports, and well-documented APIs that reflect real-world usage patterns.

How do I use antfu tooling conventions efficiently in my development workflow?

antfu's package management relies on the `ni` command-line tool, which intelligently detects your package manager and runs appropriate commands. Use antfu's git hooks and lint-staged setup to enforce code quality before commits, ensuring standards compliance automatically. antfu's vitest testing patterns integrate seamlessly with the TypeScript configuration, enabling fast unit testing. The combination of these tools—ESLint configuration, TypeScript settings, pnpm workspaces, and automation hooks—creates a cohesive workflow that reduces manual enforcement and keeps your project aligned with antfu conventions.

What does antfu's philosophy on explicit imports and type separation mean for my codebase?

antfu emphasizes explicit imports to improve code clarity and reduce hidden dependencies, making it easier to understand what each module actually uses. Type separation strategies in antfu involve keeping type-only imports distinct from runtime imports using TypeScript's `import type` syntax, which improves tree-shaking and build performance. This approach, combined with antfu's isomorphic code practices, ensures your code remains maintainable across different environments and build targets. The philosophy prioritizes developer experience and long-term codebase health over short-term convenience.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Coding Practices

Code Organization

  • 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

Runtime Environment

  • Prefer isomorphic code: Write runtime-agnostic code that works in Node, browser, and workers whenever possible
  • Clear runtime indicators: When code is environment-specific, add a comment at the top of the file:
// @env node
// @env browser

TypeScript

  • Explicit return types: Declare return types explicitly when possible
  • Avoid complex inline types: Extract complex types into dedicated type or interface

(truncated - see the full file via the links below)

File tree — 6 files
skills/antfu/SKILL.md
skills/antfu/references/antfu-eslint-config.md
skills/antfu/references/app-development.md
skills/antfu/references/library-development.md
skills/antfu/references/monorepo.md
skills/antfu/references/setting-up.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Set up a new JavaScript/TypeScript project with antfu conventions”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

antfu
by hairyf · hairyf/skills

This skill collection brings antfu's opinionated JavaScript and TypeScript project setup conventions to your agent workflow. Built on Anthony Fu's widely-adopted standards, it provides a foundation for consistent, modern web development practices across your projects.

MITupdated Jun 2026
★ 24repo stars
hairy
by hairyf · hairyf/skills

Hairy packages a handpicked set of agent skills reflecting Hairyf's approach to contemporary web development. Built on proven foundations and extended with specialized capabilities, this collection captures real-world tooling choices and architectural patterns for developers seeking a focused, opinionated stack.

MITupdated Jun 2026
★ 24repo stars
pnpm
by hairyf · hairyf/skills

pnpm is a high-performance package manager designed for Node.js projects that prioritizes speed and storage efficiency. It streamlines dependency installation and management through innovative linking strategies, making it ideal for monorepos and large-scale development environments. Integrate pnpm into your workflow to reduce disk usage and accelerate build times across your projects.

MITupdated Jun 2026
★ 24repo stars
arch-tsdown
by hairyf · hairyf/skills

Set up a modern TypeScript library project using tsdown, a streamlined build tool for ESM packages. This skill automates project scaffolding with sensible defaults, letting you focus on writing code rather than configuration. Perfect for developers building reusable TypeScript modules.

MITupdated Jun 2026
★ 24repo stars
arch-tsdown-monorepo
by hairyf · hairyf/skills

This skill guides you through architecting a TypeScript monorepo using pnpm as your package manager and tsdown for efficient bundling. It combines proven patterns from the web development community with streamlined tooling to accelerate multi-package project setup.

MITupdated Jun 2026
★ 24repo stars
pnpm
by antfu · antfu/skills

This skill enables agents to handle Node.js package installation and dependency management through pnpm, a performant alternative to traditional package managers. Leverage pnpm's speed and storage efficiency to streamline your project's dependency lifecycle.

MITupdated Jun 2026
★ 5,665repo stars

More skills tsdown (MIT)

Tags
code-style-guidetypescript-conventionsmonorepo-toolingeslint-alternativepackage-managementtesting-frameworkgit-automationproject-scaffoldingtype-organizationdev-workflow