一键导入
coding-conventions
Coding style and naming conventions for divine-web. Load when writing or editing TypeScript, React components, hooks, or styles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Coding style and naming conventions for divine-web. Load when writing or editing TypeScript, React components, hooks, or styles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Install Cloudflare skills and MCP servers for this agent. Load when you need to set up or verify Cloudflare agent tooling. The URL below is the canonical, always-current source of truth.
Commit and pull request conventions for divine-web. Load when creating commits, writing PR descriptions, or preparing branches for review.
Project structure and file organization for divine-web. Load when creating new files, moving code, or navigating the codebase.
Render a page component directly at subdomain root (/) without URL redirect in React Router SPAs. Use when: (1) Subdomain should show content at / instead of redirecting to /profile/id or similar, (2) User sees blank page because component relies on useParams() but there's no route param at /, (3) Want username.domain.com/ to feel like a personal website without /profile/xyz in the URL. Pattern involves edge-injected global data + component fallback to that data when route params missing.
Testing conventions for divine-web. Load when writing or modifying tests, or when verifying changes with Vitest or Playwright.
| name | coding-conventions |
| description | Coding style and naming conventions for divine-web. Load when writing or editing TypeScript, React components, hooks, or styles. |
.tsx. Utilities and non-component code: .ts.PascalCase named exports. Default exports only for page
components when router lazy loading requires it.useX prefix. Custom hooks live in src/hooks/.*Page.tsx suffix in src/pages/.*.test.ts(x), colocated with the source file.@/ alias for anything under src/.@/ internal
imports.tailwind-merge (twMerge) to resolve conflicting classes in composed
components.| Path | Contents |
|---|---|
src/components/ | Reusable UI components |
src/pages/ | Route-level page components |
src/hooks/ | Custom React hooks |
src/lib/ | Utility functions and shared logic |
src/contexts/ | React context providers |
src/types/ | Shared TypeScript type definitions |
src/test/ | Test setup and utilities |
// add logic here).TODO(#123): description. Bare TODO,
FIXME, or HACK without an issue reference will fail lint.eslint-rules/:
no-inline-script: forbids inline <script> tags in HTML.no-placeholder-comments: forbids TODO/FIXME without issue reference.require-webmanifest: ensures public/manifest.webmanifest exists.eslint-disable comments. Fix the lint issue instead.React.lazy() to load them.