Skip to content
Agentmart
Submit a tool

pr-review-resolve-loop

Review and repair bounded Gitea PR batches and merge only current-head cleared PRs under the project merge policy.

Skill by CraigThomasParsons

IndexedMIT★ 1
Write a review

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/craigthomasparsons-pr-review-resolve-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.

We use your email only for this newsletter. Privacy

About

Review and repair bounded Gitea PR batches and merge only current-head cleared PRs under the project merge policy.

No 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
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pr-review-resolve-loop

What's inside

Skill name
pr-review-resolve-loop
Description
Review and repair bounded Gitea PR batches and merge only current-head cleared PRs under the project merge policy.
License
MIT
Instructions
15 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (4)

  • SKILL.md
  • receipt.md · references/
  • gitea_merge.py · scripts/
  • test_gitea_merge.py · tests/

SKILL.md (first lines)

# pr-review-resolve-loop

Read the target repository instructions and its trusted `.factory/project.json` from the target branch. Resolve Gitea identity from that configuration and verify it against the Git remote. Installation does not authorize processing existing work. Preserve the scope of the current user request.

Set `GITEA_SERVER_URL` and `GITEA_TOKEN` or `GITEA_TOKEN_FILE` for the selected Gitea server. This workflow is Gitea-only; the factory repository's GitHub origin is not a target. Review `references/receipt.md` before operating.

Process at most two PRs and three repair rounds per PR, unless a smaller task bound applies. Hold one controller lock; skip drafts, bots and work owned by another controller. Paginate discovery to an empty page. Read `../pr-review-loop/SKILL.md` and `../pr-resolve-loop/SKILL.md` for review and repair. New head/base invalidates prior clearance.

After an independent clean Standards/Spec review and passing required validation, write the receipt outside the PR checkout. Derive commands and required contexts from trusted target-branch policy and server protection. Review output and `review:clear` are necessary but not sufficient. Model approval alone is advisory.

Run `python3 scripts/gitea_merge.py --repo <owner/repo> --pr <n> --method <configured-method> --receipt <receipt.json>` for read-only eligibility. Add `--execute` only when the operator enabled auto-merge for this repository and invoked the loop with that authority. The helper's flag is the execution boundary; it does not read `.factory/project.json` itself. Never force merge, bypass required checks or delete branches. Verify the merged SHA before recording completion.

The helper rechecks head/base/labels and passes `head_commit_id`. Gitea does not atomically guard base or label changes in that request, so branch protections remain required. Uncertain POST outcomes require a fresh read, not a blind retry. Stop on authentication failures, exhausted rounds, missing tests or conflicting ownership. Only reconcile acceptance criteria proven by the merged change.

From CraigThomasParsons/TheGiteaCodeFactory, MIT.

More from CraigThomasParsons/TheGiteaCodeFactory

Signals

Stars
1
Forks
0
Open issues
3
Last commit (this folder)
Sep 28, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from CraigThomasParsons

Cite this page

pr-review-resolve-loop skill. Agent Mart. https://agentmart.dev/skills/craigthomasparsons-pr-review-resolve-loop (last updated 2026-10-24)