Agent skill

Feature Arch

by pproenca in pproenca/dot-skills

React feature-based architecture guidelines for scalable applications.

MITAuto-check passedDevelopment

Install Feature Arch

skills CLI
$ npx skills add pproenca/dot-skills --skill feature-arch -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pproenca/dot-skills feature-arch --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/feature-arch .claude/skills/feature-arch && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
feature-arch
GitHub stars
214
Token cost
~2k tokens
SKILL.md length
800 words
Files
51 (incl. references, assets)
Skills in repo
182
Repo updated
First seen
Licence
MIT

At a glance

React feature-based architecture guidelines for scalable applications.

  • Works in 8 steps: Directory Structure (CRITICAL) → Import & Dependencies (CRITICAL) → Module Boundaries (HIGH) → …
  • Tasks involving project structure
  • SKILL.md covers Primary Output: The Target…, When to Apply, Rule Categories by Priority and Quick Reference, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Feature Arch is an agent skill from pproenca/dot-skills. 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…

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 53 other files, including reference files and assets (for example `AGENTS.md`, `README.md` and `assets/templates/_template.md`).

It sits in Development, covering React components and Refactoring. It works with React. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.

When your agent uses it

  • Tasks involving project structure
  • Feature organization
  • Module boundaries
  • Cross-feature imports

Example prompts

  • “/feature-arch”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Directory Structure (CRITICAL)
  2. Import & Dependencies (CRITICAL)
  3. Module Boundaries (HIGH)
  4. Data Fetching (HIGH)
  5. Component Organization (MEDIUM-HIGH)
  6. State Management (MEDIUM)
  7. Testing Strategy (MEDIUM)
  8. Naming Conventions (LOW)

What it can do on your machine

Read from SKILL.md and the folder at commit cf93c57. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Feature Arch loads about 2k tokens when it runs, and up to ~30k if it reads all its reference files. Until then it costs about 152 tokens; SKILL.md has 800 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~152
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~30k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 800 words, ~2,043 tokens.

