Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问clear审计通过

react-gradual-architectureReact gradual 架构

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

423

周安装

18

GitHub Stars

公开资料未说明

下载量

148
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:react-gradual-architecture(React gradual 架构)
来源仓库:https://github.com/vandriesh/react-gradual-architecture
仓库路径:skills/react-gradual-architecture
安装命令:
npx skills add https://github.com/vandriesh/react-gradual-architecture --skill react-gradual-architecture
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/vandriesh/react-gradual-architecture --skill react-gradual-architecture

简介

支持渐进式架构演进的 React 项目设计指导。

  • 适用于从小团队向大型系统平滑过渡的场景。
  • 提供模块化拆分和依赖解耦的实施策略。
  • 通过 GitHub 安装,需根据业务增长阶段调整节奏。
  • 建议在每次架构变更后进行回归测试。react-gradual-architecture 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

React Gradual Architecture

Lightweight guidance for organizing React code without over-structuring. The core idea: start small, minimum necessary (one file), extract only when it improves clarity or reuse. Contains 12 rules across 5 categories, prioritized by when to apply them in the development lifecycle.

When to Use This Skill

Reference these guidelines when:

  • Creating new React features or components
  • Organizing component files and folders
  • Refactoring a growing component
  • Deciding when to extract hooks, UI, or utils
  • Structuring feature directories and shared code
  • Creating feature documentation (README.md)

Rule Categories by Priority

PriorityCategoryWhen to ApplyPrefix
1FoundationBefore starting any featureframework-
2StartingWhen beginning a new featurestart-
3Organization & StructureWhen organizing files and foldersorganize-
4ExtractionWhen refactoring or extracting codeextract-
5Data & StateWhen managing types and statedata-, state-

Quick Reference

1. Foundation (CRITICAL)

  • framework-conventions - Follow framework conventions and keep domain code framework-agnostic
  • framework-react-router - Use .server suffix for server-only code (React Router / Remix)

2. Starting (CRITICAL)

  • start-small - Begin features in a single file;
  • if a file has more that 100 lines of code proceed with organization and extractions accordingly.
  • component-composition - Prefer composition over configuration; use children instead of many props (exception: variant props)

3. Organization & Structure

  • organize-features-folder - Place features under src/features/<feature>/ or app/features/<feature>/
  • organize-locality - Keep related files close to the feature
  • organize-reuse-boundaries - Wait for the second use before extracting shared code
  • organize-feature-readme - Create README.md for each feature documenting structure and specifications

4. Extraction

  • extract-scrolling - Extract when scanning becomes difficult
  • extract-to-share - Use hooks for React logic, plain functions for everything else
  • extract-ui-logic-utils - Extract UI, logic, and utils when concerns diverge
  • extract-container-presentational - Extract container (data) from presentational (UI) components

5. Data & State

  • data-types-placement - Define types where the data is born. NEVER create separate types.ts files
  • state-placement - Keep state local; lift only as high as needed

Rules Reference

The guidelines are organized into focused rule files. Reference the specific rules when making architectural decisions:

Foundation

Starting

Organization & Structure

Extraction

Data & State

How to Use

Read individual rule files for detailed explanations and code examples:

rules/start-small.md
rules/extract-scrolling.md
rules/organize-features-folder.md

Each rule file contains:

  • Brief explanation of why it matters
  • Examples showing the pattern
  • Guidance on when to apply it
  • Additional context and references

Core Principles:

  1. Start with the overview above to understand the incremental approach
  2. Reference specific rule files when making architectural decisions
  3. Apply the smallest change that restores clarity
  4. Extract only when it improves readability or enables reuse

Full Compiled Document

For the complete guide with all rules expanded and optimized for AI agents: AGENTS.md

Detailed Rule Documentation

See individual rule files in rules/ for in-depth explanations and code examples.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Cursor

29.35%
按下载量换算43

Claude Code

22.23%
按下载量换算33

windsurf

17.09%
按下载量换算25

trae

12.87%
按下载量换算19

OpenCode

7.87%
按下载量换算12

Codex

3.54%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills