/flow:issue description-or-topicfrom flow
Guides creation of a well-crafted GitHub issue with solution-agnostic requirements gathering, duplicate detection, label discovery, and verifiable acceptance criteria.
Ships in flow. Installing the plugin adds it to Claude Code.
Skill-driven issue creation. Follows the Explore > Plan > Code > Verify loop with issue-crafting skill knowledge.
issue-crafting — solution-agnostic issues, duplicate detection, label discovery# Inline the Required Skills above so their rules are in context before the
# first phase runs (commands cannot preload skills from frontmatter). Ambient
# skills load whole; dispatched skills (context: fork / agent:) load their
# `## Contract` section and run in full when this command invokes
# Skill(<name>). Output per `references/command-output-format.md`.
"$(__fr="${CLAUDE_PLUGIN_ROOT:-}";[ -x "$__fr/bin/cascade-resolve.sh" ]||__fr=$({ printf '%s\n' plugins/flow;ls -d "${CLAUDE_CONFIG_DIR:-$HOME/.claude}"/plugins/cache/synapti-marketplace/flow/*/ 2>/dev/null|sort -Vr;printf '%s\n' "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/plugins/marketplaces/synapti-marketplace/plugins/flow"; }|while read -r __p;do [ -x "${__p%/}/bin/cascade-resolve.sh" ]&&{ printf '%s\n' "${__p%/}";break;};done);printf '%s\n' "$__fr")/bin/flow-load-skills.sh" issue-crafting
true
Gather context before formulating the issue.
# Output: `###`-headed sections + KEY=value per
# `references/command-output-format.md`.
printf '%s\n' "### Repo Context"
REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner' 2>/dev/null) || REPO=""
if [ -z "$REPO" ]; then
printf '%s\n' "STATE=unavailable"
printf '%s\n' "ERROR=cannot resolve repo (gh auth or non-repo CWD?)"
else
printf '%s\n' "STATE=ok"
printf '%s\n' "REPO=$REPO"
fi
printf '%s\n' ""
printf '%s\n' "### Git State"
printf '%s\n' "BRANCH=$(git branch --show-current 2>/dev/null)"
UNCOMMITTED_COUNT=$(git status --porcelain 2>/dev/null | wc -l | tr -d ' ')
printf '%s\n' "UNCOMMITTED_COUNT=$UNCOMMITTED_COUNT"
[ "$UNCOMMITTED_COUNT" != "0" ] && git status --short 2>/dev/null | head -20 | sed 's/^/UNCOMMITTED_LINE=/'
true
Branch context extraction: If on a feature branch matching feature/issue-{N}-* or fix/issue-{N}-*, extract the issue number — the new issue may be related.
Requirements gathering from $ARGUMENTS:
[ask: decision] If $ARGUMENTS provides a description, parse it for initial context. For each missing element, use the AskUserQuestion tool (with metadata: {"source": "flow:decision"}) with contextual options:
If $ARGUMENTS is empty, walk through all four elements interactively.
Iron law enforcement: If any gathered element contains file paths, function names, class names, or implementation details — rewrite it to describe outcomes instead. Example:
Formulate the issue with safety checks.
TaskCreate("Duplicate detection", "Search open and closed issues for potential duplicates")
TaskCreate("Label discovery", "Fetch repo labels and select appropriate ones")
TaskCreate("Milestone check", "Check for active milestones")
TaskCreate("Compose issue", "Build issue body from gathered requirements")
TaskCreate("Create and verify", "Create issue via gh and verify fields")
Duplicate detection (from issue-crafting skill):
# Extract keywords from the issue title/description
# Search open issues
gh issue list --state open --search "KEYWORDS" --limit 10
# Search closed issues (might already be solved)
gh issue list --state closed --search "KEYWORDS" --limit 5
[ask: decision] If matches found, present them to the user via AskUserQuestion (with metadata: {"source": "flow:decision"}): "These existing issues look related. Should we proceed with creating a new issue, or does one of these cover your need?"
TaskUpdate duplicate detection to completed.
Label discovery (parallel with milestone check):
gh label list --json name,description --limit 50
Select labels based on issue content. Common mappings:
bugenhancementdocumentationsecurityTaskUpdate label discovery to completed.
Milestone check:
# Each block runs in its own shell, so the repository is resolved here; a
# milestone request is never sent without one. A failing gh prints GitHub's
# error body on stdout, so its exit status decides, not the output.
printf '%s\n' "### Milestones"
REPO=$(gh repo view --json nameWithOwner --jq .nameWithOwner 2>/dev/null) || REPO=""
if [ -z "$REPO" ]; then
printf '%s\n' "STATE=unavailable"
printf '%s\n' "ERROR=cannot resolve the repository (gh auth or non-repo CWD?); milestones were not checked"
elif ! MILESTONES=$(gh api "repos/$REPO/milestones" --jq '.[] | "MILESTONE=\(.number): \(.title)"' 2>/dev/null); then
printf '%s\n' "STATE=unavailable"
printf '%s\n' "ERROR=could not list the milestones of $REPO"
elif [ -z "$MILESTONES" ]; then
printf '%s\n' "STATE=empty"
else
printf '%s\n' "STATE=ok"
printf '%s\n' "$MILESTONES"
fi
true
Offer milestone assignment when the block prints STATE=ok (one MILESTONE=<number>: <title> line each). On STATE=unavailable, say the milestone check did not run and create the issue without one.
TaskUpdate milestone check to completed.
Compose and create the issue.
TaskUpdate compose issue to in_progress.
Build issue body using the template structure from templates/issue-body.md:
## Context
{gathered context — background and motivation}
## Current State
{gathered current state — observable behavior, not implementation details}
## Objective
{gathered objective — outcomes, not methods}
## Acceptance Criteria
- [ ] {Observable behavior 1 — verifiable without knowing the implementation}
- [ ] {Observable behavior 2}
- [ ] {Observable behavior 3}
Final iron law check: Scan the composed body for file paths, function names, class names, or implementation prescriptions. If found, rewrite to be solution-agnostic.
TaskUpdate compose issue to completed.
Create the issue (Tier 2: follows tiers.issueCreate, default journal; while a FlowGoal is active on the branch and minimalScope is false, flow asks first):
gh issue create --title "{title}" --body "{body}" --label "{labels}" [--milestone "{milestone}"]
TaskUpdate create and verify to in_progress.
Confirm the issue was created correctly.
gh issue view <N> --json number,title,state,labels,body
Verification checklist:
TaskUpdate create and verify to completed. TaskList — confirm all tasks completed.
Display summary:
## Issue Created
- **Issue**: #N — {title}
- **Labels**: {labels}
- **URL**: {url}
Present next steps:
/flow:start <N> — begin working on this issue/flow:issue — create another issue| Action | Tier | Behavior |
|---|---|---|
| Codebase search | 1 | Autonomous |
| Duplicate search | 1 | Autonomous (read-only) |
| Issue creation | 2 | Follows tiers.issueCreate (default journal: runs and writes one breadcrumb to the git-ignored auto-log trail; autonomous runs; confirm asks). While a FlowGoal is active on the branch and minimalScope is false, ask-issue-create.sh also asks first. |
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub synaptiai/synapti-marketplace --plugin flow23 commands in this plugin
/addressAddress Review Feedback for PR #$ARGUMENTSAddress PR review feedback systematically. Categorizes feedback, implements surgical fixes, verifies changes, and re-requests review./brainstormBrainstorm: $ARGUMENTSExplore approaches before committing to implementation. Generates options, analyzes trade-offs, and helps select the best approach collaboratively./commitContext-Aware CommitClassify changes and create atomic commits with conventional messages. Flags out-of-context modifications and red-flag patterns before committing.Other plugins' commands for the same job