greploop
Iterate on an existing PR, MR, or shelved changelist until Greptile reaches 5/5 with no unresolved comments.
Skill by greptileai
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/trebuchetdynamics-greploop
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: security
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/greploop
Tools it pre-approves 4
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Bash(gh:*)Bash(glab:*)Bash(git:*)Bash(p4:*)
What's inside
- Skill name
greploop- Description
- Iterate on an existing PR, MR, or shelved changelist until Greptile reaches 5/5 with no unresolved comments. Use only when that review context, tooling, auth, and external-action approval exist.
- License
- MIT
- Compatibility
- Requires git, gh (GitHub CLI) or glab (GitLab CLI) authenticated, and Greptile installed on the repo. For Perforce, requires p4 CLI authenticated.
- Allowed tools
- Bash(gh:*), Bash(glab:*), Bash(git:*), Bash(p4:*)
- Metadata
- author: greptileai · version: 1.2
- Instructions
- 414 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Files (3)
- SKILL.md
- gitlab-api.md · references/
- graphql-queries.md · references/
SKILL.md (first lines)
# Greploop
Iteratively fix a PR/MR/CL until Greptile gives a perfect review: 5/5 confidence, zero unresolved comments.
## Inputs
- **PR/MR/CL number** (optional): If not provided, detect the PR/MR for the current branch, or the default pending changelist for p4.
## Instructions
### 0. Detect platform
First check for Perforce, then fall back to git remote detection:
```bash
# Check for Perforce environment
if p4 info >/dev/null 2>&1; then
VCS="perforce"
else
REMOTE_URL=$(git remote get-url origin)
if echo "$REMOTE_URL" | grep -qi "gitlab"; then
VCS="gitlab"
else
VCS="github"
fi
fi
```
For self-hosted GitLab instances whose hostname doesn't contain "gitlab", the user can override by passing `--vcs gitlab` as an input. For Perforce, pass `--vcs perforce`.
### 1. Identify the PR/MR/CL
**GitHub:**
```bash
gh pr view --json number,headRefName -q '{number: .number, branch: .headRefName}'
```
**GitLab:**
```bash
glab mr view --output json | jq '{iid: .iid, branch: .source_branch}'
```
Switch to the PR/MR branch if not already on it.
**Perforce:**
```bash
# List pending changelists for current user/client
p4 changes -s pending -u $P4USER -c $P4CLIENT
# Describe a specific CL
p4 describe -s <CL_NUMBER>
```
Ensure the correct workspace (`p4 client`) is set before proceeding.
Key field differences:
- GitHub: `number`, `headRefName`, `headRefOid`
- GitLab: `iid`, `source_branch`, `sha`
- Perforce: changelist number, `P4CLIENT`, shelved files
### 2. Loop
Repeat the following cycle. **Max 5 iterations** to avoid runaway loops.
#### A. Trigger Greptile review
Push/shelve the latest changes (if any):
**GitHub/GitLab:**
```bash
git push
```
**Perforce:**
```bash
# Re-shelve to update the shelved files for review
p4 shelve -f -c <CL_NUMBER>
```
Wait for checks to start after push/shelve:
```bash
sleep 5
```
**GitHub** — check if Greptile is already running before posting a new trigger comment:
```bash
GREPTILE_STATE=$(gh pr checks <PR_NUMBER> --json name,state | jq -r '.[] | select(.name | test("greptile"; "i")) | .state')
```
If Greptile is **not** already running (`PENDING` or `IN_PROGRESS`), request a fresh review:
```bash
if [ "$GREPTILE_STATE" != "PENDING" ] && [ "$GREPTILE_STATE" != "IN_PROGRESS" ]; then
gh pr comment <PR_NUMBER> --body "@greptile review"
fi
```
Then poll for the Greptile check run to complete:
```bash
HEAD_SHA=$(gh pr view <PR_NUMBER> --json headRefOid -q .headRefOid)
while true; do
GREPTILE_CHECK=$(gh api "repos/{owner}/{repo}/commits/$HEAD_SHA/check-runs" \
--jq '.check_runs[] | select(.name | test("greptile"; "i"))' 2>/dev/null)
if [ -z "$GREPTILE_CHECK" ]; then
echo "Waiting for Greptile check to appear..."
sleep 5
continue
fi
STATUS=$(echo "$GREPTILE_CHECK" | jq -r '.status // "completed"')
CONCLUSION=$(echo "$GREPTILE_CHECK" | jq -r '.conclusion // "pending"')
if [ "$STATUS" = "completed" ]; then
if [ "$CONCLUSION" = "success" ]; thenFrom TrebuchetDynamics/pi-toolset, MIT.
More from TrebuchetDynamics/pi-toolset
- 0.619score
memory-holographic-hermes-setup
TrebuchetDynamics
Use when enabling, checking, or repairing local Holographic memory for selected existing Hermes Agent profiles or a verified repo Compose home; not for…
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
hermes-repo-install
TrebuchetDynamics
Use when installing, resuming or repairing a repository's Docker Compose Hermes Agent, including a silent bot, stopped gateway, pending activation, or…
SkillAFreshness: A★ 5Claude Code +9 - 0.619score
hermes-laya
TrebuchetDynamics
Use when adding, configuring, verifying or repairing Laya decision inference through Nerve on a repository's Docker Hermes instance; not for Layui, replacing…
SkillAFreshness: A★ 5Claude Code +9 - 0.579score
ponytail
TrebuchetDynamics
Persistent YAGNI and shortest-safe-diff implementation mode.
SkillBFreshness: B★ 5Claude Code +9 - 0.579score
candidates-folder-refactor
TrebuchetDynamics
Rank noisy folders for skill-folder-refactor.
SkillBFreshness: B★ 5Claude Code +9 - 0.579score
autonomous-codebase-improver
TrebuchetDynamics
Use when requests call for broad, open-ended or continuous roadmap-driven repository improvement across bugs, security, design, UI, performance, reliability…
SkillBFreshness: B★ 5Claude Code +9 - 0.576score
diagnose
TrebuchetDynamics
Diagnose a specific reported failure or performance regression to root cause: reproduce, minimize, hypothesize, instrument, fix, and regression-test.
SkillBFreshness: B★ 5Claude Code +9 - 0.574score
autoreview
TrebuchetDynamics
Run an available second-model review helper for closeout.
SkillBFreshness: B★ 5Claude Code +9 - 0.571score
writing-shape
TrebuchetDynamics
Shape rough notes, fragments, transcripts, or drafts into publishable articles.
SkillBFreshness: B★ 5Claude Code +9 - 0.571score
ponytail-review
TrebuchetDynamics
Review a diff or scoped code change only for over-engineering and deletion opportunities.
SkillBFreshness: B★ 5Claude Code +9 - 0.571score
s3upload
TrebuchetDynamics
Upload, list, or delete files with s3upload and return expiring Azure links.
SkillBFreshness: B★ 5Claude Code +9 - 0.571score
ponytail-help
TrebuchetDynamics
Show the ponytail command and mode reference card.
SkillBFreshness: B★ 5Claude Code +9
Signals
- Stars
- 5
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 11, 2026 (3 months ago)
- Last release
- Jun 14, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.2
- License
- MIT
- Repository
- github.com/TrebuchetDynamics/pi-toolset
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from greptileai
- 0.586score
check-pr
greptileai
Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and…
SkillCFreshness: C★ 82Claude Code +9 - 0.586score
greploop
greptileai
Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.
SkillCFreshness: C★ 82Claude Code +9 - 0.570score
check-pr
greptileai
Report a GitHub PR's merge readiness: pending or failing checks, unresolved review threads, an incomplete description, and optionally fix them.
SkillAFreshness: AClaude Code +9 - 0.565score
cli-review
greptileai
Runs a Greptile CLI review for the current local branch, installing or authenticating the CLI when needed, then summarizes JSON findings for the user.
SkillAFreshness: AClaude Code +9 - 0.565score
cli-review
greptileai
Run the Greptile CLI on the local branch and summarize its findings.
SkillAFreshness: AClaude Code +9 - 0.564score
greploop
greptileai
Loop a PR through Greptile review until 5/5 confidence with zero unresolved comments.
SkillAFreshness: AClaude Code +9
Cite this page
greploop skill. Agent Mart. https://agentmart.dev/skills/trebuchetdynamics-greploop (last updated 2026-10-24)