feature-arch

feature-arch is a skill for Claude Code, Codex from punkadillo/figma-code-composer. It costs 108 tokens per session (1,828 once invoked), scanned A, a copy of feature-arch, MIT.

A set of React architecture guidelines for organizing application code around independent features. It can produce a project-specific blueprint showing folders, exports, imports, and ownership of state and data.

In plain words
What is it for?
Use it when writing, reviewing, or refactoring React code, especially when deciding where features, components, and shared logic should live.
Why use it?
It helps prevent React projects from becoming difficult to navigate and change as they grow. The blueprint makes allowed and forbidden dependencies explicit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; mentions AGENTS.md.

Good fit Use it when writing, reviewing, or refactoring React code, especially when deciding where features, components, and shared logic should live.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/punkadillo/figma-code-composer/feature-arch
Install

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.

Any agent
npx skills add punkadillo/figma-code-composer --skill feature-arch
Clone the repo
git clone --depth 1 https://github.com/punkadillo/figma-code-composer

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for feature-arch

README.md
[![agentmods](https://agentmods.dev/badge/skills/punkadillo/figma-code-composer/feature-arch.svg)](https://agentmods.dev/skills/punkadillo/figma-code-composer/feature-arch)
Your own site
<a href="https://agentmods.dev/skills/punkadillo/figma-code-composer/feature-arch"><img src="https://agentmods.dev/badge/skills/punkadillo/figma-code-composer/feature-arch.svg" alt="Measured on agentmods" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,828 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00108 $0.01828
Opus 5 $0.00054 $0.00914
Sonnet 5 $0.00022 $0.00366
Haiku 4.5 $0.00011 $0.00183

Measured 4d ago against content hash 4e5244d52199, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

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 4d 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.

Origin

This is a copy

95% identical to feature-arch — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.figma-pipeline/skills/feature-arch/SKILL.md · 156 lines

How it starts

The opening of the file, as written. The whole thing — 156 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 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.

Read the full file on GitHub · 156 lines

Files

What ships with it

48 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.

Changes

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.

  1. 4d ago First seen · 156 lines · 108 tokens per session scan A 4e5244d52199

Subscribe to this mod's changes

feature-arch is a skill published in the GitHub repository punkadillo/figma-code-composer (3 stars, last pushed 19d ago), licensed MIT. It adds 108 tokens to every session and 1,828 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to feature-arch, differing in 3 lines, and is treated as a copy.

Related

Other skills, from other repositories

agent-spec-mobile-react-native

Agent skill for spec-mobile-react-native - invoke with $agent-spec-mobile-react-native.

ruvnet/ruflo · 22 tokens

moai-design-tools

Design tool integration specialist covering Figma MCP, Pencil renderer, and Pencil-to-code export. Use when fetching design context from Figma, rendering Pencil designs, or exporting to React/Tailwind code.

modu-ai/moai-adk · 45 tokens

moai-domain-uiux

UI/UX design systems specialist covering accessibility, icons, theming, design tokens, and user experience patterns. Use when working on design systems, WCAG compliance, ARIA patterns, or dark mode theming.

modu-ai/moai-adk · 49 tokens

formkit

Use when working with FormKit forms, validation, schema, or custom inputs in React, Vue, or Nuxt projects.

formkit/formkit · 28 tokens

figma-codegen

Generate framework-aware code from a Figma design. Reads the project's stack profile and emits code matching the existing framework (React/Vue/Svelte/Next/etc.) and styling (Tailwind/CSS/CSS-in-JS), reusing existing components and design tokens instead of regenerating from scratch. Triggers whenever the user wants a…

awdr74100/figwright · 145 tokens

rn-best-practices

This skill should be used when writing or reviewing React Native / Expo code — before writing list rendering, animations, data fetching, component APIs, navigation, or image/media UI — and when asked to "review best practices", "check performance", "optimize renders", "review list rendering", "check animation…

Lykhoyda/rn-dev-agent · 98 tokens