Feature state

From schuettc/claude-code-plugins · View interactive version

Feature state is an AI agent skill from the GitHub repository schuettc/claude-code-plugins. Change a feature's state (active/paused/replaced/abandoned). Use when a feature needs to be paused while waiting on something, marked obsolete because another feature replaces it, or abandoned because it won't be pursued. Requires companion fields for non-active states.

How to use this skill

Skill file

Change Feature State

You are executing the CHANGE STATE workflow — flipping the state: field in a feature's idea.md frontmatter and validating the required companion fields.

Arguments

$ARGUMENTS: <feature-id> <state> [--reason "..."] [--replaced-by <id>]

Examples:

Step 1: Parse Arguments

Extract:

If arguments are missing or malformed, show usage and stop.

Step 2: Load Feature

Read docs/features/<feature-id>/idea.md. If it doesn't exist, error:

"No feature <feature-id>. Check docs/features/ or run /feature-search."

If shipped.md exists AND the requested new state is replaced or abandoned, refuse:

"<feature-id> is already shipped — tombstoning it makes no sense. If it needs to be reverted, revert the PR and remove shipped.md first."

Step 3: Validate Required Companions

| Target state | Required argument |

|---|---|

| paused | --reason "..." |

| replaced | --replaced-by <id> |

| abandoned | --reason "..." |

| active | none |

If the required companion is missing, ask the user for it via AskUserQuestion before proceeding.

For replaced: also check that the referenced ID has an idea.md on disk. If not, warn but allow (forward reference).

Step 4: Update Frontmatter

Use the Edit tool to update docs/features/<feature-id>/idea.md:

  1. Set state: — replace any existing state: line, or insert one after id:.
  2. Set companion field — same insertion pattern.
  3. Clean up obsolete companions when state changes:

Do NOT touch any other frontmatter or content.

Step 5: Confirm + Regen Dashboard

The PostToolUse hook will regenerate DASHBOARD.md automatically when you edit idea.md.

Print a one-line confirmation:

"✓ <feature-id> is now <state>. <Companion field summary>"

Step 6: Suggest Follow-Up

| New state | Suggest |

|---|---|

| paused | "When the blocker clears, run /feature-state <id> active to resume." |

| replaced | "If <replaced-by-id> doesn't exist yet, run /feature-capture to create it." |

| abandoned | (none — terminal state for now) |

| active (from paused) | "Resume with /feature-implement <id> or /feature-autopilot <id>." |

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.