agentleFS
tim-osterhustim-osterhus/millrace-skills/skills/github-pr-ci-ops/SKILL.md

github-pr-ci-ops

Skill0 starsChanged 7 months agoApache-2.0View on GitHub

Guardrail for PR-centric GitHub triage, thread-aware review follow-up, GitHub Actions diagnosis, and safe publish flows once repository identity is confirmed.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 15 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use connector-first PR reads when the surface is enough.

    line 43
  2. Distinctive:

    Do not treat flat PR comments as complete review-thread state.

    line 49
  3. Distinctive:

    Do not assume GitHub Actions logs are available through the connector alone.

    line 50
  4. Very specific:

    Do not run local git, pwd, ls, find, or similar filesystem checks merely to prove missing identity.

    line 54
  5. Distinctive:

    Do not resolve, reply to, or mark threads unless the user explicitly asked for that write action.

    line 56
  6. Distinctive:

    Do not stage unrelated work silently or default to git add -A in a mixed worktree.

    line 57
  7. Very specific:

    Do not widen the skill into a generic GitHub or gh command manual.

    line 58
  8. Distinctive:

    Do not keep issue summaries broad.

    line 59
  9. Distinctive:

    Do not infer scope from labels, reactions, or repo search if the repo or branch is still unclear.

    line 60
  10. Distinctive:

    If CI matters, say whether the failure is GitHub Actions, external, or unavailable.

    line 73
  11. Distinctive:

    If publishing, say what is staged, what is left alone, and whether the PR is draft.

    line 74
  12. Distinctive:

    Use the provided repo, PR number, PR URL, or current branch when they are explicitly provided or already confirmed by prior evidence.

    line 80
  13. Distinctive:

    If the prompt says "local checkout" without a concrete repo, branch, PR, or checkout path, treat that wording as scenario framing only.

    line 82
  14. Very specific:

    If the request is about a confirmed current branch, use that confirmed branch and only then use gh when needed.

    line 83
  15. Distinctive:

    Use the smallest source that proves the claim.

    line 89
  16. Distinctive:

    Keep the scope narrow.

    line 94
  17. Distinctive:

    Keep issue summaries narrow and only linked to the current PR or fix flow.

    line 96
  18. Distinctive:

    Do not answer with broad GitHub administration advice when the request is PR-centric.

    line 97
  19. Distinctive:

    Leave thread state, log state, and staged files explicit.

    line 101

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GitHub PR CI Ops

Purpose

Help agents handle PR-centric GitHub work through one of four branches: repo or PR triage, review follow-up, CI debugging, or publish changes. This is a guardrail, not a GitHub command manual.

Use When

  • the task starts from a repository, PR number, PR URL, or current branch that is explicitly named or already confirmed by prior evidence
  • unresolved review threads, failing GitHub Actions checks, or dirty-worktree publish safety matter
  • the job needs connector-first PR context plus gh or git fallback after the repository identity is confirmed

Do Not Use When

  • the request is only generic GitHub browsing or issue triage with no PR, CI, or write-safety decision
  • the prompt only says "local checkout" but does not explicitly name the repository, branch, PR number, or checkout path; treat that wording as scenario framing only, not permission to inspect the current QA harness workspace or nearby run directory for repo facts
  • the prompt is hypothetical or lacks a concrete repo, branch, or PR identifier and would require inspecting the ambient checkout, QA harness files, run artifacts, or prior child outputs to guess it
  • the repository scope cannot be confirmed from the prompt or prior evidence
  • the task is unrelated to PR review, CI logs, or local publish flows

Quick Start

  1. Resolve repository and current branch only from the prompt or confirmed evidence before reading comments or logs. If the repo or PR identity is missing, state the missing identifiers, name the next legitimate evidence source, and stop; do not run local git, pwd, ls, find, or similar filesystem checks to prove the gap.
  2. Classify the task as repo or PR triage, review follow-up, CI debugging, or publish changes.
  3. Use connector-first PR reads when the surface is enough; switch to thread-aware review data or gh logs when state matters.
  4. State what is being inspected, what is assumed, and what is out of scope before you edit, commit, or reply. For one-shot planning prompts, keep the answer on the smallest evidence ladder and do not inspect unrelated worktree dirtiness, QA harness folders, current-workspace directory listings, run artifacts, or parent-run file scans unless the repository is confirmed.
  5. For publish work, inspect git status -sb, confirm which files belong, stage explicit paths, commit tersely, push, and open a draft PR.
  6. End with the next verifier and the evidence captured.

