Opinionated coding style and tooling preferences by Anthony Fu.
31
25%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.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:
c4a059b
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.