Individual skill
feature-arch
React feature-based architecture guidelines for scalable applications. This skill should be used when writing, reviewing, or refactoring React code to ensure proper feature organization. When invoked on a project, the agent produces a concrete target-architecture blueprint at docs/architecture/FEATURE-ARCH-TARGET.md showing the desired directory tree, per-feature public APIs, import-boundary matrix, and a numbered migration plan. Triggers on tasks involving project structure, feature organization, module boundaries, cross-feature imports, data fetching patterns, or component composition.
skills/.curated/feature-arch/SKILL.md
Source commit cf93c57cac89d6fc3e4194686000411567f5caf3
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 5, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 221
- Repository last updated
- Aug 15, 2026
- License
- MIT
Observed agent integration: codex
- engineering Derived category
- writing Derived category
- data Derived category
- docs Derived category
- engineering-web Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
AGENTS.mddoc · 9,731 bytesREADME.mddoc · 3,688 bytesSKILL.mdcore · 8,199 bytesSKILL.mdcore · 8,199 bytesassets/templates/_template.mddoc · 697 bytesassets/templates/feature-arch-target.md.templateasset · 12,040 bytesmetadata.jsonasset · 1,255 bytesreferences/_blueprint-process.mddoc · 10,003 bytesreferences/_sections.mddoc · 1,519 bytesreferences/bound-event-based-communication.mddoc · 2,628 bytesreferences/bound-feature-isolation.mddoc · 2,344 bytesreferences/bound-feature-scoped-routing.mddoc · 2,388 bytesreferences/bound-feature-size.mddoc · 2,414 bytesreferences/bound-interface-contracts.mddoc · 2,146 bytesreferences/bound-minimize-shared-state.mddoc · 2,252 bytesreferences/fcomp-colocate-styles.mddoc · 2,288 bytesreferences/fcomp-composition-over-props.mddoc · 2,429 bytesreferences/fcomp-container-presentational.mddoc · 2,600 bytesreferences/fcomp-error-boundaries.mddoc · 2,520 bytesreferences/fcomp-props-as-data-boundary.mddoc · 2,530 bytesreferences/fcomp-single-responsibility.mddoc · 2,665 bytesreferences/fquery-avoid-n-plus-one.mddoc · 2,318 bytesreferences/fquery-colocate-with-feature.mddoc · 2,064 bytesreferences/fquery-feature-scoped-keys.mddoc · 2,165 bytesreferences/fquery-parallel-fetching.mddoc · 2,203 bytesreferences/fquery-server-component-fetching.mddoc · 2,370 bytesreferences/fquery-single-responsibility.mddoc · 2,052 bytesreferences/fstate-context-sparingly.mddoc · 2,196 bytesreferences/fstate-feature-scoped-stores.mddoc · 2,279 bytesreferences/fstate-lift-minimally.mddoc · 2,380 bytesreferences/fstate-reset-on-unmount.mddoc · 2,406 bytesreferences/fstate-server-state-separation.mddoc · 2,631 bytesreferences/import-avoid-barrel-files.mddoc · 2,026 bytesreferences/import-no-cross-feature.mddoc · 3,686 bytesreferences/import-path-aliases.mddoc · 1,803 bytesreferences/import-public-api.mddoc · 2,093 bytesreferences/import-type-only.mddoc · 2,115 bytesreferences/import-unidirectional-flow.mddoc · 2,283 bytesreferences/name-descriptive-exports.mddoc · 2,085 bytesreferences/name-feature-naming.mddoc · 2,751 bytesreferences/name-file-conventions.mddoc · 2,831 bytesreferences/struct-app-layer.mddoc · 2,014 bytesreferences/struct-domain-folders.mddoc · 2,790 bytesreferences/struct-feature-folders.mddoc · 2,111 bytesreferences/struct-feature-self-contained.mddoc · 1,893 bytesreferences/struct-flat-hierarchy.mddoc · 1,694 bytesreferences/struct-optional-segments.mddoc · 2,429 bytesreferences/struct-shared-layer.mddoc · 2,492 bytesreferences/test-colocate-with-feature.mddoc · 2,085 bytesreferences/test-feature-isolation.mddoc · 2,278 bytesreferences/test-integration-at-app-layer.mddoc · 2,794 bytesreferences/test-shared-utilities.mddoc · 2,517 bytes
Read excerpt
# Feature-Based Architecture Best Practices
Comprehensive architecture guide for organizing React applications by features, enabling scalable development with independent teams. Contains 43 rules across 8 categories, prioritized by impact from critical (directory structure, imports) to incremental (naming conventions). When invoked on a real project, the skill produces a project-specific blueprint that anchors every decision in those rules.
## Primary Output: The Target Architecture Blueprint
When an agent invokes this skill on a real project, the deliverable is a single
markdown file persisted at `docs/architecture/FEATURE-ARCH-TARGET.md` (or the
repo's existing docs location). The blueprint contains:
1. **Project context** — framework, state libraries, routing model, current shape.
2. **Identified features** — confirmed with the user, sourced from routes, docs, openspec, and code clusters.
3. **Target directory tree** — literal paths, not pseudo-trees.
4. **Per-feature public APIs** — exact named exports of each `index.ts`.