/features:validate-featuresfrom features
Validates feature-based architecture using features-cli (check, scan) and a Python report script. Flags missing descriptions/owners, sibling imports, oversized features, duplicates, and code outside features.
Ships in features. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Check that the features are detected as intended and that each one can be read on its own.
If features isn't installed, use npx features-cli@latest in place of features below. PATH is the scanned source root (e.g. ./src).
features check PATH
It fails (exit code 1) on duplicate feature names and lists their paths. A failing check is a blocker: rename a feature (its README heading, or its folder when there is no heading) until it passes.
features scan PATH --description --skip-changes
Compare it with the approved breakdown: every planned feature is listed, at the planned path, with the right name, and there is no unexpected feature (a folder inside features that should be shared code gets a README with feature: false).
features scan PATH --json --skip-changes > "${TMPDIR:-/tmp}/features.json"
python3 scripts/feature_report.py "${TMPDIR:-/tmp}/features.json" --root PATH
The same file is the feature map read by the explore-features skill.
scripts/feature_report.py is in this skill's folder; use its full path. It needs Python 3 and nothing else. It prints a table of the features (owner, files, lines, decisions, TODOs), then:
features check.owner in the README and no parent to inherit from. Ask the user; don't invent one.[circular] means both import each other. See "Fixing cross-feature imports" below.--max-files (40) or --max-lines (4000). Consider nested features, only along product boundaries.Add --strict to exit with 1 on warnings too (useful in CI once the refactor is done).
Fix what belongs to the feature you're working on, then run the checks again. Leave the rest as a list for the user, with the report's exact lines.
Some coupling is normal; the goal is that a reader of one feature doesn't need to open another feature's internals. In order of preference:
features/.index.ts, __init__.py, mod.rs).Every move follows the extract-feature rules: git mv, update imports, run the tests.
features diff PATH --since origin/main
Use the repository's default branch in place of main. It lists the features touched by the branch and their owners: include it in the pull request description so the owners know their features moved.
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/create-featureCreates a new feature in a codebase organized by feature, following the features-cli conventions - checks that no existing feature already covers it, picks the folder (top-level or sub-feature), writes its README (owner, title, description) and first spec, builds the code inside the folder without reaching into other features, records decisions and validates with features check. Use when the user asks to add, build, start or scaffold a new feature, module or capability ("add a referral program", "create a feature for invoices"). Not for changes inside an existing feature./document-featureWrites or fixes the README.md of a feature folder (frontmatter with owner and other metadata, title, one-line description), its decision records in __docs__/decisions and its specs in __docs__/specs, following the features-cli format, so the feature can be understood on its own. Use when the user asks to document a feature, add an owner or a description, record a design decision (ADR, MADR), write a spec, or after moving code into a feature folder./explore-featuresGenerates the features-cli JSON report of a codebase (features, paths, owners, descriptions, specs and decision records, imports between features) into a file and reads it to understand the project before working on it. Use at the start of a task in an unfamiliar codebase, when looking for where a feature lives or who owns it, before changing a feature (to read its description, specs and decisions), or when the other feature skills need the current feature map./extract-featureMoves the code of one feature into its own feature folder (features/<name>/) in small, safe steps, with git mv, updated imports and passing tests, without changing behavior. Use when the user asks to move, extract or group the code of a feature into a folder, or as the "move" step of the organize-by-feature workflow. Works with any language./organize-by-featureReorganizes an existing codebase into feature folders that features-cli can map, one feature at a time, keeping tests green. Runs the full workflow (map, plan the breakdown, move the code, document each feature, validate) by using the explore-features, plan-feature-breakdown, extract-feature, document-feature and validate-features skills. Use when the user asks to restructure, refactor or migrate a codebase to a feature-based (vertical slice) architecture, or to "make the codebase readable by feature"./plan-feature-breakdownAnalyzes a codebase and proposes how to split it into feature folders (feature names, target paths, files to move, shared code, owners and migration order), then writes the plan to a file for the user to approve. Uses features-cli to see the features that already exist. Use before reorganizing a codebase by feature, when the user asks which features a codebase has, or how to split a folder into features. Read-only: it never moves code.npx claudepluginhub interaction-dynamics/features --plugin featuresOther plugins' skills for the same job