Agent skill

Fix Ready PRs

by fastrepl in fastrepl/anarlog

Inspect every open non-draft PR for CI failures and unresolved Cursor Bugbot findings, then fix them on the existing PR branches.

MITAuto-check passedTesting & QA

Install Fix Ready PRs

skills CLI
$ npx skills add fastrepl/anarlog --skill fix-ready-prs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install fastrepl/anarlog fix-ready-prs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/fastrepl/anarlog.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/fix-ready-prs .claude/skills/fix-ready-prs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fix-ready-prs
GitHub stars
9.5k
Token cost
~1.4k tokens
SKILL.md length
598 words
Files
1
Skills in repo
32
Repo updated
First seen
Licence
MIT

At a glance

Inspect every open non-draft PR for CI failures and unresolved Cursor Bugbot findings, then fix them on the existing PR branches.

  • Works in 5 steps: Inventory → Collect failures → Fix on the PR branch → …
  • Asked to check active PRs
  • SKILL.md covers 1. Inventory, 2. Collect failures, 3. Fix on the PR branch and 4. Recheck, plus 1 more section
  • Calls gh, git and jq

What it does

Fix Ready PRs is an agent skill from fastrepl/anarlog. Inspect every open non-draft PR for CI failures and unresolved Cursor Bugbot findings, then fix them on the existing PR branches. Use when asked to check active PRs, triage ready PRs, fix CI, or address Bugbot comments. Use only outside gitbutler/workspace; on that branch use the repository-local fix-prs skill.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Failing and flaky tests. The repository describes itself as: Open source Granola AI Alternative. The licence is MIT.

When your agent uses it

  • Asked to check active PRs
  • Triage ready PRs
  • Address Bugbot comments

Example prompts

  • “/fix-ready-prs”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Inventory
  2. Collect failures
  3. Fix on the PR branch
  4. Recheck
  5. Report

What it can do on your machine

Read from SKILL.md and the folder at commit 385e117. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • git
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fix Ready PRs loads about 1.4k tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 598 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~82
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from fastrepl/anarlog at commit 385e117, republished under its MIT licence (© fastrepl). 598 words, ~1,381 tokens.

