feature-flow-w

feature-flow-w is a command for coding agents from sgaunet/claude-plugins. It costs 30 tokens per session (5,739 once invoked), scanned A, original, MIT.

A command for developing a feature in a separate Git worktree, which is an extra working directory connected to the same repository. It can manage branches, issues, commits, tests, and merging.

In plain words
What is it for?
Use it to start work from staged changes or a numbered issue, create the needed worktree and branch, run checks, commit the work, and optionally merge it.
Why use it?
It lets you work on another feature without changing the branch or files you are currently using.

Command

Part of the software-engineering plugin — 4 skills, 12 commands, 7 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/sgaunet/claude-plugins/feature-flow-w
Clone the repo
git clone --depth 1 https://github.com/sgaunet/claude-plugins

Or install software-engineering, the plugin that ships this one along with the rest of its 4 skills, 12 commands, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for feature-flow-w

README.md
[![agentmods](https://agentmods.dev/badge/commands/sgaunet/claude-plugins/feature-flow-w.svg)](https://agentmods.dev/commands/sgaunet/claude-plugins/feature-flow-w)
Your own site
<a href="https://agentmods.dev/commands/sgaunet/claude-plugins/feature-flow-w"><img src="https://agentmods.dev/badge/commands/sgaunet/claude-plugins/feature-flow-w.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,739 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00030 $0.05739
Opus 5 $0.00015 $0.02870
Sonnet 5 $0.00006 $0.01148
Haiku 4.5 $0.00003 $0.00574

Measured 4d ago against content hash f169a76e56ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

feature-flow-w scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/software-engineering/commands/feature-flow-w.md · 432 lines

How it starts

The opening of the file, as written. The whole thing — 432 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Feature Flow Worktree Command

Orchestrate a complete git workflow using worktrees for feature development. Creates a parallel working directory instead of switching branches, keeping your current branch untouched. Two modes:

  1. Staged Changes Mode (default): Analyze staged changes → worktree + branch → create issue → commit (in worktree)
  2. Issue Mode (#<number>): Retrieve issue → validate relevance → worktree + branch → implement → lint → test → verify → commit → merge (all in worktree)

Use feature-flow-w instead of feature-flow when you want to work on multiple features simultaneously without leaving your current branch.

Mode Detection

Route based on $argument: first positional argument matching #<number> or bare <number>Issue Mode; otherwise → Staged Changes Mode.

Issue Mode examples: /feature-flow-w #42, /feature-flow-w 42 --squash Staged Mode examples: /feature-flow-w, /feature-flow-w add user auth, /feature-flow-w --skip-issue

Worktree Path Computation

Before creating any worktree, compute the target path:

  1. If --worktree-path <path> (or -w <path>) provided → use that path (resolve to absolute if relative)
  2. Default: <repo-parent>/<repo-name>-<sanitized-branch> where / in branch name becomes -
    • Example: repo at /home/user/my-project, branch feat/add-auth/home/user/my-project-feat-add-auth
  3. Validate directory does not already exist

Store <worktree-path> and <original-path> (result of pwd) for use throughout all phases.

Staged Changes Mode (5 Phases)

Phase 1: Discovery & Validation (Automatic)

Execute parallel git commands: git status and git diff --staged

Detect Repository Host: Use the detect-repo-host skill to identify the hosting service (GitHub, GitLab, or Forgejo) and extract owner/repo details.

Analysis steps:

  1. Analyze staged changes:
    • Extract file paths, extensions, and types
    • Determine change type: new files → feat, test+fixes → fix, docs only → docs, structural → refactor, build/config → chore
    • Extract primary scope from directory (e.g., src/api/api, internal/auth/auth)

Read the full file on GitHub · 432 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 432 lines · 30 tokens per session scan A f169a76e56ef

Subscribe to this mod's changes

feature-flow-w is a command published in the GitHub repository sgaunet/claude-plugins (16 stars, last pushed 2d ago), licensed MIT. It adds 30 tokens to every session and 5,739 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.