/features:extract-featurefrom features
Moves code of one feature into its own folder (features/<name>/) using git mv, updating imports and keeping tests passing. Works with any language.
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.
Move the files of one feature into its folder. Moves, renames and import updates only: behavior must not change.
Before you start, you need:
src/features/checkout), and the list of files to move. Take them from the approved breakdown file (see the plan-feature-breakdown skill) or ask the user;git status, so the diff only shows this move.Copy this checklist and tick it as you go:
- [ ] 1. Check who uses each file
- [ ] 2. Move the files with git mv
- [ ] 3. Update imports and path references
- [ ] 4. Run the baseline commands
- [ ] 5. Review the diff
For each file in the list, search the repository for the places that import or reference it (its path, its module name, its exported names when imports use aliases). Then:
features/, and tell the user the plan changed;Create the folder, then move each file with git mv so git records a rename and git log --follow still finds the file's history:
mkdir -p src/features/checkout/components
git mv src/components/CheckoutForm.tsx src/features/checkout/components/CheckoutForm.tsx
Keep the subfolders the project already uses inside the feature (components/, services/…). Move tests, stories, styles, fixtures and snapshots together with the code they cover, unless the test runner needs them elsewhere.
Don't edit the content of a file in the same step as moving it, beyond its imports.
Update every reference to a moved file:
jest.mock, vi.mock, patch(...)), lazy imports and route tables, config globs (tsconfig, coverage, lint, Storybook, bundler entries), CI paths, CODEOWNERS lines, docs links.Follow the import style the project already uses (path aliases such as @/, relative paths, absolute module paths). Read references/moving-code.md for language-specific details (Python packages, Go packages, Rust modules, Java packages…).
Keep feature metadata annotations (comments starting with --feature-) unchanged: they move with the code.
Don't add an index or barrel file unless the project already uses them for its modules.
Run the build, type check, lint and tests. Compare with the baseline:
git status
git diff -M --stat HEAD
Every moved file should appear as a rename (R), with only import lines changed. If a file shows up as deleted and added, check its content didn't change by accident.
Then run features scan PATH --skip-changes (or npx features-cli@latest scan PATH --skip-changes) and check the new feature is listed. The feature has no README yet: continue with the document-feature skill.
Tell the user: the files moved, the files you left in shared folders and why, the references you updated outside the feature, and the result of the baseline commands.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub interaction-dynamics/features --plugin features7 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./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./validate-featuresValidates the feature folders of a codebase with features-cli (features check, features scan) and a report script that flags features without description or owner, imports between sibling features, oversized features, duplicate names and code left outside any feature. Use after moving or documenting features, before committing a feature refactor, or when the user asks whether the codebase follows the feature-based architecture guidelines.Other plugins' skills for the same job