issue-driven-al
Orchestrates issue-driven agent loops that post cycle status to issue threads and incorporate human feedback in each cycle.
Best use case
issue-driven-al is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
It is a strong fit for teams already working in Codex.
Orchestrates issue-driven agent loops that post cycle status to issue threads and incorporate human feedback in each cycle.
Teams using issue-driven-al should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/issue-driven-al/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How issue-driven-al Compares
| Feature / Agent | issue-driven-al | Standard Approach |
|---|---|---|
| Platform Support | Codex | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Orchestrates issue-driven agent loops that post cycle status to issue threads and incorporate human feedback in each cycle.
Which AI agents support this skill?
This skill is designed for Codex.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Cursor vs Codex for AI Workflows
Compare Cursor and Codex for AI coding workflows, repository assistance, debugging, refactoring, and reusable developer skills.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Top AI Agents for Productivity
See the top AI agent skills for productivity, workflow automation, operational systems, documentation, and everyday task execution.
SKILL.md Source
# Issue-Driven Agent Loop Skill ## Triggers Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description): - "work through the bugs" → issue-driven loop shorthand - "address the backlog" → iterative issue queue processing - "tackle issue [N]" → single-issue loop ## Purpose Transforms the issue tracker from a passive record into an active 2-way collaboration surface. Each Al cycle posts structured status to the issue thread, scans for human feedback, and responds substantively. The human can monitor and steer agent work asynchronously by commenting on the issue. ## Behavior When triggered, this skill invokes the `/address-issues` command with appropriate parameters extracted from the user's natural language request. ### Parameter Extraction | User Says | Extracted Parameters | |-----------|---------------------| | "address issues 17 18 19" | `17 18 19` | | "fix open bugs" | `--filter "status:open label:bug"` | | "work on the bug backlog" | `--filter "status:open label:bug"` | | "tackle issue 17" | `17` | | "go through all open issues" | `--all-open` | | "address the open issues interactively" | `--all-open --interactive` | | "focus on security bugs" | `--all-open --guidance "Focus on security bugs"` | | "fix bugs 17-19, they're all auth related" | `17 18 19 --guidance "These are all related to auth"` | ### Parameter Support This skill supports the standard AIWG `--interactive` and `--guidance` parameters: **`--interactive`**: When detected in user intent (e.g., "interactively", "walk me through"), adds `--interactive` to invoke discovery questions before starting and pause between issues for human go/no-go. **`--guidance`**: When the user provides upfront direction (e.g., "focus on bugs", "skip feature requests", "security first"), extracts the guidance text and passes it via `--guidance "..."` to tailor prioritization and approach without interactive prompts. ### Execution Steps 1. **Parse intent** — identify issue numbers, filters, or "all open" from user message 2. **Invoke `/address-issues`** with extracted parameters 3. **Monitor execution** — the command handles the full cycle protocol ### The 3-Step Cycle Protocol Each cycle of the agent loop follows this protocol: **Step 1: Work** — Read issue context, implement fix/feature, run tests **Step 2: Post Status** — Post structured comment to the issue thread: ``` **AL CYCLE #N – [Progress|Blocked|Review Needed]** - Actions taken this cycle - Task checklist (updated) - Blockers (if any) - Next steps ``` **Step 3: Scan & Respond** — Read all new thread comments, classify them (feedback/question/approval/correction), and incorporate into the next cycle. Never ignore human input. ### Thread Scanning Classification | Comment Type | Agent Response | |-------------|---------------| | Feedback | Incorporate into next cycle's work | | Question | Answer in next status comment | | Approval | Proceed to next phase or close issue | | Correction | Adjust approach, acknowledge the change | | Automated/bot | Ignore | ### Completion Criteria (per issue) An issue is resolved when: - Implementation is complete - Tests pass - Documentation updated (if needed) - All thread feedback addressed - No unresolved blocker comments ### Multi-Issue Strategy | Strategy | Trigger | |----------|---------| | Sequential | Default — one issue at a time | | Batched | When user mentions "related" issues or same module | | Parallel | When user says "in parallel" (respects context budget) | ## Integration ### Issue Tracker APIs **Gitea** (via MCP tools): - `mcp__gitea__list_repo_issues` — list issues - `mcp__gitea__get_issue_by_index` — read issue - `mcp__gitea__get_issue_comments_by_index` — read thread - `mcp__gitea__create_issue_comment` — post status - `mcp__gitea__edit_issue` — update labels/status **GitHub** (via `gh` CLI): - `gh issue list` — list issues - `gh issue view N` — read issue - `gh issue comment N --body "..."` — post status - `gh issue close N` — close resolved ### Related Commands | Command | Integration | |---------|-------------| | `/ralph` | Core loop engine | | `/issue-list` | Fetches issues by filter | | `/issue-comment` | Posts cycle status comments | | `/issue-close` | Closes resolved issues | | `/issue-sync` | Links commits to issues | ## Safety - Never force-push or make destructive git changes - Always run tests before posting completion status - Respect `--max-cycles` limit (default: 6) - Post status every cycle — transparency is mandatory - On error, post blocker comment rather than failing silently - In `--interactive` mode, pause between issues for human go/no-go ## Configuration Default settings (overridable via parameters): - Max cycles per issue: 6 - Strategy: sequential - Provider: auto-detect from project config - Branch per issue: false - Interactive: false ## Examples ### Fix a specific bug ``` User: "tackle issue 17" → /address-issues 17 ``` ### Work through the bug backlog ``` User: "work on the bug backlog" → /address-issues --filter "status:open label:bug" ``` ### Interactive session on multiple issues ``` User: "address issues 17, 18, 19 interactively" → /address-issues 17 18 19 --interactive ``` ### All open issues with higher cycle limit ``` User: "go through all open issues, give each one up to 8 cycles" → /address-issues --all-open --max-cycles 8 ``` ### With guidance ``` User: "fix the open bugs, focus on security issues first" → /address-issues --filter "status:open label:bug" --guidance "Security issues are top priority" ``` ### Guidance with batch context ``` User: "address issues 17, 18, 19 — they're all related to the auth refactor" → /address-issues 17 18 19 --guidance "These are all related to the auth refactor, address them as a batch" ``` ## References - @.aiwg/planning/issue-driven-ralph-loop-design.md - Design document - @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/skills/address-issues/SKILL.md - Command definition - @$AIWG_ROOT/agentic/code/addons/ralph/skills/ralph/SKILL.md - Agent loop command - @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/skills/issue-auto-sync/SKILL.md - Issue sync skill - @$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/context-budget.md - Parallel subagent limits
Related Skills
issue-update
Update existing ticket/issue with status changes, comments, or field updates
issue-sync
Automatically detect and update linked issues based on commits, artifacts, and task events
issue-planner
Research-grounded SDLC issue planner. Given an objective, dispatches parallel research agents, generates the supporting SDLC doc corpus, then files prioritized, cross-referenced issues and awaits human review before work begins.
issue-list
List and filter tickets/issues from configured backend
issue-create
Create a new ticket/issue with configurable backend (Gitea, GitHub, Jira, Linear, or local files)
issue-comment
Add structured comments to issues using templates for progress, feedback, or blockers
issue-close
Mark an issue as complete with comprehensive summary and verification
issue-auto-sync
Detect issue references in commits and artifacts and automatically update or close linked tracker issues
address-issues
Address open issues using issue-thread-driven agent loops with 2-way human-AI collaboration
aiwg-orchestrate
Route structured artifact work to AIWG workflows via MCP with zero parent context cost
venv-manager
Create, manage, and validate Python virtual environments. Use for project isolation and dependency management.
pytest-runner
Execute Python tests with pytest, supporting fixtures, markers, coverage, and parallel execution. Use for Python test automation.