/features:create-featurefrom features
Scaffolds a new feature in a feature-organized codebase following features-cli conventions: checks for existing coverage, picks folder location, writes README and spec, builds code in isolation, and records decisions.
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.
None: SKILL.md is the whole skill.
Start a new feature so that it is detected, owned and documented from its first commit: its code in one folder, a README that says what it does and who owns it, a spec for what is being built, and decision records for the choices made along the way.
If features isn't installed, use npx features-cli@latest in place of features below. PATH is the scanned source root (e.g. ./src); in a monorepo, the package the feature belongs to.
Map the features with the explore-features skill (or list_features / get_feature when the features MCP server is connected):
features scan PATH --json --skip-changes > "${TMPDIR:-/tmp}/features.json"
python3 ../explore-features/scripts/feature_map.py "${TMPDIR:-/tmp}/features.json"
Search names, descriptions, specs and folders for the same capability, with the user's words and their synonyms (referral / invite / sponsor). Also look for code that already does part of it outside any feature.
[]) and the codebase isn't organized by feature → tell the user, and propose the organize-by-feature skill or a first features/ folder for this feature only.Pick the location with these rules, then show it to the user before writing anything (folder, name, owner):
<parent folder>/features/<name>/, when the new feature only makes sense inside an existing one (a "refund" flow inside checkout). It inherits the parent's owner.features/ folder of PATH. If there are several features folders that could fit (e.g. web/src/features and api/src/features), ask which one, or whether the feature spans several packages.kebab-case, camelCase, PascalCase). Name it after what the user can do, not after a technical layer (invoices, not invoice-service).features check fails on duplicates), and the folder name must not give the same key as another feature (folder name lowercased, non [a-z0-9_-] characters replaced by -).A folder that isn't directly inside a features folder needs feature: true in its README frontmatter. Prefer a features folder when the project has one.
Create README.md at the root of the folder with the document-feature rules and its README template:
owner out), the team that asked for the feature, or CODEOWNERS rules that already cover the folder. Never invent one. If nobody knows, add a # TODO: owner comment line in the frontmatter, never a placeholder value.# heading): the feature's display name.creation_date out: features-cli dates a new feature from its first commit.Keep the rest short for now ("How it works" gets written once the code exists, in step 5).
When the user described what to build (requirements, a ticket, a conversation), write it down before coding:
features new spec <feature> "<title>" --path PATH
<feature> is the feature's name or its path relative to PATH (e.g. features/invoices). It creates __docs__/specs/001-<title>.md in the feature, with the next free number. Fill it with the spec template: status: draft, Context, Requirements, Out of scope, Plan with - [ ] tasks. Ask the user to review it, then set status: accepted. Skip the spec for a trivial feature, or when the project keeps its specs elsewhere (an issue tracker, docs/specs/ at the root with feature: <name>).
components/, hooks/, api/...) and its entry point (index.ts, __init__.py, mod.rs).components/, utils/, lib/) instead of copying code. Move code to a shared folder only when a second feature needs it, and tell the user.When a real choice comes up (a library picked over another, a data model, a trade-off, a deliberate limitation), write a decision record with the document-feature rules:
features new decision <feature> "<title>" --path PATH
Link it to the spec with spec: 001-<title> in its frontmatter. A decision the user made is accepted; one you made on your own is proposed until the user confirms it.
features check PATH
features scan PATH --json --skip-changes > "${TMPDIR:-/tmp}/features.json"
python3 ../validate-features/scripts/feature_report.py "${TMPDIR:-/tmp}/features.json" --root PATH
features check passes, without warnings about the new feature or its records. If it already failed before you started (duplicates elsewhere in the project), make sure the new feature adds no error or warning, and mention the existing ones to the user without fixing them.Before opening a pull request, list the features and owners the branch touches (use the repository's default branch in place of main) and include it in the description:
features diff PATH --since origin/main
Then tell the user what was created (folder, README, spec, decisions), what is still TODO (owner, proposed decisions, open spec tasks), and anything you changed outside the feature folder (wiring, shared code).
CODEOWNERS or existing docs. Write a visible TODO instead of a guess.What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/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.npx claudepluginhub interaction-dynamics/features --plugin featuresOther plugins' skills for the same job