/features:document-featurefrom features
Documents feature folders with README.md frontmatter, decision records (ADR/MADR), and specs following the features-cli format. Use when asked to document a feature, add owner metadata, record design decisions, or write specs.
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.
Give the feature a README and, when there are design choices worth explaining, decision records. features-cli reads them to show the feature's name, description, owner, specs and decisions in its dashboard ("Specs & Decisions" tab) and JSON report (records).
If features isn't installed, use npx features-cli@latest in place of features below.
Read the feature's code, then collect, without guessing:
CODEOWNERS lines that covered the files before they moved, a team named in existing docs. Commit authors (git shortlog -sn --no-merges -- <path>) are only a hint to show the user, not an owner. If you can't find a team, ask. If the user doesn't know, leave owner out and add a # TODO: owner comment line in the frontmatter. Never write a placeholder value such as owner: TODO: features codeowners would write it into CODEOWNERS.git log --follow --diff-filter=A --format=%as -- <file> | tail -1 for each file, and keep the earliest date for creation_date.git log --follow -- <file>), existing ADRs elsewhere in the repository (docs/adr/, docs/decisions/), linked issues.docs/specs/, issues, design docs). features records PATH lists the specs and decisions features-cli already sees.Check whether the feature inherits an owner: run features scan PATH --json --skip-changes and look at the feature's owner and is_owner_inherited. A nested feature inherits its parent's owner when it has none: leave owner out when it's the same as the parent's.
Create or update README.md at the root of the feature folder, using references/readme-template.md. The rules that matter for features-cli:
--- on line 1, then YAML, then ---.owner is a team or user handle without @ (team-payments, or my-org/payments for a GitHub team). features codeowners adds the @ prefix.feature: true only when the folder isn't directly inside a features folder.# heading is the feature's display name. Make it unique across the scanned folder: features check fails on duplicate names.status, deprecated, figma, docs…). Only add values you can source.If a README already exists, keep its content and fix only what's missing or wrong. Don't remove custom frontmatter keys.
Decision records are optional. Write one only for a real choice with evidence (a library picked over another, a data model, a security or performance trade-off, a deliberate limitation). Don't write one for every file.
__docs__/decisions/NNN-kebab-case-title.md inside the feature folder, numbered from 001. features new decision <feature> "<title>" creates it with the next number.status / date frontmatter: Title, Context, Considered options, Decision, Consequences).spec: NNN-title, and to the decision it replaces with supersedes: NNN-title (then set the old one's status to superseded).__docs__/decisions/ with git mv and update links to it.proposed and ask the user to confirm it. Never present a guess as an accepted decision.Write a spec when the user describes a change to build, or when an existing spec or plan for this feature lives elsewhere.
__docs__/specs/NNN-kebab-case-title.md (features new spec <feature> "<title>"), or a folder __docs__/specs/NNN-title/ with spec.md plus plan.md / tasks.md for a large one.status (draft, accepted, implemented, superseded), date, decisions: [...], then Context, Requirements, Out of scope, Plan with - [ ] tasks.docs/specs/ or docs/decisions/ at the root. Add feature: <name or path> to its frontmatter when it belongs to one feature but must stay at the root.features scan PATH --description --skip-changes
features check PATH
The feature must show its new name, owner and description, and check must pass without warnings about the records you wrote (broken links, missing status, superseded record without replacement, implemented spec with open tasks). Then tell the user which values you couldn't source (every TODO) and which decisions are proposed.
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./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.Other plugins' skills for the same job