audit-asc-pr
GitHub用于审计 App Store Connect CLI 的 Pull Request,涵盖端到端审查、缺陷验证及在授权下进行修复。包括建立审查契约、隔离检查代码变更、验证行为(含构建与 API 测试)以及执行修复流程。
Trigger Scenarios
Install
npx skills add rorkai/App-Store-Connect-CLI --skill audit-asc-pr -g -y
SKILL.md
Frontmatter
{
"name": "audit-asc-pr",
"description": "Audit App-Store-Connect-CLI pull requests end to end and fix concrete defects when authorized. Use for PR review, value and blast-radius assessment, issue verification, or requested fixes before merge."
}
Audit an ASC CLI pull request
Audit the entire PR under the authority and review rules in AGENTS.md.
Establish the contract
- Read
AGENTS.mdand resolve the repository, PR number, base branch, head branch, and exact head SHA. - Read the PR body, every commit, linked issues, current checks, reviews, and comments.
- Fetch thread-aware review state with GitHub GraphQL. Do not treat a flat comment list as proof that all review threads are resolved.
- State the behavior the PR claims to change and the evidence needed to prove it.
Isolate and inspect
- Use a dedicated worktree and local branch for the PR. Preserve the user's main checkout and unrelated worktrees.
- Inspect the full merge-base diff and all PR commits, not only the latest commit.
- Compare the implementation with the linked issue and current product behavior. Check architecture fit, compatibility, error paths, permissions, destructive operations, output contracts, and missing cleanup.
- Verify claims from bots or reviewers against code, schemas, and tests before editing.
- Identify the blast radius: commands, shared helpers, API resources, output formats, auth modes, and release surfaces affected.
Verify behavior
- Run the relevant current
--helppaths before judging command shape. - Build a binary when CLI behavior, flags, output, or exit codes changed. Exercise realistic invocations against the built binary.
- For API-facing changes, verify the exact endpoint and method in
docs/openapi/latest.json, including create-versus-update attributes and endpoint-specific query parameters. - Run focused tests first, then checks required by repository policy or proportional to the diff. Pending or unrelated advisory CI does not block the audit once required checks pass; report relevant advisory failures.
- Prefer read-only live App Store Connect verification. If live mutations and their cleanup are authorized, use the disposable app
6759231657and record anything that could not be removed. Never mutate another app without explicit approval. - Preserve uncertainty when live state cannot reproduce an edge case; use deterministic fixtures or tests instead of claiming success.
Fix forward
For authorized fixes:
- Reproduce each defect before changing code.
- Add or adjust a failing regression test, confirm the failure, implement the smallest coherent fix, and rerun the focused test.
- Add fixes as logical commits traceable to findings or review threads.
- Push to the PR head when permitted. If the contributor branch cannot accept maintainer pushes, report the exact limitation and prepare a separate fix PR only when authorized.
- When review communication is authorized, reply to and resolve only threads fully addressed by the pushed change.
- Re-fetch the head SHA, checks, reviews, and GraphQL threads after every push.
Do not post a generic top-level audit summary unless the user asks. Put actionable findings in review threads when review communication is authorized.
Apply the merge gate
Do not call the PR ready until all of the following are true:
- The latest head was audited against current
mainunder the branch-update rules inAGENTS.md. - The final committed head passed the full-branch local review loop required by
AGENTS.mdagainst the current authoritative base, with no subsequent diff change. - Relevant focused and GitHub-required checks pass. Non-required checks may still be pending.
- No actionable unresolved review thread remains.
- Required reviews are satisfied.
- GitHub reports the PR mergeable without conflicts. Interpret
BLOCKEDorUNSTABLEthrough the required-check, required-review, and thread gates above; do not require aCLEANmerge state when only advisory jobs remain. - Live or deterministic verification supports the claimed behavior.
For requested follow-up monitoring, use $watch-asc-pr. Approve and merge only under the authority, history, and exact-head rules in AGENTS.md.
Hand off
Report findings, evidence, remaining gates, and the merge recommendation. Include any fixes, pushes, live mutations, and cleanup.
Version History
-
5.1.0
Current 2026-09-09 10:53
移除重复的代理工作流指导文档;明确代理授权和完成规则。
-
4.10.0
2026-08-28 14:16
优化维护者工作流,区分必要检查与建议性状态,明确合并权限管理,提升 PR 审查效率与准确性。
- 3.1.1 2026-07-25 09:42


