Close Issue — Skill
Name: close-issue
Purpose: Finalize an AL-### issue by verifying acceptance criteria, running quality gates, and marking the PR ready for review.
Use this when the user asks to close/finish/ship an issue or prepare a PR.
Applies when: Preparing a PR for review/merge or closing an issue.
Do not use when: Starting or implementing an issue (use start-issue or ship-issue).
Rules
- •Quality gate must pass:
bun run format:check && bun run lint && bun run typecheck && bun run build && bun run test:unit. - •Formatting: fix with
bun run format, verify withbun run format:check. - •PR workflow: Draft -> Ready for Review -> Approved -> Merged.
- •Prefer GitHub MCP for PR/issue operations.
- •If using Nia (MCP) for repo context, scope queries to
Asymmetric-al/core(seeAGENTS.md#nia-mcp-usage-always-repo-scoped). - •E2E is informational and must not be required for merge.
Workflow
- •Pre-flight: Verify feature branch and clean working tree.
- •Run:
git status,git branch --show-current. - •If on
main/develop, stop and ask to switch.
- •Run:
- •Identify issue keys: Check branch name or recent commits.
- •Run:
git log -20 --oneline.
- •Run:
- •Verify acceptance criteria: Use GitHub MCP to fetch issue body and checklist.
- •Scan TODO/FIXME: Check changed files for TODO/FIXME.
- •Run relevant tests: Use
rules/testing.mdto decide scope (unit/e2e/a11y/perf) and run the applicable commands. - •Run quality gate: Fix failures and re-run until clean.
- •Commit/push: Use
skills/issue-commit/SKILL.mdandgit push. - •Request reviewers (CODEOWNERS): Read
CODEOWNERSand collect owner handles.- •One handle per line; ignore blank lines and comments.
- •Ignore teams (lines starting with
@org/or containing a slash). - •If no valid user handles found, skip and note in PR summary.
- •Use GitHub MCP to request reviewers on the PR.
- •Update PR: Add summary/testing/
fixes AL-###, then mark ready.
Checklists
Pre-flight checklist
- • On a feature branch (not
main/develop) - • Issue keys identified
- • Acceptance criteria confirmed
Final checklist
- • Relevant tests run (per
rules/testing.md) - • Quality gate passes
- • Formatting fixed with
bun run formatand verified withbun run format:check - •
CI / formatpasses on the PR - • No unintended TODO/FIXME
- • Reviewers requested from
CODEOWNERS - • PR updated and ready for review
Minimal examples
Quality gate
bash
bun run format:check && bun run lint && bun run typecheck && bun run build && bun run test:unit
Formatting
bash
bun run format bun run format:check
Relevant tests (example)
bash
bun run test:unit bun run test:e2e
Find TODO/FIXME in changed files
bash
git diff --name-only origin/develop...HEAD | xargs -I{} grep -n "TODO\|FIXME" "{}" || true
Common mistakes / pitfalls
- •Marking PR ready before checks pass
- •Ignoring TODO/FIXME in changed files
- •Closing issues without confirming acceptance criteria
- •Requesting team reviewers when only users are supported