用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Morrison-Lab/ai-config --skill gia命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | gia |
| description | Clear PR queue then all issues. |
| user-invocable | true |
| allowed-tools | ["Bash","Agent","Read","Edit","Write"] |
Clear the repo's entire work queue end to end by composing two existing skills in sequence:
ardia (ARD + Iterate-All): drive every
already-open PR/MR to a clean review verdict.gii (Grab Issues Iteratively): work
through every open issue — grab, implement, open an MR/PR, ARDI it to clean,
recurse.PRs-first, then issues: clearing the existing review backlog first means new issue work lands on top of an already-clean queue (and may even unblock or close issues that the open PRs address).
The sweep runs to the end of the queue without pausing for merges. Merging
is human-gated — you don't self-merge — but that gates only the merge, not the
run. A PR reaching clean-but-unmerged is not a stopping point in either phase;
move to the next item, and when that item isn't naturally independent of a
completed-but-unmerged PR, stack it on that PR's branch instead of waiting
for a merge. See stack-dont-pause.
Detect the forge (GitHub gh / GitLab glab) from git remote get-url origin. Note the default branch (main / master).
Confirm which repo first when several are in reach. GIA (like ardia and
gii) clears one repo's queue, but a session may start in a directory holding
several repos (e.g. a web session scoped to multiple repos). If the working dir
isn't itself a single repo, or more than one repo is in scope, ask which repo's
queue to clear before surveying --- don't assume the first one found.
Run the full ardia procedure: list every open PR/MR and
drive each to a clean verdict in series (claim → ARD every finding → push →
post summary → re-request review → repeat until clean). Per-PR rules from
ardi apply (sync main first, re-request even on Rebut/Defer-only rounds).
If there are zero open PRs/MRs, Phase 1 is a no-op — note "no open PRs" in the report's Phase 1 section and go straight to Phase 2.
Carry forward an interim table:
| PR/MR | Rounds | Final status |
|---|---|---|
| #25 | 3 | ✅ Clean |
Why before issues: a PR that's already open may close an issue on merge (
Closes #N). Finishing PRs first avoids grabbing an issue that a pending PR already resolves.
Once every pre-existing PR/MR is clean, run the full gii
loop: grab the highest-priority open issue → check history → implement → open
MR/PR → ARDI to clean → recurse. Stack MRs when a later issue depends on an
earlier unmerged branch. Respect GII's stopping conditions (backlog empty, user
stop, or the default 5-issue checkpoint — ask before continuing past it).
Each PR that GII opens in this phase is itself ARDI'd to clean, so it does not need a second pass through Phase 1.
Print one combined summary covering both phases:
## GIA Session Summary — <timestamp>
### Phase 1 — existing PRs/MRs driven to clean
| PR/MR | Rounds | Status |
|-------|--------|--------|
| [#16](url) | 3 | ✅ Clean |
### Phase 2 — issues grabbed & shipped
| # | Issue | MR/PR | Rounds | Status |
|---|-------|-------|--------|--------|
| 1 | [#12](url) | [#30](url) | 2 | ✅ Clean |
### Merge order
1. [#16](url)
2. [#30](url) — fix: … (stacked on #16 if applicable)
List the merge order across both phases — Phase 1 PRs can be stacked on each other just as Phase 2 issue-PRs can, so a dependency may run PR → PR, PR → issue-PR, or issue-PR → issue-PR. Order so every base merges before whatever stacks on it.
stack-dont-pause).ardi's "Stopping conditions".Both GIA phases push commits that trigger shared review runners, so neither fans
out freely --- the same constraint that makes ardia serial and caps gip. You
may orchestrate the parts that touch no shared forge state (survey all open PRs'
reviews, prepare uncommitted patches per ardia's step 2,
or triage the issue backlog) in parallel, but route the actual implement ---
push --- review work through the serial or capped paths: ardia for the PR
phase, gip for provably-independent issues.
Consult shared/workflow/when-to-orchestrate.md (the shared-runner exception).
Within either phase, a single PR's own round can still delegate lightweight
sidecar work via the Agent tool --- see ardia's "Lightweight sidecar
delegation" note (Phase 1) and gii's "Delegate sidecar work when helpful"
note (Phase 2), including their guidance on picking a stronger, cheaper, or
codex-backed subagent per select-model
and delegate-to-codex.
ardia / adria — Phase 1 in full.gii / gis — Phase 2 in full (which itself nests gi, ardi,
check-history, sync-pr-branch, defer-issue).ardia alone to only clear the PR queue, or gii alone to only
work the issue backlog. gia is the both-in-one sweep.gip — when Phase 2's issues are provably independent (no stacking
dependency, no file overlap), run that phase with gip to work them
concurrently instead of serially.