跳到正文
cccskills
GitHub Copilot 官方免费在 GitHub 公开

routing

React Router v7 routing conventions for this SPA. USE WHEN: editing `app/routes.ts`, adding/removing a route, or changing navigation.

中文简介正在准备中。当前显示原文说明。

github/replica星标 29(GitHub 29 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md1.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Routing

Paths below are relative to this app's directory.

  • This app disables runtime SSR (ssr: false) and renders routes client-side. React Router still generates the SPA HTML shell during the build.
  • Routes are defined in app/routes.ts using React Router v7 config (the "framework" style).

General Structure

  • Main navigation structure:
    • Home: index("routes/home.tsx") at /
    • Discover section: /discover/models, /discover/tools
    • Build section: /build/agents, /build/tools
    • Operate section: /operate/dashboard, /operate/agents
    • Docs: /docs
  • Layout wrapper: components/shell/NavLayout.tsx provides top/left nav
  • Export topNavRoutes and getLeftNavRoutes(pathname) from routes.ts for navigation components
  • Type-safe routes via auto-generated types in .react-router/types/

Adding a Route

  1. Create the file in app/routes/
  2. Add it to app/routes.ts config array
  3. Use type-safe route imports: import type { Route } from "./+types/routeName"
  4. Run npm run type-check from this app's directory to regenerate route types and check TypeScript.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

accessibility-audit

GitHub Copilot 官方免费

Audits actual components and routes against applicable WCAG 2.2 A/AA criteria using consumer-owned design-system evidence and repository tools. Use when asked for an accessibility audit, a11y check, keyboard or focus review, contrast check, or screen-reader verification.

中文简介正在准备中。当前显示原文说明。

github/replica292026年10月27日 更新

add-seed-data

GitHub Copilot 官方免费

Creates or updates believable deterministic raw fixture scenarios without breaking an existing prototype. Use when asked to add or change fixtures, seed data, sample data, scenarios, or cross-record relationships. Not for UI redesign, live-data infrastructure, or unrelated commands.

中文简介正在准备中。当前显示原文说明。

github/replica292026年10月27日 更新

agent-browser

GitHub Copilot 官方免费

Use for explicit agent-browser CLI checks or a named browser capability neither the Copilot canvas nor configured Playwright MCP can supply. Ordinary rendered checks and browser selection belong to browser-canvas-validation.

中文简介正在准备中。当前显示原文说明。

github/replica292026年10月27日 更新

browser-canvas-validation

GitHub Copilot 官方免费

Use the Copilot browser canvas first for rendered route checks, interaction tests, screenshots and visual, responsive or accessibility evidence. Use configured isolated Playwright MCP only when the canvas is unavailable for a required check.

中文简介正在准备中。当前显示原文说明。

github/replica292026年10月27日 更新

code-review

GitHub Copilot 官方免费

Review Replica pull requests using the same shared conventions and project guides as implementation agents. Use when reviewing changes to code, tests, workflows, or documentation in this repository.

中文简介正在准备中。当前显示原文说明。

github/replica292026年10月27日 更新

component-design-system-review

GitHub Copilot 官方免费

Reviews existing UI components for design-system consistency, states, responsiveness and accessibility using consumer-owned context. Use when asked to review component quality, check design-system adherence or audit component consistency.

中文简介正在准备中。当前显示原文说明。

github/replica292026年10月27日 更新

查看 github 的全部技能

报告此技能的问题