/features:explore-featuresfrom features
Generates a features-cli JSON report of a codebase (features, paths, owners, descriptions, specs, decisions, imports) and reads it to understand the project. Use when exploring an unfamiliar codebase, locating a feature or owner, or before modifying a feature.
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.
Build a map of the codebase by feature and use it to find your way, instead of searching the repository file by file.
If features isn't installed, use npx features-cli@latest in place of features below. PATH is the source root (e.g. ./src); in a monorepo, scan each package or the repository root.
Write the report to a file outside the repository, so it isn't committed by accident:
features scan PATH --json --skip-changes > "${TMPDIR:-/tmp}/features.json"
--skip-changes leaves out the git history, which keeps the report small and fast. Drop it only when you need the commits of each feature.
Generate it again after moving code or editing READMEs: the report is a snapshot. If the user wants the report kept in the repository (for other tools or agents), ask where to save it and whether to add it to .gitignore or regenerate it in CI.
An empty array ([]) means no feature is detected yet: use the plan-feature-breakdown skill to propose some.
The report contains each feature's full README, specs and decision records, so it can be large. Start with the compact index from scripts/feature_map.py (in this skill's folder; use its full path, Python 3 only):
python3 scripts/feature_map.py "${TMPDIR:-/tmp}/features.json"
It prints one line per feature: name, path, owner, first sentence of the description and number of specs and decision records, indented by nesting. Then zoom in:
python3 scripts/feature_map.py "${TMPDIR:-/tmp}/features.json" --feature checkout # description, specs and decisions, metadata, imports
python3 scripts/feature_map.py "${TMPDIR:-/tmp}/features.json" --file src/features/checkout/api.ts # the feature that contains a file
python3 scripts/feature_map.py "${TMPDIR:-/tmp}/features.json" --owner team-payments # the features of an owner
features records PATH --json > "${TMPDIR:-/tmp}/records.json"
python3 scripts/feature_map.py "${TMPDIR:-/tmp}/features.json" --records "${TMPDIR:-/tmp}/records.json" # project-level specs and decisions (root docs/)
File paths in the report are relative to PATH. features find-owner <file> PATH also gives the owner of a single file without a report.
--feature). Respect the accepted decisions (skip the superseded and rejected ones), or tell the user when your change goes against one. A spec with open tasks tells you what is still planned.Imports into other features list).features diff PATH --since origin/main (with the repository's default branch) lists the features and owners a change touches.Each feature has:
| Field | Meaning |
|---|---|
name | First heading of the feature's README, or the folder name |
path | Folder, relative to the scanned folder |
owner, is_owner_inherited | owner from the README frontmatter; inherited from the parent feature when it has none |
description | README content after the first heading |
meta | Other frontmatter keys (status, deprecated, creation_date…) and feature metadata annotations (--feature-<key> comments) |
decisions | Raw content of each file in __docs__/decisions/ or .docs/decisions/ (kept for compatibility) |
records | Specs and decision records of the feature (from __docs__/ and .docs/, plus root docs/ records with feature: <name> and GitHub Spec Kit specs/NNN-name/ or Kiro .kiro/specs/<name>/ folders named after the feature): kind (spec or decision), id, title, status, date, path, content, files (other files of a folder spec), source (speckit or kiro, absent for native records), links (decisions, specs, supersedes, superseded_by, by id) and tasks (done, total) |
features | Nested features (same fields) |
dependencies | Imports from this feature into other features: sourceFilename, targetFilename, line, featurePath and type (parent, child or sibling) |
stats | files_count, lines_count, todos_count, coverage when a coverage report is found, and commits |
changes | Git commits touching the feature (empty with --skip-changes) |
What SKILL.md sets; muted values are Claude Code's defaults
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./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./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