name: stage-to-issue description: Record a side task discovered during implementation as a GitHub issue. Keeps focus on the current work. Use when a tangential task is found mid-implementation.
Stage-to-Issue
When a new task is discovered during implementation, record it as a GitHub issue and return to current work.
Usage
stage-to-issue Optimize CodeQL to run only on changed pathsstage-to-issue Query engine needs cursor reset on schema change
Agent Signature
Include the CLI and model in the issue body.
Format: <cli> (<model>) -- e.g., claude code (opus 4.6), codex cli (o3)
Steps
- Gather context -- identify the problem, motivation, and relevant details from the conversation
- Check related issues -- if currently working on an issue/PR, include as reference
- Draft issue -- write title and body in English
- Present draft -- show the issue to the user
- Pause -- wait for user confirmation
- Create --
gh issue create --title "<title>" --body "<body>" - Confirm -- display created issue number and URL
- Return -- resume current work
Issue Body Template
## Problem
<What needs to be done and why>
## Context
<Relevant details gathered from current conversation>
## Related
- #<current-work-issue-number> discovered during this work (if applicable)
## Approach
<Suggested solution if available, otherwise omit this section>
---
Created by **<agent signature>**
Rules
- Never create an issue without user confirmation
- Keep it concise — this is a side task, not a specification
- Include enough context for other sessions/agents to work independently
- Reference current issue in the Related section if applicable
- Sign the issue -- include agent signature at the bottom
- All output (title, body) in English
- Return to current work immediately after creation — do not start working on the new issue