Opinionated coding style and tooling preferences by Anthony Fu.
56
Quality
38%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.agent/skills/antfu-coding-style/SKILL.mdGoal: 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:
3395991
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.