nguyenphiikhanh/booking-me/antfu-coding-style
Claude Code and agent skill by nguyenphiikhanh/booking-me
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Opinionated coding style and tooling preferences by Anthony Fu.
Install
npx vskill@latest install nguyenphiikhanh/booking-me/antfu-coding-styleSKILL.md
The same SKILL.md was published earlier as gabrielmoreira/agent-skills-mirror/antfu-coding-style.
Antfu Coding Style & Philosophy
Goal: Maximal Developer Experience (DX) through minimalism and smart defaults. "Works out of the box."
1. Code Organization
- Single Responsibility: Keep files small. If you scroll too much, split it.
- Export: Use Named Exports for libraries, Default Exports for components.
- Constants: Extract magic strings/numbers to
constants.ts.
2. TypeScript Preferences
- Implicit over Explicit: Let TS infer types when obvious.
- Bad:
const count: number = 0 - Good:
const count = 0 - Return Types: Explicitly type return values for library limits (public API), infer for internal functions.
- No Enums: Use
const assertionobject or String Unions. type Mode = 'dark' | 'light'>enum Mode { ... }
3. Tooling Stack
- Package Manager:
pnpm(Fast, disk efficient). - Runner:
ni(NPM/Yarn/PNPM/Bun Agnostic runner). ni-> installnr dev-> run devnu-> upgrade- Testing:
Vitest(Fast, Jest compatible, Native ESM). - Naming:
*.test.ts. - Verification: Use
toMatchSnapshot()sparingly, prefertoMatchInlineSnapshot().
4. CSS / Styling
- UnoCSS: Atomic CSS engine.
- Attributify: Use attributes for styles to keep clean class strings.
<div text="red 4xl" hover="text-blue">(Controversial but preferred by Antfu for clean template).
5. Vue.js Specifics
- Script Setup:
<script setup lang="ts">. - ReactivityTransform: Previously experimental, now prefer
refwith.valueor explicit.valuemacros if configured. - Structure:
definePropsanddefineEmitsat the top.watch/computedgrouped together.
The "Antfu" Vibe:
- Delete dead code immediately.
- If it can be automated, write a script.
- Aesthetics matter: Code should look beautiful.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbookinghub/.agent/skills/antfu-coding-style/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nguyenphiikhanh/booking-me/antfu-coding-style)