Agents should behave. Let them follow the issue flow.
Project description
issue-flow
Agents should behave. Let them follow the issue flow.
issue-flow scaffolds a lightweight issue-tracking workflow into your project so that AI coding agents can pick up GitHub issues, plan work, and land PRs in a consistent way. It supports Cursor, Claude Code, opencode, and Codex via --editor (see Editor support); the examples below use the default, Cursor.
What it does
Running issue-flow init in your project root creates:
your-project/
.issueflows/
00-tools/ # Helper scripts for agents
01-current-issues/ # Active issue markdown files
02-partly-solved-issues/ # Parked / in-progress issues
03-solved-issues/ # Completed issues archive
.cursor/
commands/
iflow-pick.md # /iflow-pick — choose the next issue, branch, init (front door)
iflow.md # /iflow — smart dispatcher (quick start)
iflow-init.md # /iflow-init — fetch a GitHub issue locally
iflow-plan.md # /iflow-plan — write issue<N>_plan.md and confirm
iflow-start.md # /iflow-start — implement the plan
iflow-pause.md # /iflow-pause — park work in 02-partly-solved-issues/
iflow-close.md # /iflow-close — test, commit, push, PR
iflow-cleanup.md # /iflow-cleanup — post-merge branch hygiene
iflow-yolo.md # /iflow-yolo — all-in-one for small, low-risk issues
iflow-fix.md # /iflow-fix — interactive iterative-fixes session
iflow-status.md # /iflow-status — read-only overview of all issues (off-path)
iflow-graphify.md # /iflow-graphify — rebuild the graphify knowledge graph (optional)
skills/ # Optional Agent Skills (explicit / @ invoke)
iflow-pick/SKILL.md
iflow-iflow/SKILL.md
iflow-init/SKILL.md
iflow-plan/SKILL.md
iflow-start/SKILL.md
iflow-pause/SKILL.md
iflow-close/SKILL.md
iflow-cleanup/SKILL.md
iflow-yolo/SKILL.md
iflow-fix/SKILL.md
iflow-status/SKILL.md
iflow-version-bump/SKILL.md
iflow-history-update/SKILL.md
iflow-graphify/SKILL.md
rules/
issueflow-rules.mdc # Always-on Cursor rule for the workflow
AGENTS.md # Workflow rules (managed block; shared by all editors)
docs/
issue-workflow.md # Human-readable overview of the workflow
The exact agent_dir and the per-editor rules file depend on which editor(s) you scaffold for — see Editor support. AGENTS.md (written as a non-destructive managed block) and docs/issue-workflow.md are shared by every editor.
The Cursor slash commands give agents a repeatable flow. The linear path is:
/iflow-init 42— pulls GitHub issue #42 into.issueflows/01-current-issues/and archives older issues./iflow-plan— draftsissue<N>_plan.md(Goal / Constraints / Approach / Files to touch / Test strategy / Open questions) and stops for your confirmation./iflow-start— reads the confirmed plan and implements it. If no plan file exists, it offers to run/iflow-planfirst, proceed without a plan, or abort./iflow-close— runs tests, optionally bumps version withuv version --bump, appends aHISTORY.mdentry (or promotes[Unreleased]to a new release section on a bump), updates status files, commits, pushes, and opens a PR./iflow-cleanup— after the PR merges, switches to the default branch, fast-forwards, prunes, and deletes the merged local branch.
Plus a few off-path commands:
/iflow-pick— front door: when you haven't chosen an issue yet, it helps pick one (parked work in02-partly-solved-issues/first, else open GitHub issues ranked by milestone, labels, and similarity to recently solved work), creates the<N>-slugbranch, and runs/iflow-init. Passfixto create a new general-fixes issue. Off-path; never auto-dispatched./iflow— quick start: inspects the current issue's state and dispatches to the right linear step automatically. A branch-derived number (42-fix-login→N=42) is authoritative, so/iflowworks from a fresh branch too./iflow-pause— park the current issue in02-partly-solved-issues/with a Remaining work note; optional WIP commit + switch back to the default branch./iflow-yolo— all-in-one chain (init → plan → start → close) for small, low-risk issues, with up-front safeguards (refuses on the default branch, refuses with dirty unrelated changes, requires passing tests, single consolidated confirm)./iflow-fix— interactive iterative-fixes session: creates one GitHub issue + long-lived branch, then loops over many small fixes (each gets a short plan, implemented only on confirmation and recorded inissue<N>_status.md), ending with/iflow-close. Coexists with/iflow-pick fix(the one-shot setup). Off-path; never auto-dispatched./iflow-status— read-only overview of where every issue stands: the local tracking state (focus / parked / solved) plus open GitHub issues cross-referenced against it. Passlocalto skip the GitHub query. Changes nothing; off-path; never auto-dispatched.
The matching Agent Skills (under .cursor/skills/) carry the same workflows for on-demand use with /iflow-pick, /iflow-iflow, /iflow-init, /iflow-plan, /iflow-start, /iflow-pause, /iflow-close, /iflow-cleanup, /iflow-yolo, /iflow-fix, /iflow-status, @iflow-version-bump when you need only the bump steps, or @iflow-history-update when you need only the changelog update (see Cursor Agent Skills).
Prerequisites
issue-flow itself is a small Python CLI, but the scaffolded slash commands
it writes into your project shell out to a few external tools. If they are
missing, the slash commands will fail at runtime — so issue-flow init now
checks for them up front and prints install hints before it does anything.
Required:
- Git — used by every slash command for branch, fetch, status, commit, and push operations. Almost certainly already installed if you're here, but the check covers it for completeness.
- GitHub CLI (
gh) — used by/iflow-initto fetch issues, by/iflow-closeto open PRs, and by/iflow-cleanupto check PR merge status. After installing, rungh auth loginonce to authenticate.
Recommended:
- uv — how issue-flow itself is meant to be installed, and how this repo manages its own Python environment.
Quick install pointers for gh:
| Platform | Command |
|---|---|
| macOS (Homebrew) | brew install gh |
| Windows (winget) | winget install --id GitHub.cli -e |
| Linux (Debian/Ubuntu) | sudo apt install gh (or see cli.github.com for the official repo) |
If a dependency is missing, issue-flow init prints the installation hints
and asks whether to continue anyway. You can bypass the prompt in automation
with issue-flow init --skip-dep-check (the same flag is available on
issue-flow update), and the prompt is also auto-skipped when stdin is not
a TTY (e.g. CI pipelines).
Optional: graphify integration
issue-flow has a lightweight integration with graphify
(PyPI: graphifyy, CLI: graphify) — a tool that turns the project into a
queryable knowledge graph that AI assistants can read instead of grepping
through files. The integration is opt-in by installing graphifyy as its
own tool (the same way you installed issue-flow): there is no enable flag and
no extras to remember — detection is purely PATH-based. (You can keep an LLM
API key in .env for the optional extract pass; see below.)
What issue-flow does when graphify is on PATH:
issue-flow initandissue-flow updaterungraphify cursor installso the graphify Cursor skill is registered alongside the issue-flow scaffold. If graphify is not installed, both commands just print install hints and continue — they never block.- A new slash command
/iflow-graphify(and matching/iflow-graphifyskill) wrapsissue-flow graphify. With no extra args it runsgraphify update <project>— AST-only, no LLM API key required, so the no-arg case "just works". For richer semantic relationships addextract(issue-flow graphify extract) and configure a backend (GEMINI_API_KEY,ANTHROPIC_API_KEY,OPENAI_API_KEY,MOONSHOT_API_KEY, or--backend ollamafor a local LLM). You can set that key in the project.env—issue-flow graphifyloads.envfrom the project root before invoking graphify — or export it in your shell environment. Cursor's own LLM is not available to subprocesses, so graphify needs its own backend. Other subcommands (watch,cluster-only, …) pass through too; trailing flags forward verbatim. - The scaffolded rules and
/iflow-startmentiongraphify-out/GRAPH_REPORT.mdas a recommended pre-read when the file exists./iflow-graphifyis off-path —/iflownever auto-dispatches to it.
To enable, install graphify as its own standalone tool:
uv tool install graphifyy # recommended
# or
pipx install graphifyy
# or
pip install graphifyy
Why not an
issue-flow[graphify]extra (oruv tool install issue-flow --with graphifyy)?uv tool installonly puts the host package's entry-point scripts on PATH. An extra (or--with graphifyy) pulls graphifyy into issue-flow's venv but leaves thegraphifyCLI invisible to the shell, so/iflow-graphifyandgraphify cursor installwould still fail. Installing graphify as its own tool puts a realgraphifyshim on PATH and matches how we treatgit/gh.
Just installed graphifyy and
issue-flow initsays it's still missing? uv prints~/.local/bin is not on your PATHafter the firstuv tool install. Runuv tool update-shell(refreshes shell rc files), then restart your shell and Cursor so the new PATH takes effect. issue-flow's missing-CLI hint also detects this case and tells you the exact directory to add.
After installing, run issue-flow update once so the graphify Cursor skill
gets registered.
Installation
Requires Python 3.13+ and uv.
uv tool install issue-flow
Or add it as a dev dependency to your project:
uv add --dev issue-flow
Quick start
cd your-project
issue-flow init
That's it. Open the project in Cursor and start with /iflow (or step through /iflow-init, /iflow-plan, /iflow-start, /iflow-close, /iflow-cleanup explicitly).
Usage
issue-flow init [PROJECT_DIR] [--force] [--skip-dep-check]
issue-flow update [PROJECT_DIR] [--skip-dep-check]
issue-flow graphify [-C PROJECT_DIR] [...graphify subcommand + args]
issue-flow init
| Argument / Option | Description |
|---|---|
PROJECT_DIR |
Project root directory. Defaults to . (current directory). |
--force, -f |
Overwrite generated commands, rules, and workflow doc instead of skipping them. |
--skip-dep-check |
Skip the external-CLI dependency check (git, gh) and the confirmation prompt that follows if anything is missing. Useful in automation. |
--editor, -e |
AI coding tool(s) to scaffold for: cursor (default), claude, opencode, codex, or all. Repeatable (-e cursor -e claude). See Editor support. |
Running init again without --force is safe: generated scaffold files that already exist are skipped, and issue markdown under .issueflows/ is never touched by init or update. When the CLI detects an existing scaffold, it reminds you about update and --force.
issue-flow update
| Argument / Option | Description |
|---|---|
PROJECT_DIR |
Project root directory. Defaults to . (current directory). |
--skip-dep-check |
Skip the external-CLI dependency check (git, gh) and the confirmation prompt that follows if anything is missing. |
--editor, -e |
AI coding tool(s) to refresh for: cursor (default), claude, opencode, codex, or all. Repeatable. See Editor support. |
Use update after upgrading the issue-flow package to refresh the packaged slash commands, rules file(s), and docs/issue-workflow.md from the version you have installed. This overwrites those generated files (unlike a plain second init). It still does not modify arbitrary files under .issueflows/ (for example your issue*_original.md / issue*_status.md files), and it creates any new .issueflows/ subdirectories required by the current package.
issue-flow graphify
| Argument / Option | Description |
|---|---|
-C, --project-dir |
Project root directory to scan with graphify. Defaults to . (current directory). Modeled on git -C so positional args can flow into graphify untouched. |
...graphify subcommand + args |
Optional graphify subcommand + flags. With no extras runs graphify update <PROJECT_DIR> — AST-only, no LLM API key required. The first extra arg, if it is a recognized build subcommand (update, extract, watch, cluster-only, check-update), picks the action; trailing tokens forward verbatim. Examples: issue-flow graphify extract (semantic LLM pass; needs GEMINI_API_KEY / ANTHROPIC_API_KEY / OPENAI_API_KEY / MOONSHOT_API_KEY or --backend ollama), issue-flow graphify cluster-only --no-viz, issue-flow graphify ./subdir. |
graphify requires graphifyy to be installed (uv tool install graphifyy). When the graphify CLI is missing, the command prints install hints and exits with code 2. Outputs land in graphify-out/ (graph.html, GRAPH_REPORT.md, graph.json).
When to use which
| Goal | Command |
|---|---|
| First-time setup, or add missing files only | issue-flow init |
Pull newer templates after uv tool upgrade issue-flow (or similar) |
issue-flow update |
| Replace generated scaffolds without upgrading logic | issue-flow init --force |
| Rebuild the graphify knowledge graph | issue-flow graphify |
Editor support
issue-flow can scaffold its workflow for several AI coding tools. Pass one or
more --editor values (repeatable, or all) to init / update; the default
is cursor, so existing setups are unchanged.
issue-flow init # Cursor (default)
issue-flow init --editor claude # Claude Code
issue-flow init -e cursor -e claude # both
issue-flow init --editor all # every supported editor
Agent Skills (<agent_dir>/skills/<name>/SKILL.md) are the portable core —
every editor gets the full set. **AGENTS.md** is the convergent rules file and
is written for every editor as a non-destructive managed block (issue-flow
only ever owns the content between its markers, so a hand-maintained AGENTS.md
is preserved). Slash commands and an editor-specific rules file are layered on
top where the tool supports them.
| Editor | agent_dir |
Slash commands | Skills | Extra rules file | AGENTS.md |
graphify auto-register |
|---|---|---|---|---|---|---|
| Cursor | .cursor/ |
commands/ |
yes | .cursor/rules/issueflow-rules.mdc |
yes | yes |
| Claude Code | .claude/ |
commands/ |
yes | CLAUDE.md |
yes | no |
| opencode | .opencode/ |
command/ |
yes | — | yes | no |
| Codex | .codex/ |
— (use skills) | yes | — | yes | no |
Codex CLI removed project-scoped slash commands, so on Codex you invoke the
mirrored skills (e.g. iflow-init) instead of /iflow-init. The
graphify integration currently registers only with Cursor; other editors still
get the /iflow-graphify command/skill but no automatic graphify cursor install.
Configuration
issue-flow reads a .env file from the project root (.via python-dotenv). The following environment variables are supported:
| Variable | Default | Description |
|---|---|---|
ISSUEFLOW_DIR |
.issueflows |
Name of the issue-tracking directory. |
ISSUEFLOW_EDITOR |
cursor |
Default editor profile when --editor is not passed (cursor, claude, opencode, codex). |
ISSUEFLOW_AGENT_DIR |
(per editor) | Override the agent/IDE config directory. When unset it is derived from the editor profile (e.g. .cursor, .claude, .opencode, .codex). |
ISSUEFLOW_DOCS_DIR |
docs |
Where to write the workflow documentation file. |
ISSUEFLOW_HISTORY_FILE |
HISTORY.md |
Changelog file that /iflow-close updates (set to e.g. CHANGELOG.md for different conventions). |
Beyond the ISSUEFLOW_* settings above, issue-flow graphify also reads an LLM
API key from .env when present (GEMINI_API_KEY, ANTHROPIC_API_KEY,
OPENAI_API_KEY, or MOONSHOT_API_KEY) and passes it through to the
graphify extract semantic pass. The no-arg graphify update build is
AST-only and needs no key.
Development
git clone https://github.com/jepegit/issue-flow.git
cd issue-flow
uv sync
# Run tests
uv run pytest
# Lint
uv run ruff check src/ tests/
Changelog
See HISTORY.md for release notes.
Future plans
- More editors — extend
--editorcoverage to further AI coding tools (e.g. Windsurf) on top of the current Cursor / Claude Code / opencode / Codex support. **issue-flow status** — show a dashboard of current, partly-solved, and solved issues.- Custom templates — let users supply their own Jinja2 templates to tailor slash commands and rules to their team's conventions.
- Git hook integration — optionally move issue files on commit based on status markers.
- GitHub Actions workflow — ship a reusable action that syncs issue state between
.issueflows/and GitHub issue labels/milestones.
License
This project is released under the MIT License. See the full text in the repository: LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file issue_flow-0.4.1a3.tar.gz.
File metadata
- Download URL: issue_flow-0.4.1a3.tar.gz
- Upload date:
- Size: 79.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2025db2396ef6fea5e4f49306ac3dcba3743be773d7221dce2a1ae4d6285fae8
|
|
| MD5 |
f5df6000b23751ef34fe9ef86e80e9c9
|
|
| BLAKE2b-256 |
78e976e465ac73369364822eb3656de58211c548086711070cdcde7ea1b38f2b
|
Provenance
The following attestation bundles were made for issue_flow-0.4.1a3.tar.gz:
Publisher:
publish.yml on jepegit/issue-flow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
issue_flow-0.4.1a3.tar.gz -
Subject digest:
2025db2396ef6fea5e4f49306ac3dcba3743be773d7221dce2a1ae4d6285fae8 - Sigstore transparency entry: 1926367111
- Sigstore integration time:
-
Permalink:
jepegit/issue-flow@0db0445219e4c0a5d8abdce58d03cbc46591ecbc -
Branch / Tag:
refs/tags/v0.4.1a3 - Owner: https://github.com/jepegit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0db0445219e4c0a5d8abdce58d03cbc46591ecbc -
Trigger Event:
release
-
Statement type:
File details
Details for the file issue_flow-0.4.1a3-py3-none-any.whl.
File metadata
- Download URL: issue_flow-0.4.1a3-py3-none-any.whl
- Upload date:
- Size: 112.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
005b9519cd7f4f2b30fad019aaf6e72af6877a021489db10049c042d2eceb0d4
|
|
| MD5 |
eb337f1e2417b775c04e4ce20b6273c9
|
|
| BLAKE2b-256 |
24a7de0c5b0a5554cc629d8455dbbfb93138fec5fa9e9386ef8b501545b13a90
|
Provenance
The following attestation bundles were made for issue_flow-0.4.1a3-py3-none-any.whl:
Publisher:
publish.yml on jepegit/issue-flow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
issue_flow-0.4.1a3-py3-none-any.whl -
Subject digest:
005b9519cd7f4f2b30fad019aaf6e72af6877a021489db10049c042d2eceb0d4 - Sigstore transparency entry: 1926367271
- Sigstore integration time:
-
Permalink:
jepegit/issue-flow@0db0445219e4c0a5d8abdce58d03cbc46591ecbc -
Branch / Tag:
refs/tags/v0.4.1a3 - Owner: https://github.com/jepegit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0db0445219e4c0a5d8abdce58d03cbc46591ecbc -
Trigger Event:
release
-
Statement type: