aot-pr-loop
Address Octopus Review feedback on a GitHub pull request in a tight loop until the PR earns a 4+/5 quality score.
Skill by Art-of-Technology
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/art-of-technology-aot-pr-loop
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/aot-pr-loop
What's inside
- Skill name
aot-pr-loop- Description
- Address Octopus Review feedback on a GitHub pull request in a tight loop until the PR earns a 4+/5 quality score. Use this skill whenever the user asks to "run the pr loop", "run aot-pr-loop", "check my PR", "address Octopus feedback", "fix the review findings", "respond to review comments", "loop until 4/5", "get the PR to passing", or anytime there is an open PR that needs Octopus Review findings worked through iteratively. Also use when the user references review threads, finding severities (🔴🟠🟡🔵), or wants to react to and resolve Octopus comments. The skill drives gh CLI interactions, fix application, reactions, thread replies, and re-review notification.
- License
- MIT
- Instructions
- 182 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# aot-pr-loop
Drive a GitHub PR through Octopus Review feedback to a 4+/5 score. Read the open PR for the current branch, parse every Octopus finding, apply the valid fixes, push, react to and reply to threads, then ping Octopus for re-review. Repeat until the quality gate passes.
## Quality gate
- Target: 4+/5 overall score from Octopus Review.
- Only proceed past this loop once the score lands at 4 or above.
- If stuck at 3/5 and the remaining findings are all false positives, surface the situation to the user and ask for a call.
- Never silently dismiss 🔴 findings. They get fixed, or the user explicitly approves dismissal.
## Rules of engagement
- Ignore findings that are genuinely false positives. Read the actual code first before deciding.
- React 👎 on each false-positive comment with a short reason.
- React 👍 on each valid, useful suggestion you fix.
- Reply in the relevant thread describing the fix after you apply it.
- Resolve the thread if the platform supports it. Otherwise leave a reply that clearly states the issue is addressed.
- After every push, post a single PR comment tagging @octopus so it re-runs review.
- Never force-push. Always plain `git push`.
- Never squash, rebase, or amend existing commits while inside the loop.
## Step 1: Find the PR
Get the current branch and look up its open PR.
```bash
git branch --show-current
gh pr view --json number,title,state,url,headRefName,reviewDecision
```
If `gh pr view` returns nothing, fall back to listing your open PRs and pick the right one:
```bash
gh pr list --author "@me" --state open --json number,title,headRefName,url
```
If no open PR exists, tell the user and stop.
If `state` is `MERGED` or `CLOSED`, stop immediately. This loop sometimes gets triggered by a stale wakeup scheduled by an earlier sub-agent before the parent merged. There is nothing to do on a closed PR. Do not fetch reviews, do not comment, do not reschedule.
## Step 2: Fetch all review feedback
Pull three things: reviews, inline comments, general PR comments.
```bash
gh api repos/{owner}/{repo}/pulls/{number}/reviews \
--jq '.[] | {id, state, body, user: .user.login, submitted_at: .submittedAt}'
gh api repos/{owner}/{repo}/pulls/{number}/comments \
--jq '.[] | {id, path, line, body, user: .user.login, created_at}'
gh api repos/{owner}/{repo}/issues/{number}/comments \
--jq '.[] | {id, body, user: .user.login, created_at}'
```
Check the latest Octopus review body. If it says "0 findings", everything is resolved. Read the score. If it is 4+/5, the PR is ready to merge and you can jump to Step 9.
## Step 3: Parse Octopus findings
From the most recent Octopus review body, extract:
- Overall score (e.g. "2/5").
- Category scores: Security, Code Quality, Performance, Error Handling, Consistency.
- The findings table: severity icon (🔴🟠🟡🔵), file path, title, description.
- Any inline review comments tied to specific lines.
## Step 4: Assess each finding
Severity drives default action, but never apply blindly. Read the file first, because Octopus sometimes references stale context.
- 🔴 Critical: fix unless the user explicitly waives it.
- 🟠 Warning: fix unless it is a clear false positive.
- 🟡 Suggestion: fix when reasonable.
- 🔵 Info: acknowledge. Fix if trivial.
- False positive: prepare a one-line reason for the 👎 reaction.
The reason this matters: applying a wrong "fix" because the reviewer misread the code creates a bigger problem than the original finding. Confirm the finding maps to the real code state before changing anything.
## Step 5: Present the plan and confirm
Before touching any files, show the user:
- PR title, number, and URL.
- Current Octopus score and category breakdown.
- A table of findings with proposed action per row: fix / false positive / skip.
Ask the user to confirm before proceeding. The user may downgrade or upgrade individual actions.
## Step 6: Apply the fixes
```bash
git checkout <branch>
git pull origin <branch>
```
Read each file referenced by the findings. Apply changes:
- Code suggestions with an exact patch: apply as suggested.
- Style or refactor notes: minimal change addressing the feedback.
- Bugs: fix as described.
- Questions: if the answer implies a change, make it. Otherwise note it for the reply.
Stage and commit with a message that lists what changed:
```bash
git add <changed-files>
git commit -m "fix: address Octopus review feedback on #<PR-number>
- <change 1>
- <change 2>
- <change 3>
"
git push origin <branch>
```
## Step 7: Respond to the review comments
For each finding addressed:From Art-of-Technology/skills, MIT.
More from Art-of-Technology/skills
- 0.529score
aot-skill-audit
Art-of-Technology
Security audit of a third-party agent skill or plugin before anyone at Art of Technology installs it.
SkillBFreshness: BClaude Code +9 - 0.529score
blog-content-agent
Art-of-Technology
Research trends, analyze a product repository to learn what it does, propose blog topics, write a publication-ready post, optionally generate a banner image…
SkillBFreshness: BClaude Code +9 - 0.529score
aot-release-lifecycle
Art-of-Technology
Enforce the trunk-based release lifecycle across environments.
SkillBFreshness: BClaude Code +9 - 0.529score
aot-nextjs-server-first
Art-of-Technology
Audit and refactor a Next.js app so data fetching happens on the server, backend credentials never reach the browser, and client-side fetch waterfalls stop…
SkillBFreshness: BClaude Code +9 - 0.529score
aot-security-audit
Art-of-Technology
Run a security audit on a TypeScript/Node.js or C#/ASP.NET Core codebase and produce a prioritized findings report with concrete fixes.
SkillBFreshness: BClaude Code +9 - 0.529score
aot-ci-cd-optimization
Art-of-Technology
Measure and improve GitHub Actions CI/CD speed through independent parallel checks, cancellation of superseded runs, efficient secret scanning, caching and…
SkillBFreshness: BClaude Code +9 - 0.529score
aot-ci-workflows
Art-of-Technology
Cut wasted GitHub Actions runs in a repo and migrate it onto Art of Technology's shared reusable workflows (node-ci, dotnet-ci, docker-build, release), in two…
SkillBFreshness: BClaude Code +9 - 0.529score
aot-design-review
Art-of-Technology
Review a web UI against visual design, interaction, and accessibility principles, then produce a prioritized findings report with concrete code fixes.
SkillBFreshness: BClaude Code +9 - 0.524score
aot-brief
Art-of-Technology
Shape agent replies for ADHD-friendly scanning and fewer output tokens.
SkillBFreshness: BClaude Code +9 - 0.524score
aot-ship-loop
Art-of-Technology
Ship a code change through the complete Art of Technology quality loop: committed feature branch, no-mistakes validation, lint and tests, pull request…
SkillBFreshness: BClaude Code +9 - 0.524score
actionable-output
Art-of-Technology
Make every response short, clear, and actionable.
SkillBFreshness: BClaude Code +9 - 0.516score
aot-rundown
Art-of-Technology
Give a concise whole-project status rundown from the current repository and GitHub state.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 3, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Art-of-Technology/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Art-of-Technology
- 0.529score
aot-nextjs-server-first
Art-of-Technology
Audit and refactor a Next.js app so data fetching happens on the server, backend credentials never reach the browser, and client-side fetch waterfalls stop…
SkillBFreshness: BClaude Code +9 - 0.529score
aot-release-lifecycle
Art-of-Technology
Enforce the trunk-based release lifecycle across environments.
SkillBFreshness: BClaude Code +9 - 0.529score
aot-ci-cd-optimization
Art-of-Technology
Measure and improve GitHub Actions CI/CD speed through independent parallel checks, cancellation of superseded runs, efficient secret scanning, caching and…
SkillBFreshness: BClaude Code +9 - 0.529score
aot-ci-workflows
Art-of-Technology
Cut wasted GitHub Actions runs in a repo and migrate it onto Art of Technology's shared reusable workflows (node-ci, dotnet-ci, docker-build, release), in two…
SkillBFreshness: BClaude Code +9 - 0.529score
aot-design-review
Art-of-Technology
Review a web UI against visual design, interaction, and accessibility principles, then produce a prioritized findings report with concrete code fixes.
SkillBFreshness: BClaude Code +9 - 0.529score
aot-security-audit
Art-of-Technology
Run a security audit on a TypeScript/Node.js or C#/ASP.NET Core codebase and produce a prioritized findings report with concrete fixes.
SkillBFreshness: BClaude Code +9
Cite this page
aot-pr-loop skill. Agent Mart. https://agentmart.dev/skills/art-of-technology-aot-pr-loop (last updated 2026-10-24)