aizen-gate/skills-reference/.agent/skills/antfu-coding-style/SKILL.md
Opinionated coding style and tooling preferences by Anthony Fu.
npx skillsauth add ahmad-ubaidillah/aizen-gate 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
Modern Angular (v20+) expert with deep knowledge of Signals, Standalone Components, Zoneless applications, SSR/Hydration, and reactive patterns.
development
Modern Angular UI patterns for loading states, error handling, and data display. Use when building UI components, handling async data, or managing component states.
tools
Master modern Angular state management with Signals, NgRx, and RxJS. Use when setting up global state, managing component stores, choosing between state solutions, or migrating from legacy patterns.
development
Migrate from AngularJS to Angular using hybrid mode, incremental component rewriting, and dependency injection updates. Use when upgrading AngularJS applications, planning framework migrations, or ...