[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EKK1ATABJD99SPKAH798AG":3,"skill-same:01M6EKK1ATABJD99SPKAH798AG":89},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":24,"linkOnly":25,"markdownContent":26,"markdownBody":27,"frontMatter":28,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M6EKK1ATABJD99SPKAH798AG","antfu",null,"Anthony Fu's {Opinionated} preferences and best practices for web development","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fantfu\u002Fantfu\u002FSKILL.md",[],[5,19,20,21,22,23],"web","development","best practices","preferences","web development","2026-11-10 10:12:30",false,"---\nname: antfu\ndescription: Anthony Fu's {Opinionated} preferences and best practices for web development\nmetadata:\n  author: Anthony Fu\n  version: \"2026.1.28\"\n---\n\n# Anthony Fu's Preferences\n\nThis skill covers Anthony Fu's preferred tooling, configurations, and best practices for web development. This skill is opinionated.\n\n## Quick Summary\n\n| Category | Preference |\n|----------|------------|\n| Package Manager | pnpm |\n| Language | TypeScript (strict mode) |\n| Module System | ESM (`\"type\": \"module\"`) |\n| Linting & Formatting | @antfu\u002Feslint-config (no Prettier) |\n| Testing | Vitest |\n| Git Hooks | simple-git-hooks + lint-staged |\n| Documentation | VitePress (in `docs\u002F`) |\n\n---\n\n## Core Stack\n\n### Package Manager (pnpm)\n\nUse pnpm as the package manager.\n\nFor monorepo setups, use pnpm workspaces:\n\n```yaml\n# pnpm-workspace.yaml\npackages:\n  - 'packages\u002F*'\n```\n\n\nUse pnpm named catalogs in `pnpm-workspace.yaml` to manage dependency versions:\n\n| Catalog | Purpose |\n|---------|---------|\n| `prod` | Production dependencies |\n| `inlined` | Dependencies inlined by bundler |\n| `dev` | Development tools (linter, bundler, testing, dev-server) |\n| `frontend` | Frontend libraries bundled into frontend |\n\nCatalog names are not limited to the above and can be adjusted based on needs. Avoid using default catalog.\n\n#### @antfu\u002Fni\n\nUse `@antfu\u002Fni` for unified package manager commands. It auto-detects the package manager (pnpm\u002Fnpm\u002Fyarn\u002Fbun) based on lockfile.\n\n| Command | Description |\n|---------|-------------|\n| `ni` | Install dependencies |\n| `ni \u003Cpkg>` | Add dependency |\n| `ni -D \u003Cpkg>` | Add dev dependency |\n| `nr \u003Cscript>` | Run script |\n| `nu` | Upgrade dependencies |\n| `nun \u003Cpkg>` | Uninstall dependency |\n| `nci` | Clean install (like `pnpm i --frozen-lockfile`) |\n| `nlx \u003Cpkg>` | Execute package (like `npx`) |\n\nInstall globally with `pnpm i -g @antfu\u002Fni` if the commands are not found.\n\n### TypeScript (Strict Mode)\n\nAlways use TypeScript with strict mode enabled.\n\n```json\n{\n  \"compilerOptions\": {\n    \"target\": \"ESNext\",\n    \"module\": \"ESNext\",\n    \"moduleResolution\": \"bundler\",\n    \"strict\": true,\n    \"esModuleInterop\": true,\n    \"skipLibCheck\": true,\n    \"resolveJsonModule\": true,\n    \"isolatedModules\": true,\n    \"noEmit\": true\n  }\n}\n```\n\n### ESM (ECMAScript Modules)\n\nAlways work in ESM mode. Set `\"type\": \"module\"` in `package.json`.\n\n---\n\n## Code Quality\n\n### ESLint (@antfu\u002Feslint-config)\n\nUse `@antfu\u002Feslint-config` for both formatting and linting. This eliminates the need for Prettier.\n\nCreate `eslint.config.js` with `\u002F\u002F @ts-check` comment:\n\n```js\n\u002F\u002F @ts-check\nimport antfu from '@antfu\u002Feslint-config'\n\nexport default antfu()\n```\n\nAdd script to `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"lint\": \"eslint .\"\n  }\n}\n```\n\nWhen getting linting errors, try to fix them with `nr lint --fix`. Don't add `lint:fix` script.\n\n### Git Hooks (simple-git-hooks + lint-staged)\n\nUse `simple-git-hooks` with `lint-staged` for pre-commit linting:\n\n```json\n{\n  \"simple-git-hooks\": {\n    \"pre-commit\": \"pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged\"\n  },\n  \"lint-staged\": {\n    \"*\": \"eslint --fix\"\n  },\n  \"scripts\": {\n    \"prepare\": \"npx simple-git-hooks\"\n  }\n}\n```\n\n### Unit Testing (Vitest)\n\nUse Vitest for unit testing.\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"vitest\"\n  }\n}\n```\n\n**Conventions:**\n\n- Place test files next to source files: `foo.ts` → `foo.test.ts` (same directory)\n- High-level tests go in `tests\u002F` directory in each package\n- Use `describe` and `it` API (not `test`)\n- Use `expect` API for assertions\n- Use `assert` only for TypeScript null assertions\n- Use `toMatchSnapshot` for complex output assertions\n- Use `toMatchFileSnapshot` with explicit file path and extension for language-specific output (exclude those files from linting)\n\n---\n\n## Project Setup\n\n### Publishing (Library Projects)\n\nFor library projects, publish through GitHub Releases triggered by `bumpp`:\n\n```json\n{\n  \"scripts\": {\n    \"release\": \"bumpp -r\"\n  }\n}\n```\n\n### Documentation (VitePress)\n\nUse VitePress for documentation. Place docs under `docs\u002F` directory.\n\n```\ndocs\u002F\n├── .vitepress\u002F\n│   └── config.ts\n├── index.md\n└── guide\u002F\n    └── getting-started.md\n```\n\nAdd script to `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"docs:dev\": \"vitepress dev docs\",\n    \"docs:build\": \"vitepress build docs\"\n  }\n}\n```\n\n---\n\n## References\n\n### Project Setup\n\n| Topic | Description | Reference |\n|-------|-------------|-----------|\n| @antfu\u002Feslint-config | ESLint flat config for formatting and linting | [antfu-eslint-config](references\u002Fantfu-eslint-config.md) |\n| GitHub Actions | Preferred workflows using sxzz\u002Fworkflows | [github-actions](references\u002Fgithub-actions.md) |\n| .gitignore | Preferred .gitignore for JS\u002FTS projects | [gitignore](references\u002Fgitignore.md) |\n| VS Code Extensions | Recommended extensions for development | [vscode-extensions](references\u002Fvscode-extensions.md) |\n\n### Development\n\n| Topic | Description | Reference |\n|-------|-------------|-----------|\n| App Development | Preferences for Vue\u002FVite\u002FNuxt\u002FUnoCSS web applications | [app-development](references\u002Fapp-development.md) |\n| Library Development | Preferences for bundling and publishing TypeScript libraries | [library-development](references\u002Flibrary-development.md) |\n| Monorepo | pnpm workspaces, centralized alias, Turborepo | [monorepo](references\u002Fmonorepo.md) |\n","# Anthony Fu's Preferences\n\nThis skill covers Anthony Fu's preferred tooling, configurations, and best practices for web development. This skill is opinionated.\n\n## Quick Summary\n\n| Category | Preference |\n|----------|------------|\n| Package Manager | pnpm |\n| Language | TypeScript (strict mode) |\n| Module System | ESM (`\"type\": \"module\"`) |\n| Linting & Formatting | @antfu\u002Feslint-config (no Prettier) |\n| Testing | Vitest |\n| Git Hooks | simple-git-hooks + lint-staged |\n| Documentation | VitePress (in `docs\u002F`) |\n\n---\n\n## Core Stack\n\n### Package Manager (pnpm)\n\nUse pnpm as the package manager.\n\nFor monorepo setups, use pnpm workspaces:\n\n```yaml\n# pnpm-workspace.yaml\npackages:\n  - 'packages\u002F*'\n```\n\n\nUse pnpm named catalogs in `pnpm-workspace.yaml` to manage dependency versions:\n\n| Catalog | Purpose |\n|---------|---------|\n| `prod` | Production dependencies |\n| `inlined` | Dependencies inlined by bundler |\n| `dev` | Development tools (linter, bundler, testing, dev-server) |\n| `frontend` | Frontend libraries bundled into frontend |\n\nCatalog names are not limited to the above and can be adjusted based on needs. Avoid using default catalog.\n\n#### @antfu\u002Fni\n\nUse `@antfu\u002Fni` for unified package manager commands. It auto-detects the package manager (pnpm\u002Fnpm\u002Fyarn\u002Fbun) based on lockfile.\n\n| Command | Description |\n|---------|-------------|\n| `ni` | Install dependencies |\n| `ni \u003Cpkg>` | Add dependency |\n| `ni -D \u003Cpkg>` | Add dev dependency |\n| `nr \u003Cscript>` | Run script |\n| `nu` | Upgrade dependencies |\n| `nun \u003Cpkg>` | Uninstall dependency |\n| `nci` | Clean install (like `pnpm i --frozen-lockfile`) |\n| `nlx \u003Cpkg>` | Execute package (like `npx`) |\n\nInstall globally with `pnpm i -g @antfu\u002Fni` if the commands are not found.\n\n### TypeScript (Strict Mode)\n\nAlways use TypeScript with strict mode enabled.\n\n```json\n{\n  \"compilerOptions\": {\n    \"target\": \"ESNext\",\n    \"module\": \"ESNext\",\n    \"moduleResolution\": \"bundler\",\n    \"strict\": true,\n    \"esModuleInterop\": true,\n    \"skipLibCheck\": true,\n    \"resolveJsonModule\": true,\n    \"isolatedModules\": true,\n    \"noEmit\": true\n  }\n}\n```\n\n### ESM (ECMAScript Modules)\n\nAlways work in ESM mode. Set `\"type\": \"module\"` in `package.json`.\n\n---\n\n## Code Quality\n\n### ESLint (@antfu\u002Feslint-config)\n\nUse `@antfu\u002Feslint-config` for both formatting and linting. This eliminates the need for Prettier.\n\nCreate `eslint.config.js` with `\u002F\u002F @ts-check` comment:\n\n```js\n\u002F\u002F @ts-check\nimport antfu from '@antfu\u002Feslint-config'\n\nexport default antfu()\n```\n\nAdd script to `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"lint\": \"eslint .\"\n  }\n}\n```\n\nWhen getting linting errors, try to fix them with `nr lint --fix`. Don't add `lint:fix` script.\n\n### Git Hooks (simple-git-hooks + lint-staged)\n\nUse `simple-git-hooks` with `lint-staged` for pre-commit linting:\n\n```json\n{\n  \"simple-git-hooks\": {\n    \"pre-commit\": \"pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged\"\n  },\n  \"lint-staged\": {\n    \"*\": \"eslint --fix\"\n  },\n  \"scripts\": {\n    \"prepare\": \"npx simple-git-hooks\"\n  }\n}\n```\n\n### Unit Testing (Vitest)\n\nUse Vitest for unit testing.\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"vitest\"\n  }\n}\n```\n\n**Conventions:**\n\n- Place test files next to source files: `foo.ts` → `foo.test.ts` (same directory)\n- High-level tests go in `tests\u002F` directory in each package\n- Use `describe` and `it` API (not `test`)\n- Use `expect` API for assertions\n- Use `assert` only for TypeScript null assertions\n- Use `toMatchSnapshot` for complex output assertions\n- Use `toMatchFileSnapshot` with explicit file path and extension for language-specific output (exclude those files from linting)\n\n---\n\n## Project Setup\n\n### Publishing (Library Projects)\n\nFor library projects, publish through GitHub Releases triggered by `bumpp`:\n\n```json\n{\n  \"scripts\": {\n    \"release\": \"bumpp -r\"\n  }\n}\n```\n\n### Documentation (VitePress)\n\nUse VitePress for documentation. Place docs under `docs\u002F` directory.\n\n```\ndocs\u002F\n├── .vitepress\u002F\n│   └── config.ts\n├── index.md\n└── guide\u002F\n    └── getting-started.md\n```\n\nAdd script to `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"docs:dev\": \"vitepress dev docs\",\n    \"docs:build\": \"vitepress build docs\"\n  }\n}\n```\n\n---\n\n## References\n\n### Project Setup\n\n| Topic | Description | Reference |\n|-------|-------------|-----------|\n| @antfu\u002Feslint-config | ESLint flat config for formatting and linting | [antfu-eslint-config](references\u002Fantfu-eslint-config.md) |\n| GitHub Actions | Preferred workflows using sxzz\u002Fworkflows | [github-actions](references\u002Fgithub-actions.md) |\n| .gitignore | Preferred .gitignore for JS\u002FTS projects | [gitignore](references\u002Fgitignore.md) |\n| VS Code Extensions | Recommended extensions for development | [vscode-extensions](references\u002Fvscode-extensions.md) |\n\n### Development\n\n| Topic | Description | Reference |\n|-------|-------------|-----------|\n| App Development | Preferences for Vue\u002FVite\u002FNuxt\u002FUnoCSS web applications | [app-development](references\u002Fapp-development.md) |\n| Library Development | Preferences for bundling and publishing TypeScript libraries | [library-development](references\u002Flibrary-development.md) |\n| Monorepo | pnpm workspaces, centralized alias, Turborepo | [monorepo](references\u002Fmonorepo.md) |\n",{"name":5,"metadata":29,"description":7},{"author":30,"version":31},"Anthony Fu","2026.1.28","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fantfu\u002Fantfu",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill antfu",{"tool":47,"command":48},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill antfu",{"tool":50,"command":51},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill antfu","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fantfu\u002Fantfu\u002FSKILL.md",true,[55,61,65,69,73,77,81,85],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fantfu-eslint-config.md","REFERENCE","参考文档",6077,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fantfu\u002Fantfu\u002Freferences\u002Fantfu-eslint-config.md",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fapp-development.md",1149,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fantfu\u002Fantfu\u002Freferences\u002Fapp-development.md",{"path":66,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fgithub-actions.md",1168,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fantfu\u002Fantfu\u002Freferences\u002Fgithub-actions.md",{"path":70,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fgitignore.md",311,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fantfu\u002Fantfu\u002Freferences\u002Fgitignore.md",{"path":74,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Flibrary-development.md",1848,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fantfu\u002Fantfu\u002Freferences\u002Flibrary-development.md",{"path":78,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fmonorepo.md",2514,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fantfu\u002Fantfu\u002Freferences\u002Fmonorepo.md",{"path":82,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fvscode-extensions.md",872,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fantfu\u002Fantfu\u002Freferences\u002Fvscode-extensions.md",{"path":86,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":87,"sourceHtmlUrl":88},"skill-report.json",11572,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fantfu\u002Fantfu\u002Fskill-report.json",[90,99,108,117,123,129],{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":24},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[96,97,98],"model","model hierarchy","model hierarchy skill",{"skillNo":100,"name":101,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":24},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[105,106,107],"MCP","zoom","zoom mcp",{"skillNo":109,"name":110,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":24},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[114,115,116,106],"sdk","zoom apps sdk","apps",{"skillNo":118,"name":119,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":24},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[119],{"skillNo":124,"name":125,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":24},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[125],{"skillNo":130,"name":131,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":24},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[131]]