Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/pymodel/react-frontend-skills/feature-archnpx skills add PyModel/react-frontend-skills --skill feature-archgit clone --depth 1 https://github.com/PyModel/react-frontend-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pymodel/react-frontend-skills/feature-arch)<a href="https://agentmods.dev/skills/pymodel/react-frontend-skills/feature-arch"><img src="https://agentmods.dev/badge/skills/pymodel/react-frontend-skills/feature-arch.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00065 | $0.01161 |
| Opus 5 | $0.00032 | $0.00580 |
| Sonnet 5 | $0.00013 | $0.00232 |
| Haiku 4.5 | $0.00006 | $0.00116 |
Grade A, and why
feature-arch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Feature-Based Architecture Best Practices
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).
When to Apply
Reference these guidelines when:
- 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
| 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- |
Quick Reference
1. Directory Structure (CRITICAL)
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 features
2. Import & Dependencies (CRITICAL)
import-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 types
3. Module Boundaries (HIGH)
bound-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 sized
What ships with it
45 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- AGENTS.md 8.7 KB
- metadata.json 939 B
- references/_sections.md 1.5 KB
- references/bound-event-based-communication.md 2.6 KB
- references/bound-feature-isolation.md 2.3 KB
- references/bound-feature-scoped-routing.md 2.3 KB
- references/bound-feature-size.md 2.3 KB
- references/bound-interface-contracts.md 2.1 KB
- references/bound-minimize-shared-state.md 2.2 KB
- references/fcomp-colocate-styles.md 2.2 KB
- references/fcomp-composition-over-props.md 2.4 KB
- references/fcomp-container-presentational.md 2.5 KB
- references/fcomp-error-boundaries.md 2.5 KB
- references/fcomp-props-as-data-boundary.md 2.5 KB
- references/fcomp-single-responsibility.md 2.6 KB
- references/fquery-avoid-n-plus-one.md 2.3 KB
- references/fquery-colocate-with-feature.md 2.0 KB
- references/fquery-feature-scoped-keys.md 2.1 KB
- references/fquery-parallel-fetching.md 2.2 KB
- references/fquery-server-component-fetching.md 2.3 KB
- references/fquery-single-responsibility.md 2.0 KB
- references/fstate-context-sparingly.md 2.1 KB
- references/fstate-feature-scoped-stores.md 2.2 KB
- references/fstate-lift-minimally.md 2.3 KB
- references/fstate-reset-on-unmount.md 2.3 KB
- references/fstate-server-state-separation.md 2.6 KB
- references/import-avoid-barrel-files.md 2.0 KB
- references/import-no-cross-feature.md 2.4 KB
- references/import-path-aliases.md 1.8 KB
- references/import-public-api.md 2.0 KB
- references/import-type-only.md 2.1 KB
- references/import-unidirectional-flow.md 2.2 KB
- references/name-descriptive-exports.md 2.0 KB
- references/name-feature-naming.md 1.9 KB
- references/name-file-conventions.md 2.3 KB
- references/struct-app-layer.md 2.0 KB
- references/struct-feature-folders.md 2.0 KB
- references/struct-feature-self-contained.md 1.8 KB
- references/struct-flat-hierarchy.md 1.6 KB
- references/struct-optional-segments.md 1.9 KB
- references/struct-shared-layer.md 2.0 KB
- references/test-colocate-with-feature.md 2.0 KB
- references/test-feature-isolation.md 2.2 KB
- references/test-integration-at-app-layer.md 2.7 KB
- references/test-shared-utilities.md 2.5 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 116 lines · 65 tokens per session scan A f0cb94a65e49
feature-arch is a skill published in the GitHub repository PyModel/react-frontend-skills (3 stars, last pushed 13d ago), licensed MIT. It adds 65 tokens to every session and 1,161 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
app-routing
Guide for implementing client-side routing in Fusebase Apps apps. Use when: 1. Adding routing (React Router) to an app, 2. Fixing broken routes or 404s after deployment, 3. Configuring the router.
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
shadcn-ui
Provides complete shadcn/ui component library patterns including installation, configuration, and implementation of accessible React components. Use when setting up shadcn/ui, installing components, building forms with React Hook Form and Zod, customizing themes with Tailwind CSS, or implementing UI patterns like…
react-flow
React Flow (@xyflow/react) for workflow visualization with custom nodes and edges. Use when building graph visualizations, creating custom workflow nodes, implementing edge labels, or controlling viewport. Triggers on ReactFlow, @xyflow/react, Handle, NodeProps, EdgeProps, useReactFlow, fitView.
shep:ui-component
Use when creating, modifying, or reviewing web UI components. Triggers include "new component", "add component", "create UI", "build a widget", "update component", working with files in src/presentation/web/components/, or when the user asks to build any React component for the web UI. Part of the Shep autonomous SDLC…
project-form-patterns
Form implementation guidance for the aghub desktop app. Use when building or refactoring forms in crates/desktop/src, especially HeroUI v3 + React forms, RHF integration, validation, custom editors, and error presentation. Triggers: MCP forms, settings dialogs, create/edit panels, TextField, FieldError, Select…