.agent/skills/antfu-coding-style/SKILL.md
Opinionated coding style and tooling preferences by Anthony Fu.
npx skillsauth add spencergeee/spentrade antfu-coding-styleInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Goal: Maximal Developer Experience (DX) through minimalism and smart defaults. "Works out of the box."
constants.ts.const count: number = 0const count = 0const assertion object or String Unions.
type Mode = 'dark' | 'light' > enum Mode { ... }pnpm (Fast, disk efficient).ni (NPM/Yarn/PNPM/Bun Agnostic runner).
ni -> installnr dev -> run devnu -> upgradeVitest (Fast, Jest compatible, Native ESM).
*.test.ts.toMatchSnapshot() sparingly, prefer toMatchInlineSnapshot().<div text="red 4xl" hover="text-blue"> (Controversial but preferred by Antfu for clean template).<script setup lang="ts">.ref with .value or explicit .value macros if configured.defineProps and defineEmits at the top.watch / computed grouped together.The "Antfu" Vibe:
development
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
development
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
testing
Use when user needs capabilities Claude lacks (image generation, real-time X/Twitter data) or explicitly requests external models ("blockrun", "use grok", "use gpt", "dall-e", "deepseek")
development
Build production-ready Web3 applications, smart contracts, and decentralized systems. Implements DeFi protocols, NFT platforms, DAOs, and enterprise blockchain integrations. Use PROACTIVELY for smart contracts, Web3 apps, DeFi protocols, or blockchain infrastructure.