Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Issue Approve?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/marcusjellinghaus-issue-approve)
---
description: Approve issue to transition to next workflow status
disable-model-invocation: true
argument-hint: "<issue-number> [--repo owner/repo]"
allowed-tools:
- mcp__mcp-workspace__github_issue_view
- mcp__mcp-workspace__git
- mcp__mcp-workspace__github_issue_set_status
- mcp__mcp-workspace__get_reference_projects
- mcp__mcp-workspace__read_file
---
# Approve Issue
Approve the current issue to transition it to the next status in the workflow.
## Resolve Issue Number
The user may provide an issue number as the argument (available as `$ARGUMENTS`).
If no issue number is provided:
1. Check if the issue number is known from prior `/issue_analyse` or `/issue_create` in this conversation
2. Read `.vscodeclaude_status.txt` and extract the issue number from the `Issue #NNN` line
3. If still unknown, ask the user
## Cross-Repo Issues
- If `--repo owner/repo` was given, compare it with `origin` (`mcp__mcp-workspace__git`,
command `ls_remote`, args `["--get-url", "origin"]`). Normalise both: accept
`https://github.com/owner/repo` and `git@github.com:owner/repo` forms, drop a trailing
`.git`, compare case-insensitively.
- Match → ignore `--repo` entirely; follow the normal (workspace) path.
- No match (or no `origin`) → cross-repo. Call `mcp__mcp-workspace__get_reference_projects()`
and pick the entry whose `url` normalises (as above) to `owner/repo`. Use its `name` as
`reference_name` on every GitHub tool call. Entries with a null `url` never match.
- No matching entry → stop and report "not a reference project". There is no other route.
## Instructions
1. Fetch the issue to confirm it exists:
Call `mcp__mcp-workspace__github_issue_view` with the issue number (plus `reference_name`
for cross-repo). Cross-repo only: success means the output starts with `# #<number>: `,
or is `# #<number>` followed by a newline (untrusted author; proceed normally). Anything
else → "approval failed: <result>".
Note its status labels (labels prefixed `status-`) — step 3 uses them for the promotable
check and the `from_status` value.
2. Validate that the issue is ready for approval:
- Issue has been analyzed/discussed
- Requirements are clear
- No blocking questions remain
If any check fails, stop and report — do not approve.
3. **Promote.**
| current | next |
|---|---|
| `status-01:created` | `status-02:awaiting-planning` |
| `status-04:plan-review` | `status-05:plan-ready` |
| `status-07:code-review` | `status-08:ready-pr` |
- More than one status label → don't promote; report "nothing to approve (multiple
status labels: X, Y)".
- Current status not in the table (including no status label) → don't promote; report
"nothing to approve".
- Otherwise call
`mcp__mcp-workspace__github_issue_set_status(number=<issue_number>, status=<next>, from_status=<current>)`,
plus `reference_name` for cross-repo issues only.
Do **not** also comment `/approve` — the Action would race this call.
4. **Report** the issue number and the outcome:
| `github_issue_set_status` result | Report |
|---|---|
| starts with `Issue #N status:` (a trailing `Note: issue #N is closed.` is still success) | `<current> → <next>` |
| starts with `Status of issue #N not changed:` (guard refused) | "not approved (current status X)" — stop |
| anything else (incl. `Label … not found`, `Error:`) | "approval failed: <result verbatim>" — stop; no retry, no `/approve` fallback |
If the call prompts, is refused or fails, stop and report — never fall back to Bash.
Not-called outcomes are reported as stated in step 3.
**Note:** This skill has `disable-model-invocation` — it can only be run by the user typing `/issue_approve`. If you need this skill as a follow-up, tell the user: "Please run `/issue_approve` to proceed."