Download SKILL.mdSave it as .claude/skills/fix-ready-prs/SKILL.md (or your agent's skills folder).
name
fix-ready-prs
description
Inspect every open non-draft PR for CI failures and unresolved Cursor Bugbot findings, then fix them on the existing PR branches. Use when asked to check active PRs, triage ready PRs, fix CI, or address Bugbot comments. Use only outside gitbutler/workspace; on that branch use the repository-local fix-prs skill.
metadata.internal
true

Fix Ready PRs

Check the active checkout's branch with git symbolic-ref --quiet --short HEAD before running this workflow. On gitbutler/workspace, skip this skill and use fix-prs, preserving any narrower user scope. Its GitButler branch handling and review-resolution workflow take precedence; do not check out PR branches or use the Git-write commands below in that workspace.

Work through every open, non-draft pull request. Fix CI failures and unresolved Bugbot findings on the existing PR branch. Do not open a new PR for an existing one.

Drafts are out of scope unless the user names them.

1. Inventory

bash
gh pr list --state open --limit 200 \
  --json number,title,isDraft,headRefName,headRepositoryOwner,isCrossRepository,url,mergeStateStatus

Keep only isDraft == false. Record number, branch, URL, and whether the head is a fork (isCrossRepository).

2. Collect failures

For each ready PR, gather current-head CI and unresolved Bugbot threads. Do not treat an in-progress check as green.

CI
bash
gh pr checks <n>
gh pr view <n> --json statusCheckRollup,headRefOid

Treat as a failure when a required or repo workflow check is FAILURE, TIMED_OUT, ACTION_REQUIRED, or CANCELLED on the current head and has not been superseded by a newer run.

Ignore:

  • SKIPPED / NEUTRAL
  • Netlify header/pages/redirect checks and canceled deploy previews
  • Mintlify Deployment skips
  • macOS/Windows/iOS jobs that this repo skips on pull requests

If a failing job has logs, pull them:

bash
gh run view <run-id> --log-failed

If checks are still IN_PROGRESS / pending, wait until they finish or fail before declaring the PR clean. Re-poll rather than guessing.

Bugbot

Use review threads, not only the Bugbot check conclusion. A green Bugbot check can still leave unresolved comments, and an older finding may already be fixed.

GitHub returns reviewThreads oldest-first with no unresolved-only filter. Page until hasNextPage is false. Do not stop at the first 50 threads.

bash
after=""
while :; do
  if [ -n "$after" ]; then
    page=$(gh api graphql -f query="$THREADS_QUERY" -F n=<n> -F after="$after")
  else
    page=$(gh api graphql -f query="$THREADS_QUERY" -F n=<n>)
  fi
  echo "$page" | jq '.data.repository.pullRequest.reviewThreads.nodes[]'
  has_next=$(echo "$page" | jq -r '.data.repository.pullRequest.reviewThreads.pageInfo.hasNextPage')
  after=$(echo "$page" | jq -r '.data.repository.pullRequest.reviewThreads.pageInfo.endCursor')
  [ "$has_next" = true ] || break
done

$THREADS_QUERY is:

graphql
query($n: Int!, $after: String) {
  repository(owner: "fastrepl", name: "anarlog") {
    pullRequest(number: $n) {
      reviewThreads(first: 50, after: $after) {
        pageInfo { hasNextPage endCursor }
        nodes {
          isResolved
          isOutdated
          comments(first: 5) {
            nodes { author { login } path line body }
          }
        }
      }
    }
  }
}

Fix a thread when:

  • the author is cursor / cursor[bot]
  • isResolved is false
  • the comment is a Bugbot finding (<!-- BUGBOT_BUG_ID: or a severity heading)
  • it still applies to the current head (isOutdated is false, or outdated but the same bug is still in the code)

Skip resolved threads and outdated findings whose code already changed.

Also paginate review comments in case Bugbot posted one that is not yet a thread:

bash
gh api --paginate repos/fastrepl/anarlog/pulls/<n>/comments
gh pr view <n> --comments
Show full SKILL.md (263 more words)Show less

3. Fix on the PR branch

For each PR that has work, check out that PR's head, including fork heads:

bash
gh pr checkout <n>

Do not git fetch origin <headRefName> or git push origin <headRefName>. Fork PRs keep the branch on the contributor remote; origin/<headRefName> is missing or is a different branch. Pushing to origin can create a stray branch that is not the PR head.

Then:

  1. Reproduce from the failing log or Bugbot location
  2. Make the smallest change that fixes the failure or finding
  3. Run the locally available checks from the CI workflows that the changed paths trigger (AGENTS.md pre-commit verification)
  4. Commit on that branch (do not amend someone else's commit)
  5. git push (uses the tracking remote from gh pr checkout)

If gh pr checkout or git push cannot update a fork, stop and report that. Do not open a replacement PR on origin.

Do not bundle unrelated PR fixes onto one branch. Do not retarget or close PRs.

If a finding is a false positive, leave it. Do not resolve GitHub review threads unless the user asked; the code change is the fix.

4. Recheck

After pushing, re-run the inventory for that PR. Confirm:

  • new CI is running or green
  • the previous failure is gone or replaced by a new run
  • the Bugbot thread is outdated or will be re-reviewed on the new commit

If a new failure or finding appears, fix it too.

5. Report

Summarize every ready PR:

  • clean (CI green, no unresolved Bugbot)
  • waiting (checks still running)
  • fixed (what changed, PR number)
  • skipped draft

Do not merge.

© fastrepl, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/fix-ready-prs of fastrepl/anarlog.

Open the folder on GitHubat commit 385e117

Compare with similar skills

Fix Ready PRs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fix Ready PRs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fix Ready PRs this skillfastrepl/anarlog9.5k—~1.4kAutomated safety check: PassMIT
Swig Testswig/swig6.3k—~2.3kAutomated safety check: PassCustom licence
Triage CI FailureDataDog/datadog-agent3.8k—~2.3kAutomated safety check: PassApache-2.0
Dynamo Jira TicketDynamoDS/Dynamo2k—~1.1kAutomated safety check: PassApache-2.0
Trx Analysismicrosoft/vstest969—~1.8kAutomated safety check: PassMIT
Wioworkersio/skills190—~5.8kAutomated safety check: PassMIT

Similar skills

  • Swig Test

    swig/swig

    Run SWIG test suite for specific languages. An agent skill from swig/swig.

    6.3k GitHub stars~2.3k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Triage CI Failure

    DataDog/datadog-agent

    Official

    Classify a failed CI as either caused by an active incident, flakiness, or a true code regression.

    3.8k GitHub stars~2.3k tokensUpdated today
    Testing & QAAuto-check passed
  • Dynamo Jira Ticket

    DynamoDS/Dynamo

    Create structured Jira tickets for Dynamo from bug reports, failing tests, or feature requests.

    2k GitHub stars~1.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Trx Analysis

    microsoft/vstest

    Official

    Parse and analyze Visual Studio TRX test result files. An agent skill from microsoft/vstest.

    969 GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Wio

    workersio/skills

    Testing workflow skill for finding high-value test candidates, writing focused tests, generating realistic workloads, reviewing test value, and diagnosing test-suite health.

    190 GitHub stars~5.8k tokensUpdated 2 mo ago
    Testing & QAAuto-check passed
  • Anchor Repro

    lynxlangya/techne

    Reproduce a behavioral bug before fixing it, record the failing probe, and verify the fix with the same probe.

    105 GitHub starsUsed in 1 repo~1.2k tokens
    Testing & QAAuto-check passed

More from fastrepl/anarlog

All 32 skills in this repo
  • But

    fastrepl/anarlog

    Use only in the Anarlog repository when the active checkout branch is exactly gitbutler/workspace.

    9.5k GitHub stars~5.8k tokensUpdated today
    Auto-check passed
  • Create PRs

    fastrepl/anarlog

    Use only in the Anarlog repository when the active checkout branch is exactly gitbutler/workspace.

    9.5k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • No Use Effect

    fastrepl/anarlog

    Avoid direct React useEffect usage when writing or reviewing React components and hooks.

    9.5k GitHub stars~825 tokensUpdated today
    Auto-check passed
  • QA Critical UX

    fastrepl/anarlog

    QA Anarlog's critical Pro user journey on a signed staging candidate — onboarding, responsive launch, microphone and system-audio capture, automated summaries, and cloud sync.

    9.5k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Reactive Sqlite UI

    fastrepl/anarlog

    Build SQLite-backed reactive UI in apps/desktop using stable patterns for reads, selection, forms, writes, and loading states.

    9.5k GitHub stars~699 tokensUpdated today
    Auto-check passed
  • Sqlite Schema Design

    fastrepl/anarlog

    Design or review schemas for crates/cloudsync using SQLite Sync constraints, not generic SQLite advice.

    9.5k GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Categories

Questions about Fix Ready PRs

What does Fix Ready PRs do?

Inspect every open non-draft PR for CI failures and unresolved Cursor Bugbot findings, then fix them on the existing PR branches. Fix Ready PRs is an agent skill from fastrepl/anarlog. Inspect every open non-draft PR for CI failures and unresolved Cursor Bugbot findings, then fix them on the existing PR branches.

When should I use Fix Ready PRs?

Fix Ready PRs fits situations like: asked to check active PRs; triage ready PRs; address Bugbot comments.

How do I install Fix Ready PRs in Claude Code?

Run `npx skills add fastrepl/anarlog --skill fix-ready-prs -a claude-code`. Or copy the skill folder (.agents/skills/fix-ready-prs in fastrepl/anarlog) into .claude/skills/fix-ready-prs in your project. Claude Code loads it when a task matches its description.

How do I install Fix Ready PRs in Codex?

Run `npx skills add fastrepl/anarlog --skill fix-ready-prs -a codex`. Or copy the skill folder (.agents/skills/fix-ready-prs in fastrepl/anarlog) into .agents/skills/fix-ready-prs in your project. Codex loads it when a task matches its description.

Can I use Fix Ready PRs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add fastrepl/anarlog --skill fix-ready-prs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fix-ready-prs, .gemini/skills/fix-ready-prs, .github/skills/fix-ready-prs and .opencode/skills/fix-ready-prs in your project.

What does Fix Ready PRs need to run?

Going by SKILL.md and its folder, Fix Ready PRs needs the command-line tools its instructions call (gh, git and jq).

Does Fix Ready PRs access the network?

SKILL.md contains no URLs. Its commands use gh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Fix Ready PRs safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Fix Ready PRs use?

Fix Ready PRs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Fix Ready PRs use?

About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Fix Ready PRs?

Skills that share tags, products or a category with Fix Ready PRs: Swig Test (swig/swig, 6.3k stars), Triage CI Failure (DataDog/datadog-agent, 3.8k stars), Dynamo Jira Ticket (DynamoDS/Dynamo, 2k stars) and Trx Analysis (microsoft/vstest, 969 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fix Ready PRs?

fastrepl (a GitHub organization) maintains it in fastrepl/anarlog, which has 9,452 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 8, 2026.

Source: fastrepl/anarlog on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.