Operating Constraints

  • Do not treat flat PR comments as complete review-thread state.
  • Do not assume GitHub Actions logs are available through the connector alone.
  • A generic mention of "local checkout" does not confirm the target repository, branch, PR number, or checkout path, and in an underspecified one-shot prompt it is scenario framing only.
  • QA harness folders, run artifacts, current-workspace directory listings, and parent-run file scans are not valid PR scenario evidence unless the prompt explicitly names them as the target context.
  • If the prompt is hypothetical or missing concrete repo, branch, or PR identity, do not inspect the ambient checkout, current workspace, QA harness files, run artifacts, or prior child outputs to infer it. Say the context is underspecified, name the assumption, and point to the next evidence source.
  • Do not run local git, pwd, ls, find, or similar filesystem checks merely to prove missing identity.
  • On one-shot planning responses, stay at the smallest evidence ladder needed for the prompt. Do not run local tests, inspect unrelated worktree dirtiness, or cite workflow files unless the prompt or confirmed context specifically identifies that repository.
  • Do not resolve, reply to, or mark threads unless the user explicitly asked for that write action.
  • Do not stage unrelated work silently or default to git add -A in a mixed worktree.
  • Do not widen the skill into a generic GitHub or gh command manual.
  • Do not keep issue summaries broad; only include them when they are linked to the current PR or fix flow.
  • Do not infer scope from labels, reactions, or repo search if the repo or branch is still unclear.

Inputs This Skill Expects

  • a repository identifier, PR number or URL, or a current local checkout already confirmed by prior evidence
  • git status -sb and the relevant diff when publish safety matters
  • PR metadata and patch context from the GitHub connector when available
  • thread-aware review data when unresolved thread state matters
  • gh auth status, gh pr checks, and gh run view output when CI matters

Output Contract

  • Start with the repository, branch, and task classification only when they are explicitly named in the prompt or already confirmed by prior evidence. Otherwise start with the missing identifiers, the assumption, and the next legitimate evidence source; do not fill gaps from the ambient checkout, the current workspace, QA artifacts, run artifacts, or prior child outputs.
  • Name the evidence source used next: connector, thread-aware review data, or gh logs.
  • Separate actionable review threads from informational comments.
  • If CI matters, say whether the failure is GitHub Actions, external, or unavailable.
  • If publishing, say what is staged, what is left alone, and whether the PR is draft.
  • State assumptions and out-of-scope items before any edit or publish action.
  • End with the next verifier and the evidence captured.

Procedure

  1. Resolve the operating context first.
    • Use the provided repo, PR number, PR URL, or current branch when they are explicitly provided or already confirmed by prior evidence.
    • If the prompt is hypothetical or still ambiguous, do not inspect the open checkout, current workspace state, QA harness artifacts, run artifacts, current-workspace directory listings, or prior child outputs to guess the target; stop at the missing identifier, state the assumption, and name the next evidence source.
    • If the prompt says "local checkout" without a concrete repo, branch, PR, or checkout path, treat that wording as scenario framing only.
    • If the request is about a confirmed current branch, use that confirmed branch and only then use gh when needed.
  2. Classify the request before acting.
    • repo or PR triage: summarize only the current PR, repository, and nearby context that matters.
    • review follow-up: fetch thread-aware review data, cluster actionable threads, and preserve resolution state.
    • CI debugging: confirm gh auth status, inspect gh pr checks and gh run view, and treat non-Actions checks as report-only.
    • publish changes: confirm scope before staging, use explicit file paths in a mixed worktree, commit, push, and open a draft PR.
  3. Use the smallest source that proves the claim.
    • Connector for PR metadata and patch context.
    • Thread-aware review reads when unresolved thread state matters.
    • gh for GitHub Actions logs or fallback data the connector cannot show.
    • Local git only after repository identity is confirmed and publish safety matters.
  4. Keep the scope narrow.
    • State what is being inspected, what is assumed, and what is out of scope.
    • Keep issue summaries narrow and only linked to the current PR or fix flow.
    • Do not answer with broad GitHub administration advice when the request is PR-centric.
  5. Hand off cleanly.
    • Name the next verifier.
    • Name the evidence captured.
    • Leave thread state, log state, and staged files explicit.

Pitfalls And Gotchas

  • Rejected trope: treating top-level comments as complete review state.
  • Better alternative: use thread-aware review data and preserve resolved or outdated state.
  • Rejected trope: assuming the connector exposes GitHub Actions logs end to end.
  • Better alternative: use gh for checks and log inspection, and say when logs are external or unavailable.
  • Rejected trope: staging everything in a dirty worktree because it is faster.
  • Better alternative: confirm scope and stage explicit paths.
  • Rejected trope: replying to or resolving threads by default.
  • Better alternative: leave thread state unchanged unless the user explicitly asked for that write action.
  • Rejected trope: turning the skill into a general GitHub or gh command manual.
  • Better alternative: keep the workflow PR-centric and stop once the next action is clear.

Progressive Disclosure

Start with the smallest read needed to confirm the task context. If repo identity is missing, do not mine the checkout, current workspace, QA harness, run artifacts, current-workspace directory listings, or prior child outputs to guess it; state the assumption and the next evidence source instead. Expand only enough to get the next action safe: thread state for review, log state for CI, or diff scope for publish. Keep connector and CLI use aligned with confirmed evidence, not the ambient workspace, and do not widen into unrelated GitHub administration or one-shot local test runs.

Verification Pattern

  • Confirm the repository identity came from the prompt or prior evidence, not from ambient checkout inference.
  • Confirm the repo and current branch were resolved before using comment or log data.
  • Confirm unresolved review threads came from thread-aware evidence, not flat comments.
  • Confirm CI failures were backed by gh checks or logs, or explicitly marked external or unavailable.
  • Confirm publish actions staged only the intended files in the mixed worktree.
  • Confirm the closing handoff names the next verifier and the evidence captured.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.