issue-audit
Audit and triage general issue backlogs with read-only defaults, interactive cleanup decisions, and guidance steering; use this for "audit open issues" instead of aiwg-issue
- License 许可
- MIT
- 所属仓库
- jmagly/aiwg
- 最近更新
- 2026-11-11
- Stars
- ★ 229
- Forks
- 36
01 前言 Front Matter
- name
- issue-audit
- errors
- [ { "tracker-unavailable": "cannot access issue tracker; check credentials or --provider flag" }, { "filter-invalid": "filter expression cannot be parsed by the configured issue provider" } ]
- script
- { "cwd": "project-root", "runtime": "node", "entrypoint": "scripts/audit.mjs" }
- ensures
- [ { "audit-report": "structured issue backlog audit grouped by actionable category" }, { "read-only-default": "no tracker mutations unless an explicit apply/update mode is requested" }, "if --interactive: one triage decision at a time for ambiguous cleanup choices" ]
- requires
- [ { "tracker": "issue tracker accessible (gitea | github | local) — auto-detected from project config unless --provider is supplied" } ]
- namespace
- aiwg
- platforms
- [ "all" ]
- invariants
- [ "never close, retitle, relabel, or comment on issues by default", "separate audit recommendations from implementation work; use address-issues for execution", "preserve operator guidance verbatim in the audit context and final report" ]
- commandHint
- { "model": "haiku", "category": "project-management", "modelRole": "efficiency", "modelTier": "economy", "allowedTools": "Read, Bash, Grep, Glob, mcp__gitea__*", "argumentHint": "[--filter \"status:open label:bug\"] [--provider gitea|github|local] [--guidance \"text\"] [--checkpoint PATH] [--page-size 25] [--max-items 250] [--format json|markdown]" }
- description
- Audit and triage general issue backlogs with read-only defaults, interactive cleanup decisions, and guidance steering; use this for "audit open issues" instead of aiwg-issue
02 资源文件 1
- 脚本scripts/audit.mjs456 B
03 SKILL.md 正文
<!-- AIWG-SKILL-CALLOUT -->
Skill access pattern (post-kernel-pivot, 2026.5+)
Skill names referenced in this document are AIWG skills, not slash commands. Most are not kernel-listed and cannot be invoked as
/skill-nameby the platform. Reach them via:aiwg discover "<capability>" aiwg show skill <name> --bodyOnly kernel-listed skills (
aiwg-doctor,aiwg-refresh,aiwg-status,aiwg-help,use,steward) are directly invokable as slash commands. See skill-discovery rule.
Issue Audit
Semantic Label Resolution
Resolve .aiwg/aiwg.config remotes.issue_tracker and issues.labels before
searching or grouping work. Audit filters, batches, lifecycle states,
priorities, ownership, blocked reasons, approval states, and automation
eligibility by stable role/category, then translate through the target
provider's configured label name. Report taxonomy diagnostics without silently
creating labels. When issues.labels is absent, retain legacy behavior with a
clear fallback warning.
You are the issue backlog auditor. Your job is to inspect issue state, identify cleanup and prioritization opportunities, and present actionable triage recommendations without starting implementation work.
Use address-issues when the operator wants issues fixed. Use issue-audit when the operator wants to know what should be closed, linked, refreshed, deferred, prioritized, or investigated next.
Natural Language Triggers
Users may say:
- "issue-audit"
- "audit-issues"
- "audit open issues"
- "triage the issue backlog"
- "review stale issues"
- "audit bugs"
- "find duplicate issues"
- "what issues should we close"
- "which issues should we address next"
- "review open epics"
- "audit deferred issues"
Parameters
Bounded execution and resume
aiwg run skill issue-audit -- --filter "status:open" --guidance "rank release blockers" --page-size 25 --max-items 250 --format json
# Repeat the same command and checkpoint to continue after a stop.
aiwg run skill issue-audit -- --checkpoint /path/to/audit.json --max-items 250 --format markdown
The executable is read-only. It resolves the configured tracker and semantic labels,
pages metadata first (1–100 issues; default 25), and hydrates bodies/comments only
for selected epic, deferred, duplicate, superseded, or fixed candidates. --select ID,ID overrides hydration selection. Findings are triage candidates requiring
review; the executable makes no claim to prove duplicates or completed acceptance.
--max-items (250), --max-pages (100) and --max-context-bytes (262144) bound each invocation;
--max-bytes (65536) bounds a metadata page plus selected hydration. REST list
responses may include bodies: discard them immediately without passing them to
audit decisions or checkpoints. Oversized responses stop coverage explicitly.
The default checkpoint is working/issue-audit/checkpoint.json beneath the
configured artifact root; --checkpoint PATH selects another file. Atomic item
checkpoints retain cursor, pending metadata, completed IDs and recommendations,
never issue bodies/comments. Resume preserves provider, actor, filter, guidance,
page size and selection; budgets may change. Completed items are not rehydrated
or duplicated. Local index changes and changed forge page boundaries/totals stop
with tracker-changed; start a separate checkpoint to audit a changed backlog.
Forge offset APIs cannot guarantee a snapshot of concurrently edited unseen pages.
JSON reports coverage.totalSeen, totalHydrated, totalCompleted, incomplete
and reason, plus continuation and batch counts/bytes. Markdown visibly marks
INCOMPLETE. Budget stops, interruptions and provider errors exit 2; completion
exits 0. SIGINT/SIGTERM preserve the last completed item. Abrupt termination may
repeat unfinished reads, but never a committed finding. Inspect/recover an orphan
lock whose owner cannot be proven dead before retrying.
Executable filters support status:open|closed|all and repeated label:NAME or
semantic label roles. Unsupported filters fail explicitly. --apply and
--interactive require the instructional workflow below and are rejected by the
executable before tracker access; its default and --dry-run never mutate issues.
--all-open
Audit all open issues. This is the default when no issue numbers or filter are supplied.
--filter
Filter expression aligned with issue-list / address-issues conventions:
--filter "status:open label:bug"
--filter "status:open label:deferred"
--filter "status:open label:epic"
--provider
Override issue tracker provider: gitea, github, or local. Defaults to project configuration.
--interactive
Ask one focused question at a time for ambiguous triage calls. Use this for cleanup sessions where the operator wants to decide issue fate incrementally.
Interactive prompts should be concrete:
- "Close #N as not planned, keep open with check date, or leave unchanged?"
- "Make #A parent of #B, cross-link only, or leave separate?"
- "Refresh this epic body now, file follow-up, or skip?"
- "Prioritize this blocker for
address-issues, defer, or keep in backlog?"
Do not batch many decisions into one prompt. After each answer, update the audit plan and continue.
--guidance
Upfront direction that steers the audit lens without changing the core checklist.
Examples:
--guidance "focus on stale deferred work"
--guidance "find epics whose child status is out of date"
--guidance "prioritize release blockers over feature backlog"
--guidance "only look for duplicates and already-fixed issues"
Include the guidance text in the final report.
--dry-run
Never mutate issue tracker state. This is the default behavior, but the flag is accepted for parity with other issue skills and for explicit operator confidence.
--apply
Apply agreed cleanup actions such as comments, issue body refreshes, label changes, or closures. Only use when the operator explicitly requests it. In interactive mode, ask before each mutation unless the operator has given a narrow batch instruction.
Audit Checklist
Run the relevant checks for the selected issue set:
- Open blocker audit — high-priority bugs, release blockers, or parent epic blockers that should be addressed next.
- Stale issue audit — old issues with no update, no milestone, or obsolete context.
- Deferred issue audit — deferred issues missing check dates, explicit reopen triggers, or "not planned" decisions.
- Epic hygiene audit — parent epics whose child table, acceptance state, or blocker section no longer matches child issues.
- Duplicate/overlap audit — issues that are duplicates, parent/child candidates, or sibling tracks needing explicit cross-links.
- Already-fixed audit — issues whose acceptance appears satisfied by current code, docs, or comments.
- Quality audit — issues missing reproduction, environment, acceptance criteria, scope boundaries, or labels.
- Next-action audit — issues worth sending to
address-issuesnext, ordered by impact and dependency unlock.
Use repository search only when issue state alone is insufficient to decide whether something is already implemented or superseded.
Output Format
Default report:
# Issue Audit
Scope: <provider/filter/all-open>
Guidance: <guidance or none>
Mode: read-only
## Counts
- Open issues audited: N
- High-priority blockers: N
- Stale/deferred cleanup candidates: N
- Duplicate/overlap candidates: N
- Epics needing refresh: N
## Findings
### High Priority
- #N — <reason> — Recommended action: <action>
### Cleanup Candidates
- #N — <reason> — Recommended action: <action>
### Epic Hygiene
- #N — <reason> — Recommended action: <action>
### Duplicate / Relationship Candidates
- #A / #B — <relationship> — Recommended action: <action>
## Recommended Next Moves
1. <highest-value action>
2. <next action>
3. <next action>
When --interactive is used, report each completed decision and remaining undecided items at the end.
Mutation Rules
Default is read-only. If --apply is explicitly requested:
- Comments should state the triage decision and date.
- Closures should say why the issue is not planned, duplicate, superseded, or fixed.
- Epic body refreshes should preserve useful original rationale while updating child status and current blockers.
- Relationship comments should identify parent/child/sibling status without collapsing distinct scopes.
- Never implement code under
issue-audit; route implementation candidates toaddress-issues.
Examples
# Audit all open issues
issue-audit
# Audit stale deferred items
issue-audit --filter "status:open label:deferred" --guidance "close mistake issues or add check dates"
# Walk through cleanup decisions one by one
issue-audit --all-open --interactive --guidance "focus on stale issues and duplicates"
# Read-only priority audit for implementation planning
issue-audit --filter "status:open" --guidance "rank blockers for address-issues"
# Apply already-decided cleanup actions interactively
issue-audit --interactive --apply --guidance "ask before every issue closure"
Relationship To Other Issue Skills
| Skill | Use when |
|---|---|
issue-list |
You only need a filtered issue listing |
issue-audit |
You need triage, cleanup recommendations, or prioritization |
issue-comment |
You already know the exact comment to post |
issue-close |
You already know the issue should close |
address-issues |
You want implementation work performed against one or more issues |
issue-sync / issue-auto-sync |
You need commits and issue state reconciled |
Success Criteria
- Audit scope is explicit.
- Findings are grouped by action type.
- Recommendations are concrete enough to execute.
- Mutations occur only with explicit permission.
- The final report tells the operator which issue(s) to send to
address-issuesnext.
04 同仓库更多 Skills
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.
fixture-skill
Exercise rule delivery.
pi-local
Pi-local duplicate-precedence fixture.