- 编写简洁、技术性的 TypeScript 代码,提供准确的示例。
- 使用函数式和声明式编程模式;避免使用类。
- 优先使用迭代和模块化而不是代码重复。
- 使用带有辅助动词的描述性变量名(例如,isLoading、hasError)。
- 文件结构:导出的组件、子组件、辅助函数、静态内容、类型。
Nextjs Typescript Code Style And Structure Rules
TypeScript、Node.js 和 Next.js 项目中代码风格和结构的规则。
Nextjs Typescript Code Style And Structure Rules by liaosw97 · c022a9f
npx skillmds@latest add liaosw97/nextjs-typescript-code-style-and-structure-rules File contents
---name: nextjs-typescript-code-style-and-structure-rulesdescription: TypeScript、Node.js 和 Next.js 项目中代码风格和结构的规则。---- 编写简洁、技术性的 TypeScript 代码,提供准确的示例。- 使用函数式和声明式编程模式;避免使用类。- 优先使用迭代和模块化而不是代码重复。- 使用带有辅助动词的描述性变量名(例如,isLoading、hasError)。- 文件结构:导出的组件、子组件、辅助函数、静态内容、类型。
liaosw97/awesome-rules-skills/tree/main/plugins/nextjs/skills/nextjs-typescript-code-style-and-structure-rules commit c022a9fdc1
Frequently asked questions
Run npx skillmds@latest add liaosw97/nextjs-typescript-code-style-and-structure-rules in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
TypeScript、Node.js 和 Next.js 项目中代码风格和结构的规则。 It is listed under Web & Frontend on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
liaosw97 (@liaosw97) published this skill. Their other Agent Skills are listed on their SkillMD profile.