一键导入
standards
Master index for project coding standards. Load this to get a summary; load individual skills below for detailed rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Master index for project coding standards. Load this to get a summary; load individual skills below for detailed rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Backend API coding standards — server file structure, response envelope, error handling, import rules, and route organization.
Universal file and folder organization rules — naming conventions, refactoring, and when to split files.
Frontend React coding standards — component structure, hooks, Panda CSS styling, state management, usecase extraction, react-query usage, sub-component barrel imports, and strict import ordering.
基于 SOC 职业分类
| name | standards |
| description | Master index for project coding standards. Load this to get a summary; load individual skills below for detailed rules. |
This project's standards are split into separate skills for focused reference.
| Skill | Purpose |
|---|---|
file-organization | Naming conventions, folder structure, when/how to split files into folders |
frontend | React component structure, hooks, Panda CSS styling, state management, frontend import order, usecase extraction, sub-component barrel imports |
backend | Server file SoC (router / types / utils split), API response envelope, error handling, server import order, absolute vs relative imports |
@/ internal → relative imports by depth (../../ → ../ → ./). Within each depth: value imports → import type → import {} from './styles'. Blank line between each section.import type { ... } for type-only imports.index.ts, types.ts, utils.ts, etc.).@/*) work only inside src/. Files in server/, scripts/, etc. use relative imports.{ data, meta } (success) or { errors, meta, data? } (error) envelope with proper HTTP status codes.options object for parameters, infer return type (no explicit Return interface). If complex, split into a folder with types.ts, constants.ts, etc.useState, useCallback, useEffect, useMemo, useRef in .tsx files. All logic goes in usecase hooks, composed by an "actions" usecase.For detailed rules, load the specific skill (e.g. skill("backend"), skill("frontend"), skill("file-organization")).