编码规范
JoshuaShepherd2026-10-28查看 1576复制 931
为本仓库应用通用的 TypeScript、JavaScript、React 和 Node.js 质量规范。适用于审查或编写 TS/TSX、为提升清晰度而重构,或强制执行命名、不可变性和错误处理模式时。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md814 chars
--- name: coding-standards description: Applies universal TypeScript, JavaScript, React, and Node.js quality conventions for this repo. Use when reviewing or writing TS/TSX, refactoring for clarity, or enforcing naming, immutability, and error-handling patterns. --- # Coding standards (Cursor) ## Canonical source Read **`.claude/skills/coding-standards/SKILL.md`** for the full skill: React patterns, hooks, testing notes, and extended examples. ## In Cursor - Follow **`.cursor/rules/coding-standards-ts.mdc`** for day-to-day edits. - **Multi-tenant server code:** **`.cursor/rules/multi-tenancy.mdc`** and the **Repository-specific: ai-agents** section in **`.claude/skills/coding-standards/SKILL.md`**. - Prefer the full Claude skill when doing a deliberate style pass or onboarding-style documentation.