AGENT SKILL

speclite-react-project-context-and-review

Analyze a React project from repository evidence and write a framework-specific context and review note. Use when user mentions 'React project context', 'React architecture review', 'React component review', 'React migration review', 'React testing strategy', 'React 状态管理', 'React 路由', 'React 组件架构', or asks for evidence-based React frontend analysis. Requires project files, lockfile, official docs, or user-provided materials for version and API claims.

License 许可
MIT
所属仓库
flanliulf/SpecLite
最近更新
2026-11-12
Stars
★ 4
Forks
0

01 前言 Front Matter

name
speclite-react-project-context-and-review
metadata
{ "author": "fancyliu", "catalog": "speclite", "version": "1.0.0" }
description
Analyze a React project from repository evidence and write a framework-specific context and review note. Use when user mentions 'React project context', 'React architecture review', 'React component review', 'React migration review', 'React testing strategy', 'React 状态管理', 'React 路由', 'React 组件架构', or asks for evidence-based React frontend analysis. Requires project files, lockfile, official docs, or user-provided materials for version and API claims.
allowed-tools
[ "Read", "Write", "Bash", "Grep", "Glob" ]

02 资源文件 3

03 SKILL.md 正文

Speclite React Project Context And Review

[Overview(技能说明)] Speclite React Project Context And Review 是 ecosystem-frontend-react module 的前端生态分析工作流。它面向已经选择 React ecosystem module 的目标项目,用代码事实、lockfile、配置文件、测试文件、官方文档或用户资料建立 React 项目上下文,并输出组件架构、state、routing、testing、accessibility、build 和 migration review 结论。

[Core Capabilities(核心能力)] - 项目事实发现:读取 package.json、workspace 配置、lockfile、TypeScript / bundler / test 配置和源码入口,确认 React project 边界。 - 版本证据提取:React、React DOM、router、state library、test runner 和 build tool 版本必须来自 lockfile、package manager output、官方 docs 或用户提供资料。 - 组件架构审查:识别页面、route、feature、shared component、hook、context、server/client boundary 和 design-system usage。 - 状态与数据流审查:整理 local state、Context、Redux、Zustand、TanStack Query、Relay、Apollo 或其它状态/数据工具的实际使用证据。 - 路由与构建审查:基于证据分析 React Router、Next.js、Remix、Vite、Webpack、Turbopack 或 monorepo build wiring,不从依赖名臆测 runtime 行为。 - 测试与可访问性审查:检查 unit/component/e2e 测试、Testing Library、Vitest/Jest/Playwright/Cypress、ARIA 和 keyboard/focus 证据。 - 迁移风险记录:对 React major upgrade、router migration、state consolidation 或 framework migration 给出 evidence-linked risk list。

[Workflow(执行流程)] 详细步骤见 references/react-project-context-and-review-workflow.md。

1. 确认 `{project-root}` 与输出位置;若用户未给输出目录,先询问。
2. 收集 React evidence:manifest、lockfile、package manager output、framework config、source entry、test config、CI 和用户资料。
3. 只记录可验证事实。框架版本、API 语义和迁移建议不得来自记忆或猜测;缺证据时写入 `Unknowns(未知项)`。
4. 分析组件/route/state/testing/build/accessibility/migration 维度,并给出文件路径级证据。
5. 输出 Markdown review note 到用户指定位置,默认建议 `{project_knowledge}/frontend/react-project-context-and-review.md`。

[Notes(注意事项)] - 本 Skill 只处理 React-specific 前端项目事实;通用 UX、PRD、Architecture、Story creation 和 Code Review 仍属于 sdlc workflow。 - 不要硬编码 React、React Router、Next.js、Vite 或测试框架的最新版本;必须从目标项目文件、lockfile、官方 docs 或用户资料取证。 - SpecLite 仍是 CLI + filesystem control plane;本 Skill 不创建 Web UI、dashboard、browser runtime 或 GUI product scope。 - 如果项目同时包含 Vue、Angular、Svelte 或 backend services,只分析与 React evidence 直接相关的范围,并把其它生态写为 out-of-scope。

04 同仓库更多 Skills

flanliulf
flanliulf/SpecLite

speclite-dev-story

暂无简介

★ 4
flanliulf
flanliulf/SpecLite

speclite-code-review-01-reviewer

Fixture-owned installed skill entry for the minimal artifact loop.

★ 4
flanliulf
flanliulf/SpecLite

speclite-skill-lint

只读检查 Skill 定义;用于 lint skill、check skill、检查技能或评估 Skill 规范。区分基础格式、Codex 适配和 SpecLite 约定,报告证据及未检查项;Agent 定义包转交 speclite-agent-lint。

★ 4
flanliulf
flanliulf/SpecLite

speclite-skill-creator

创建或迭代 SpecLite workflow Skill;用于 create skill、新建技能、生成技能包或封装工作流。设计入口、辅助资源和验证用例;Agent 定义包转交 speclite-agent-creator。

★ 4
flanliulf
flanliulf/SpecLite

speclite-html-ppt-generator

生成 SpecLite-owned 单文件 HTML PPT。用于用户要求创建 docs presentation、HTML PPT、网页 slides、Swiss Style deck、杂志风 deck,或其他可直接浏览器打开的介绍/分享型 deck。核心能力:使用本 Skill 内置模板、主题、layout 和 validator 生成横向翻页 HTML,并避免依赖外部个人 skill 路径。

★ 4
flanliulf
flanliulf/SpecLite

speclite-docs-intro-ppt-creator

生成 SpecLite docs 下的介绍型 HTML PPT。用于用户要求把某个项目体系、系统设计、治理机制、理念或工作流总结成 docs presentation、HTML PPT、网页 slides、介绍 deck。核心能力:限定输出目录、基于事实材料规划叙事、调用 speclite-html-ppt-generator 生成单 HTML deck,并用确定性检查和浏览器抽样收口。

★ 4