一键导入
pull-request-lifecycle
Use when work needs a branch, commit, push, PR, draft/ready transition, check babysitting, CI repair, merge handoff, or PR evidence.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when work needs a branch, commit, push, PR, draft/ready transition, check babysitting, CI repair, merge handoff, or PR evidence.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Design OpenAPI component schemas with discriminated variants, constrained primitives, subtype/composition choices, nullability, examples, and invalid-state prevention.
Set up a repository for marketplace-driven AI tooling. Use when onboarding a new repo, refreshing a checked-in marketplace reference, installing core marketplace plugins, or documenting which configured marketplaces should be available by default.
Use when validation, authorization, normalization, or state checks produce facts later code must retain. Replace primitive contracts, flags, sentinel states, string protocols, and call-order conventions with proof-carrying values in any language.
Use when Kotlin work needs type-driven modeling, parse-dont-validate boundaries, semantic package layout, explicit failures, API review, or package cohesion checks.
Pkl engineering for typed configuration contracts, expressions, amendments, evaluation, formatting, tests, projects, dependencies, rendering, and packages. Use when a repository contains `.pkl` modules or `PklProject`, or when configuration behavior should be modeled and enforced with Apple Pkl.
Use when creating or validating referential plugin manifests, marketplace entries, primitive references, or payload-to-reference plugin conversions.
基于 SOC 职业分类
| name | pull-request-lifecycle |
| description | Use when work needs a branch, commit, push, PR, draft/ready transition, check babysitting, CI repair, merge handoff, or PR evidence. |
Use this skill to carry code work across the version-control boundary without
losing evidence. It composes local Git hygiene, GitHub PR operations, and CI
triage; it must remain useful even when a host-specific GitHub connector is not
available. Use npx -y gh-axi as the sole remote GitHub surface.
Related primitives in this repository:
skills/git-change-flowskills/github-ci-operationsgit status --short --branch.main, master, trunk,
or another shared branch.main by reflex when a stacked branch is visible.skills/github-ci-operations/scripts/ci_wait_for_actions, then yield so the
hook resumes the model only when its event predicate or bound is reached. Fix
the owning source instead of rerunning deterministic failures.npx -y gh-axi pr checks <pr-number> and the
typed required-check observation report passing, skipped, or neutral terminal
states for the current head.Orient. Identify the current branch, upstream, base branch, changed files, existing PR number if any, and requested end state: local branch, pushed branch, draft PR, ready PR, or green PR.
Isolate the branch. If the task is publishable and the checkout is on a shared branch, create a focused topic branch. If unrelated dirty files exist, keep staging and diffs path-specific.
Validate locally.
Run the narrowest command that proves the changed behavior. For Kotlin or
Gradle changes, prefer ./gradlew :module:test, ./gradlew :module:check,
or the repository's checked-in wrapper before broad check.
Commit and push.
Stage only files in scope. Run git diff --cached --check, commit with the
repository's convention, then push the branch with upstream tracking when
publication is requested.
Open or update the PR.
Use npx -y gh-axi pr list --head <branch> --state open --limit 2 and
npx -y gh-axi pr view <pr-number> to detect and inspect an existing PR. If
none exists, open one through AXI with purpose, changed surface, validation
evidence, and residual risk. Prefer draft until local evidence is complete.
Watch checks.
Use npx -y gh-axi pr checks <pr-number> for a snapshot. When checks are
pending, run python3 "<path-to-github-ci-operations-skill>/scripts/ci_wait_for_actions" --repo . arm --pr <pr-number> --required --until status-change --timeout auto --json,
then end the turn. For failing Actions runs, use
npx -y gh-axi run view <run-id> --log-failed. Separate product/test
failures, generated drift, dependency setup, permissions, secrets, cache,
and flaky behavior.
Repair or hand off. For deterministic failures, patch the owning source, rerun the local equivalent, push a new commit, and re-read checks. For pending checks, report the pending names and URLs. For external or inaccessible checks, state the exact signal that could not be verified.
When asked to babysit until green:
failure, cancelled, timed_out, and required action_required as
stop conditions that need diagnosis.pending, queued, and in_progress as wait states only while the
run is still moving. Re-arm after processing a pending transition.Report: