/software-engineering:feature-flow [context | #issue-number] [--skip-branch] [--skip-issue] [--skip-mr] [--squash] [--msg "text"] [--dry-run] [--force]from software-engineering
Orchestrates complete git feature workflows across GitHub/GitLab/Forgejo: analyzes staged changes, creates branches, issues, commits, runs quality checks, and opens merge requests. Supports issue-driven and staged-changes modes with flags for skipping phases.
Ships in software-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Orchestrate a complete git workflow for feature development. Two modes:
#<number>): Retrieve issue → validate relevance → branch → implement → lint → test → verify → commit → mergeAutomates repetitive workflow setup (branching, issues, commits, quality checks, merge requests).
Route based on $argument: first positional argument matching #<number> or bare <number> → Issue Mode; otherwise → Staged Changes Mode.
Issue Mode examples: /feature-flow #42, /feature-flow 42 --squash
Staged Mode examples: /feature-flow, /feature-flow add user auth, /feature-flow --skip-issue
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:
Analyze staged changes:
feat, test+fixes → fix, docs only → docs, structural → refactor, build/config → choresrc/api/ → api, internal/auth/ → auth)Generate proposed branch name:
<type>/<scope>-<description> (kebab-case, 2-4 words)feat/api-user-profile, fix/auth-jwt-validation, docs/readme-updateError handling:
detect-repo-host skill provides detailed error messagesParse flags: --skip-branch or -b → skip this phase.
If not skipped:
git rev-parse --abbrev-ref HEADgit checkout -b <branch-name>, verifyError handling:
<name>-v2 or ask for alternativeParse flags: --skip-issue or -i → skip this phase.
If not skipped:
List available labels (same pattern as /create-issue skill):
gh label list --repo <owner>/<repo>glab label listfgj label list -R <owner>/<repo>Generate issue content following /create-issue conventions:
feat→enhancement, fix→bug, docs→documentation, etc.), validate against available labelsDisplay preview, ask confirmation: "Create issue with this content?" → "Yes, create issue" / "Skip issue creation"
Create issue if approved:
gh issue create --repo <owner>/<repo> --title "<title>" --body "<body>" --label "<label1>" --label "<label2>" --assignee @meglab issue create --title "<title>" --description "<body>" --label "<label1>" --label "<label2>" --assignee "$(glab api user | jq -r '.username')"fgj issue create -R <owner>/<repo> -t "<title>" -b "<body>" -l <label1> -l <label2> (no assignee flag — fgj does not yet support issue assignment, so omit self-assign)Error handling:
gh/glab/fgj CLI not installed → Skip issue creation, warn, continue to commitGenerate conventional commit message following /commit skill format (see commit.md for full spec):
Closes #<issue-number> (always use Closes, not Refs, when an issue was created in Phase 3)commit skill's no-attribution policy)Display preview, ask confirmation: "Commit with this message?" → "Yes, commit now" / "Edit message" / "Cancel workflow"
Execute: git commit -m "<message>", verify with git log -1 --oneline.
Error handling:
Display workflow summary showing completed steps (branch created, issue created, commit hash) and next steps: push branch, create PR/MR, continue development.
Detect Repository Host: Use the detect-repo-host skill.
Get current branch: git rev-parse --abbrev-ref HEAD
Fetch issue details:
gh issue view <number> --repo <owner>/<repo> --json title,body,labelsglab issue view <number>fgj issue view <number> -R <owner>/<repo> --jsonExtract: Title (→ branch name, commit, MR title), Body (→ implementation spec), Labels (→ type detection)
Validate the issue is still relevant (ESSENTIAL — never skip):
The codebase may have changed since the issue was opened, so the issue may already be resolved or no longer applicable. Before doing any work, confirm it still holds:
file:line), then ask via AskUserQuestion: "Proceed anyway" / "Adjust scope to remaining work" / "Abort" (optionally comment on or close the issue).This check is read-only and always runs, including under --dry-run and --force. In --force mode, run the check and auto-proceed when the issue is still valid; if it is clearly already resolved, abort with the evidence instead of implementing redundant changes.
Error handling:
gh/glab/fgj CLI not installed → Abort: "Cannot retrieve issue. Install gh (GitHub), glab (GitLab), or fgj (Forgejo) CLI first."Parse flags: --skip-branch or -b → skip this phase.
If not skipped:
Derive branch type from labels:
| Label contains | Type |
|---|---|
| bug, bugfix, fix | fix |
| enhancement, feature | feat |
| documentation, docs | docs |
| refactor | refactor |
| test | test |
| ci, ci-cd | ci |
| performance | perf |
| (no match) | feat |
Generate branch name: <type>/<scope>-issue-<N> (scope from issue title, kebab-case)
Ask confirmation via AskUserQuestion, handle response same as Phase 2.
Error handling: Same as Phase 2 (branch exists → suggest alternative, git error → abort).
Use the run-lint skill to auto-detect and execute the project linter. If lint fails, ask user whether to continue.
Use the run-tests skill to auto-detect and execute the project test runner. If tests fail, ask user whether to continue.
git diff --stat summarygit add <files from Phase I-3> (only created/modified files)Closes #<N>git log -1 --onelineError handling: Pre-commit hook fails → abort with recovery steps; commit fails → abort.
On successful commit: Immediately proceed to Phase I-8.
Parse flags: --skip-mr → skip this phase.
Build command: auto-mr [--msg "<message>"]
auto-mr squashes by default; there is no --squash flag to forward. --squash/-s is a no-op kept for backward compatibility.--msg: default <type>(<scope>): <issue-title> (Closes #<N>), override with user's --msgPre-flight (run before asking):
auto-mr --version — if auto-mr is not installed, skip this phase entirely and
show git push -u origin <branch-name> instead.git rev-parse --abbrev-ref HEAD — if this is the default branch
(main/master), stop. auto-mr will not refuse on its own, and merging a
default branch into itself then deleting it is not recoverable from here.git status --porcelain — if the tree is dirty, list the uncommitted files
and let the user decide before proceeding.Confirmation (required — never skip, never infer): ask via AskUserQuestion:
Run
auto-mron<branch-name>? This pushes the branch, opens the MR/PR, waits for CI, and then merges it and deletes the branch automatically if CI passes.
Options: "Yes — push, merge and delete" / "Cancel — leave the commit local"
Do not treat the Phase I-7 commit approval as covering this. Committing and merging are different decisions with very different blast radius, and this is the only irreversible step in the workflow.
Execute: Run auto-mr → on success display MR/PR URL → on failure warn and show manual push instructions. If the failure looks like a pipeline timeout, verify the MR/PR is still open and unmerged (gh pr view / glab mr view / fgj pr view) before reporting the outcome.
Display summary showing all completed steps (issue retrieved, branch, implementation, lint, tests, commit, MR) with URLs and hashes.
Both modes:
| Flag | Short | Effect |
|---|---|---|
--skip-branch | -b | Skip branch creation, stay on current branch |
--dry-run | -n | Preview mode: show what would be done without executing |
--force | -f | Skip all confirmation prompts, auto-approve all phases |
Staged changes mode only:
| Flag | Short | Effect |
|---|---|---|
--skip-issue | -i | Skip issue creation |
Issue mode only:
| Flag | Short | Effect |
|---|---|---|
--squash | -s | No-op — auto-mr squashes by default already |
--msg "text" | -m "text" | Custom MR message for auto-mr |
--skip-mr | none | Skip auto-mr phase (I-8) |
Flag parsing: Split $argument by spaces. Tokens starting with -- or - are flags. #<number> or bare <number> as first positional → Issue Mode. Remaining non-flag text → context for branch/commit description.
Dry run (--dry-run): Executes discovery/retrieval phases, displays all proposed actions (branch, issue, commit, implementation plan, lint/test commands), but does NOT execute any mutations. Ends with "Dry run complete. No changes made."
Force mode (--force): Skips all AskUserQuestion calls, auto-approves all phases. Still displays progress and aborts on errors.
Works with /create-issue (same CLI logic), /commit (same conventional format), and /analyze-pr (compatible output).
# Stage files, run command → branch + issue + commit
git add api/user.go api/user_test.go
/feature-flow
# Skip issue creation for trivial changes
git add docs/README.md
/feature-flow --skip-issue
# Preview without executing
git add database/schema.sql
/feature-flow --dry-run
# Minimal workflow: commit only (no branch, no issue)
git add config.yml
/feature-flow --skip-branch --skip-issue
# Full workflow from issue
/feature-flow #42
# With squash merge
/feature-flow #42 --squash
# Implement and commit only, no MR
/feature-flow #42 --skip-mr
# Auto-approve everything
/feature-flow #42 --force --squash
| # | Error | Message / Action |
|---|---|---|
| 1 | No staged changes | "No staged changes found. Stage files with 'git add ' first." |
| 2 | Not a git repository | "Not a git repository. Initialize with 'git init' first." |
| 3 | Branch already exists | Suggest <name>-v2 or ask for alternative |
| 4 | Pre-commit hook fails | Display hook output, abort, suggest fixing and retrying |
| 5 | gh/glab/fgj CLI not found (issue) | Skip issue creation, warn, continue to commit |
| 6 | Invalid labels | Remove invalid labels silently, warn user |
| 7 | Issue creation fails | Log error, continue to commit without issue reference |
| 8 | Commit fails | Display git error, abort |
| # | Error | Message / Action |
|---|---|---|
| 9 | Issue not found | "Issue #N not found in <owner/repo>." Abort. |
| 10 | gh/glab/fgj CLI not found (retrieval) | "Cannot retrieve issue. Install gh, glab, or fgj CLI first." Abort. |
| 10b | Issue already resolved / no longer relevant | Report evidence (file:line); ask to proceed / adjust scope / abort |
| 11 | Lint failure | Display errors, attempt auto-fix, ask user to continue or abort |
| 12 | Test failure | Display output, attempt fix (max 2 retries), ask user |
| 13 | auto-mr not installed | Warn, show manual push: git push -u origin <branch-name> |
| 14 | auto-mr fails | Show error, provide manual push command and MR URL |
--dry-run first to preview either mode--skip-issue for trivial changes (staged mode)/feature-flow add OAuth2 integration--skip-mr to commit without creating a merge request (issue mode)/feature-flow → work → /commit → /analyze-prWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sgaunet/claude-plugins --plugin software-engineering18 skills in this plugin
/analyze-and-create-issueAnalyze codebase and create GitHub/GitLab/Forgejo issues per finding/analyze-prReview PR for quality, security, and coverage (GitHub/GitLab/Forgejo)/audit-codebaseAudit security, performance, and best practices holistically/auto-mrPush current branch, create MR/PR on GitHub, GitLab, or Forgejo, wait for CI pipeline, merge, and clean up branch using auto-mr CLI/check-claude-md-tokensMonitor and optimize CLAUDE.md token count to stay under 2500 token limit/commitCreate conventional commit from staged changes with approvalOther plugins' skills for the same job