npx skills add https://github.com/pproenca/dot-skills --skill feature-arch适用于按功能组织 React 应用程序的全面架构指南,支持多团队独立开发的规模化开发。包含 8 大类共 42 条规则,按影响程度从关键(目录结构、导入)到渐进(命名约定)进行优先级排序。
在以下情况下参考本指南:
| 优先级 | 类别 | 影响程度 | 前缀 |
|---|---|---|---|
| 1 | 目录结构 | 关键 | struct- |
| 2 | 导入与依赖 | 关键 | import- |
| 3 | 模块边界 | 高 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
bound-| 4 | 数据获取 | 高 | fquery- |
| 5 | 组件组织 | 中高 | fcomp- |
| 6 | 状态管理 | 中 | fstate- |
| 7 | 测试策略 | 中 | test- |
| 8 | 命名约定 | 低 | name- |
struct-feature-folders - 按功能而非技术类型组织struct-feature-self-contained - 使功能自包含struct-shared-layer - 仅将真正通用的代码放入共享层struct-flat-hierarchy - 保持目录层级扁平struct-optional-segments - 仅包含必要的代码段struct-app-layer - 将应用层与功能分离import-unidirectional-flow - 强制单向导入流import-no-cross-feature - 禁止跨功能导入import-public-api - 仅通过公共 API 导出import-avoid-barrel-files - 避免深度 barrel 文件再导出import-path-aliases - 使用一致的路径别名import-type-only - 对类型使用仅类型导入bound-feature-isolation - 强制功能隔离bound-interface-contracts - 定义明确的接口契约bound-feature-scoped-routing - 将路由范围限定在功能关注点内bound-minimize-shared-state - 最小化功能间的共享状态bound-event-based-communication - 使用事件进行跨功能通信bound-feature-size - 保持功能规模适中fquery-single-responsibility - 保持查询函数单一职责fquery-colocate-with-feature - 将数据获取与功能放在一起fquery-parallel-fetching - 并行获取独立数据fquery-avoid-n-plus-one - 避免 N+1 查询模式fquery-feature-scoped-keys - 使用功能作用域的查询键fquery-server-component-fetching - 在服务器组件层级获取数据fcomp-single-responsibility - 对组件应用单一职责原则fcomp-composition-over-props - 优先使用组合而非属性透传fcomp-container-presentational - 分离容器组件与展示组件fcomp-props-as-data-boundary - 使用属性作为功能边界fcomp-colocate-styles - 将样式与组件放在一起fcomp-error-boundaries - 使用功能层级的错误边界fstate-feature-scoped-stores - 将状态存储作用域限定在功能内fstate-server-state-separation - 分离服务器状态与客户端状态fstate-lift-minimally - 仅在必要时提升状态fstate-context-sparingly - 谨慎使用上下文管理功能状态fstate-reset-on-unmount - 在组件卸载时重置功能状态test-colocate-with-feature - 将测试与功能放在一起test-feature-isolation - 隔离测试功能test-shared-utilities - 创建功能特定的测试工具test-integration-at-app-layer - 在应用层编写集成测试name-feature-naming - 使用领域驱动的功能名称name-file-conventions - 使用一致的文件命名约定name-descriptive-exports - 使用描述性的导出名称阅读单独的参考文件以获取详细解释和代码示例:
feature-spec 技能tanstack-query 技能react-19 技能包含所有规则详细说明的完整指南:AGENTS.md
每周安装量
111
代码仓库
GitHub 星标数
85
首次出现
2026 年 1 月 22 日
安全审计
安装于
codex98
gemini-cli97
opencode96
github-copilot92
claude-code89
cursor86
Comprehensive architecture guide for organizing React applications by features, enabling scalable development with independent teams. Contains 42 rules across 8 categories, prioritized by impact from critical (directory structure, imports) to incremental (naming conventions).
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Directory Structure | CRITICAL | struct- |
| 2 | Import & Dependencies | CRITICAL | import- |
| 3 | Module Boundaries | HIGH | bound- |
| 4 | Data Fetching | HIGH | fquery- |
| 5 | Component Organization | MEDIUM-HIGH | fcomp- |
| 6 | State Management | MEDIUM | fstate- |
| 7 | Testing Strategy | MEDIUM | test- |
| 8 | Naming Conventions | LOW | name- |
struct-feature-folders - Organize by feature, not technical typestruct-feature-self-contained - Make features self-containedstruct-shared-layer - Use shared layer for truly generic code onlystruct-flat-hierarchy - Keep directory hierarchy flatstruct-optional-segments - Include only necessary segmentsstruct-app-layer - Separate app layer from featuresimport-unidirectional-flow - Enforce unidirectional import flowimport-no-cross-feature - Prohibit cross-feature importsimport-public-api - Export through public API onlyimport-avoid-barrel-files - Avoid deep barrel file re-exportsimport-path-aliases - Use consistent path aliasesimport-type-only - Use type-only imports for typesbound-feature-isolation - Enforce feature isolationbound-interface-contracts - Define explicit interface contractsbound-feature-scoped-routing - Scope routing to feature concernsbound-minimize-shared-state - Minimize shared state between featuresbound-event-based-communication - Use events for cross-feature communicationbound-feature-size - Keep features appropriately sizedfquery-single-responsibility - Keep query functions single-purposefquery-colocate-with-feature - Colocate data fetching with featuresfquery-parallel-fetching - Fetch independent data in parallelfquery-avoid-n-plus-one - Avoid N+1 query patternsfquery-feature-scoped-keys - Use feature-scoped query keysfquery-server-component-fetching - Fetch at server component levelfcomp-single-responsibility - Apply single responsibility to componentsfcomp-composition-over-props - Prefer composition over prop drillingfcomp-container-presentational - Separate container and presentational concernsfcomp-props-as-data-boundary - Use props as feature boundariesfcomp-colocate-styles - Colocate styles with componentsfcomp-error-boundaries - Use feature-level error boundariesfstate-feature-scoped-stores - Scope state stores to featuresfstate-server-state-separation - Separate server state from client statefstate-lift-minimally - Lift state only as high as necessaryfstate-context-sparingly - Use context sparingly for feature statefstate-reset-on-unmount - Reset feature state on unmounttest-colocate-with-feature - Colocate tests with featurestest-feature-isolation - Test features in isolationtest-shared-utilities - Create feature-specific test utilitiestest-integration-at-app-layer - Write integration tests at app layername-feature-naming - Use domain-driven feature namesname-file-conventions - Use consistent file naming conventionsname-descriptive-exports - Use descriptive export namesRead individual reference files for detailed explanations and code examples:
references/{prefix}-{slug}.mdfeature-spec skilltanstack-query skillreact-19 skillFor the complete guide with all rules expanded: AGENTS.md
Weekly Installs
111
Repository
GitHub Stars
85
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex98
gemini-cli97
opencode96
github-copilot92
claude-code89
cursor86
TanStack Query v5 完全指南:React 数据管理、乐观更新、离线支持
2,500 周安装
传统电路模拟图技能:创建复古面包板布局与交互式电路示意图
7,900 周安装
AI就绪规范更新指南 - 结构化文档模板与最佳实践
7,900 周安装
OpenAPI 规范自动生成应用程序代码工具 - 快速构建完整可运行项目
7,800 周安装
GitHub Copilot Skill:my-pull-requests - 自动化管理您的拉取请求,提升代码审查效率
7,900 周安装
Java提取方法重构技巧:使用GitHub Copilot提升代码质量与可维护性
7,900 周安装
GitHub Copilot 配置专家 | 一键生成生产级项目配置 | AI 编程助手设置
7,800 周安装