Download SKILL.mdSave it as .claude/skills/feature-arch/SKILL.md (or your agent's skills folder). This skill also uses 50 other files; get the full folder from GitHub.
name
feature-arch
description
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.

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.
  5. Import-boundary matrix — N×N table of feature relationships (allowed / forbidden / via app / via events).
  6. State & data ownership — server-state and client-state owner per feature.
  7. Cross-feature communication policy — composition, events, or shared slice — with rationale.
  8. Numbered migration plan — file-level move/create/delete steps with S/M/L effort estimates.
  9. Human conformance checklist — for code review and "definition of done".
  10. Open questions — anything that needs a human decision before migration.

Every section cites the specific rules below that govern its decisions, so the blueprint stays a projection of this skill — not a parallel authority.

How the agent generates the blueprint

Follow the process in references/_blueprint-process.md. Summary:

  1. Gather context (package.json, src/ tree, README, CLAUDE.md, openspec/).
  2. Identify candidate features from routes, docs, and code clusters.
  3. Confirm the feature list with the user via AskUserQuestion.
  4. Record explicit decisions (layer model, comm mechanism, state/routing owner).
  5. Fill in assets/templates/feature-arch-target.md.template — every {{placeholder}} replaced with a literal project value.
  6. Hand off: print path, summarise feature/step counts, list top-3 risks, suggest next action. Do not start executing migration steps in the same turn.

For very small projects (under ~10 source files), produce a one-page seed structure instead and note that a full blueprint should follow after the 2nd–3rd feature exists.

When to Apply

Reference these guidelines when:

  • A project asks for a feature-based architecture target (generate the blueprint).
  • Creating new features or modules.
  • Organizing project directory structure.
  • Setting up import rules and boundaries.
  • Implementing data fetching patterns.
  • Composing components from multiple features.
  • Reviewing code for architecture violations.

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Directory StructureCRITICALstruct-
2Import & DependenciesCRITICALimport-
3Module BoundariesHIGHbound-
4Data FetchingHIGHfquery-
5Component OrganizationMEDIUM-HIGHfcomp-
6State ManagementMEDIUMfstate-
7Testing StrategyMEDIUMtest-
8Naming ConventionsLOWname-

Quick Reference

1. Directory Structure (CRITICAL)
  • struct-feature-folders - Organize by feature, not technical type
  • struct-feature-self-contained - Make features self-contained
  • struct-shared-layer - Use shared layer for truly generic code only
  • struct-flat-hierarchy - Keep directory hierarchy flat
  • struct-optional-segments - Include only necessary segments
  • struct-app-layer - Separate app layer from features
  • struct-domain-folders - Group features into domains at large scale
Show full SKILL.md (315 more words)Show less
2. Import & Dependencies (CRITICAL)
  • import-unidirectional-flow - Enforce unidirectional import flow
  • import-no-cross-feature - Prohibit cross-feature imports
  • import-public-api - Export through public API only
  • import-avoid-barrel-files - Avoid deep barrel file re-exports
  • import-path-aliases - Use consistent path aliases
  • import-type-only - Use type-only imports for types
3. Module Boundaries (HIGH)
  • bound-feature-isolation - Enforce feature isolation
  • bound-interface-contracts - Define explicit interface contracts
  • bound-feature-scoped-routing - Scope routing to feature concerns
  • bound-minimize-shared-state - Minimize shared state between features
  • bound-event-based-communication - Use events for cross-feature communication
  • bound-feature-size - Keep features appropriately sized
4. Data Fetching (HIGH)
  • fquery-single-responsibility - Keep query functions single-purpose
  • fquery-colocate-with-feature - Colocate data fetching with features
  • fquery-parallel-fetching - Fetch independent data in parallel
  • fquery-avoid-n-plus-one - Avoid N+1 query patterns
  • fquery-feature-scoped-keys - Use feature-scoped query keys
  • fquery-server-component-fetching - Fetch at server component level
5. Component Organization (MEDIUM-HIGH)
  • fcomp-single-responsibility - Apply single responsibility to components
  • fcomp-composition-over-props - Prefer composition over prop drilling
  • fcomp-container-presentational - Separate container and presentational concerns
  • fcomp-props-as-data-boundary - Use props as feature boundaries
  • fcomp-colocate-styles - Colocate styles with components
  • fcomp-error-boundaries - Use feature-level error boundaries
6. State Management (MEDIUM)
  • fstate-feature-scoped-stores - Scope state stores to features
  • fstate-server-state-separation - Separate server state from client state
  • fstate-lift-minimally - Lift state only as high as necessary
  • fstate-context-sparingly - Use context sparingly for feature state
  • fstate-reset-on-unmount - Reset feature state on unmount
7. Testing Strategy (MEDIUM)
  • test-colocate-with-feature - Colocate tests with features
  • test-feature-isolation - Test features in isolation
  • test-shared-utilities - Create feature-specific test utilities
  • test-integration-at-app-layer - Write integration tests at app layer
8. Naming Conventions (LOW)
  • name-feature-naming - Use domain-driven feature names
  • name-file-conventions - Use consistent file naming conventions
  • name-descriptive-exports - Use descriptive export names

How to Use

Read individual reference files for detailed explanations and code examples:

  • For feature planning, see feature-spec skill
  • For data fetching, see tanstack-query skill
  • For React component patterns, see react-19 skill

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

© pproenca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 50 other files (references, assets) in skills/.curated/feature-arch of pproenca/dot-skills.

  • SKILL.md
  • AGENTS.md
  • README.md
  • assets/templates/_template.md
  • assets/templates/feature-arch-target.md.template
  • metadata.json
  • references/_blueprint-process.md
  • references/_sections.md
  • references/bound-event-based-communication.md
  • references/bound-feature-isolation.md
  • references/bound-feature-scoped-routing.md
  • references/bound-feature-size.md
  • references/bound-interface-contracts.md
  • references/bound-minimize-shared-state.md
  • references/fcomp-colocate-styles.md
  • references/fcomp-composition-over-props.md
  • references/fcomp-container-presentational.md
  • references/fcomp-error-boundaries.md
  • … and 33 more

Open the folder on GitHubat commit cf93c57

Compare with similar skills

Feature Arch next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Feature Arch compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Feature Arch this skillpproenca/dot-skills214—~2kAutomated safety check: PassMIT
No Use Effectmattiacerutti/supernova1872 repos~1.7kAutomated safety check: PassMIT
React Best Practicesshapeshift/web2061 repos~2kAutomated safety check: PassMIT
Migrate Componentasyncapi/generator1.1k—~3kAutomated safety check: PassApache-2.0
Project Form PatternsAkaraChen/aghub272—~1.1kAutomated safety check: PassMIT
React Performanceaffaan-m/ECC274k1 repos~4.5kAutomated safety check: PassMIT

Similar skills

  • No Use Effect

    mattiacerutti/supernova

    Enforce the no-useEffect rule when writing or reviewing React code.

    187 GitHub starsUsed in 2 repos~1.7k tokens
    DevelopmentAuto-check passed
  • React Best Practices

    shapeshift/web

    Comprehensive React and Next.js performance optimization guide with 40+ rules for eliminating waterfalls, optimizing bundles, and improving rendering.

    206 GitHub starsUsed in 1 repo~2k tokens
    DevelopmentAuto-check passed
  • Migrate Component

    asyncapi/generator

    Promote a duplicated React/JSX template-local component into the shared @asyncapi/generator-components package.

    1.1k GitHub stars~3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Project Form Patterns

    AkaraChen/aghub

    Form implementation guidance for the aghub desktop app. An agent skill from AkaraChen/aghub.

    272 GitHub stars~1.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • React Performance

    affaan-m/ECC

    React and Next.js performance optimization patterns adapted from Vercel Engineering's React Best Practices (https://github.com/vercel-labs/agent-skills).

    274k GitHub starsUsed in 1 repo~4.5k tokens
    DevelopmentAuto-check passed
  • React Composition Patterns

    vercel-labs/openreview

    Official

    Rules for structuring React components with composition instead of boolean props, covering compound components, lifted state, variants and React 19 changes.

    1.7k GitHub starsUsed in 58 repos~721 tokens
    Frontend & DesignAuto-check passed

More from pproenca/dot-skills

All 182 skills in this repo
  • Audio Voice Recovery

    pproenca/dot-skills

    Audio forensics and voice recovery guidelines for CSI-level audio analysis.

    214 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Codemod React Pipeline

    pproenca/dot-skills

    Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.

    214 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Dev Rfc

    pproenca/dot-skills

    Create well-structured RFCs and technical proposals for software projects.

    214 GitHub stars~3.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Dx Harness

    pproenca/dot-skills

    Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.

    214 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Language Spec Author

    pproenca/dot-skills

    Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…

    214 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Python Pep Author

    pproenca/dot-skills

    Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…

    214 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Feature Arch

What does Feature Arch do?

React feature-based architecture guidelines for scalable applications. Feature Arch is an agent skill from pproenca/dot-skills. React feature-based architecture guidelines for scalable applications.

When should I use Feature Arch?

Feature Arch fits situations like: tasks involving project structure; feature organization; module boundaries; cross-feature imports.

How do I install Feature Arch in Claude Code?

Run `npx skills add pproenca/dot-skills --skill feature-arch -a claude-code`. Or copy the skill folder (skills/.curated/feature-arch in pproenca/dot-skills) into .claude/skills/feature-arch in your project. Claude Code loads it when a task matches its description.

How do I install Feature Arch in Codex?

Run `npx skills add pproenca/dot-skills --skill feature-arch -a codex`. Or copy the skill folder (skills/.curated/feature-arch in pproenca/dot-skills) into .agents/skills/feature-arch in your project. Codex loads it when a task matches its description.

Can I use Feature Arch in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pproenca/dot-skills --skill feature-arch -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/feature-arch, .gemini/skills/feature-arch, .github/skills/feature-arch and .opencode/skills/feature-arch in your project.

What does Feature Arch need to run?

SKILL.md names no scripts, command-line tools or credentials: Feature Arch is instructions for the agent only.

Does Feature Arch access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Feature Arch safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Feature Arch use?

Feature Arch is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Feature Arch use?

About 2k tokens (SKILL.md is roughly 8.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 28k tokens, read only when the agent opens those files.

What are the alternatives to Feature Arch?

Skills that share tags, products or a category with Feature Arch: No Use Effect (mattiacerutti/supernova, 187 stars), React Best Practices (shapeshift/web, 206 stars), Migrate Component (asyncapi/generator, 1.1k stars) and Project Form Patterns (AkaraChen/aghub, 272 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Feature Arch?

pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 214 GitHub stars. The repository holds 182 skills in this directory. The repository was last updated on August 15, 2026.

Source: pproenca/dot-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.