antfu
仓库创建 2026年1月28日最近提交 1 个月前SkillHot 收录 22 天前
▸ 精选理由
适合用作新项目脚手架配置与团队风格统一的参考。
这个 Skill 做什么
汇总 Anthony Fu 在 JS/TS 项目中的约定、工具与最佳实践。
把 Anthony Fu 在 JS/TS 项目里常用的约定、工具和实战建议落地,涉及文件拆分、类型与常量分离、monorepo 配置和库发布等细节。当你新建项目、想统一团队风格或替换/配置 ESLint/Prettier 之类工具时会用到。特别之处是把零散经验抽成可复用的约定和脚手架建议,省去团队反复讨论和踩坑。
▸ 展开 SKILL.md 英文原文
Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use when setting up new projects, configuring ESLint/Prettier alternatives, monorepos, library publishing, or when the user mentions Anthony Fu's preferences.
5.7k
Stars
313
Forks
19
仓库内 Skill
+188
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/antfu/skills/main/skills/antfu/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/antfu/skills/main/skills/antfu/SKILL.md"SKILL.MD 节选查看完整文件 ↗
## Coding Practices ### Code Organization - **Single responsibility**: Each source file should have a clear, focused scope/purpose - **Split large files**: Break files when they become large or handle too many concerns - **Type separation**: Always separate types and interfaces into `types.ts` or `types/*.ts` - **Constants extraction**: Move constants to a dedicated `constants.ts` file ### Runtime Environment - **Prefer isomorphic code**: Write runtime-agnostic code that works in Node, browser, and workers whenever possible - **Clear runtime indicators**: When code is environment-specific, add a comment at the top of the file: ```ts // @env node // @env browser ``` ### TypeScript - **
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有