greptile
Skill2 starsChanged 35 days agoApache-2.0View on GitHub
Triages Greptile bot comments on the current PR and resolves UI threads as fixed-or-disagreed. USE WHEN user says 'triage Greptile on this PR', 'fix Greptile', 'address the Greptile comments', or there are open Greptile threads on the current PR. Reads Greptile findings via gh CLI, classifies real-bug vs false-positive, applies fixes for real bugs, posts disagreement reply + resolves thread for false-positives in the GitHub UI. NOT FOR human review comments (use /review-fix , broader scope).
1 other project uses a version of this.
Adopted by
Most recently taken up by
- lgtm-hq/ai-skillstheir own version, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- lgtm-hq/ai-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 12-principles-of-animationSkill
- aip-namingSkill
- architectSkill
- babysit-abortSkill
- babysit-prSkill
- babysit-tickSkill
- baseline-uiSkill
- commit-pushSkill
- complex-refactorSkill
- critiqueSkill
- deadSkill
- devstackSkill
- go-backendSkill
- goSkill
- go-strictSkill
- impl-checkSkill
- inspect-dbSkill
- inspect-deploySkill
- inspect-runtimeSkill
- interaction-designSkill
- issue-planSkill
- lessonsSkill
- mergeSkill
- new-resourceSkill
- plan-featureSkill
- preflightSkill
- pr-reviewSkill
- review-fixSkill
- reviewSkill
- shipSkill
- simplifySkill
- task-execution-protocolSkill
- teamSkill
- tui-component-browserSkill
- tui-design-labSkill
- tui-designSkill
- verifySkill
- wrap-upSkill
- write-docsSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 54
If multiple true positives are independent (different files), spawn parallel Agent calls to fix them concurrently.
- Distinctive: line 56
Run linters + tests after fixes to confirm no regressions:
- Very specific: line 90
Loop invariant: after Step 4b for thread N, the thread MUST show isResolved: true.
- Very specific: line 94
Use /commit-push to rebase, lint, test, and push the fix commit(s):
- Very specific: line 100
Commit subject: fix: address greptile review feedback.
- Distinctive: line 102
After push, tag Greptile to trigger a re-review:
- Distinctive: line 110
Run the verification step:
- Distinctive: line 125
All threads resolved in UI: ✅ / ✗
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Triage and resolve all Greptile review comments on the current PR. Every addressed thread must end with isResolved: true in the GitHub UI. This skill exits non-zero if any Greptile thread remains unresolved after the run , the autonomous loop relies on that signal.
Steps
Phase 1 , Fetch & Triage
Determine PR number:
PR="${ARGUMENTS:-$(gh pr view --json number -q .number)}"List every Greptile thread with its body and resolution state:
.claude/scripts/greptile-resolve-threads.sh list $PR(That script wraps gh api graphql with the right filter.) For each thread, classify:
- True positive , A real issue. Fix it.
- False positive , Not a real issue (prepare a one-sentence justification).
- Ambiguous , Requires deeper investigation.
Present the triage as a markdown summary table before making any changes. Columns: # | path:line | Class | Greptile confidence | Rationale | Action.
Phase 2 , Resolve Ambiguous Findings
For each ambiguous finding, spawn a team of agents IN PARALLEL via the Agent tool:
Agent({ subagent_type: "Explore",
description: "Investigate Greptile finding #N at path:line",
prompt: "..." })Agents research the codebase + relevant best-practice source. Reach consensus. Report the conclusion + reasoning. Update the triage table. Reclassify as true or false positive.
Phase 3 , Fix True Positives
For each confirmed true positive, apply the fix following the authoritative standard for that layer:
- Go backend: Google Go Style Guide, idiomatic Go, project conventions (
agent-docs/) - Proto/API: Google AIPs, Protobuf Style Guide
- Frontend: Next.js docs, React 19, project frontend rules (Geist/shadcn/TanStack/Connect-ES)
If multiple true positives are independent (different files), spawn parallel Agent calls to fix them concurrently. Group findings that touch the same file.
Run linters + tests after fixes to confirm no regressions:
mise run lint && mise run test
# (no frontend currently) && pnpm tsc --noEmit && # (no frontend) # if web/ touchedPhase 4 , Respond & Resolve (CRITICAL , DO NOT SKIP EITHER STEP)
⚠ The single most common failure mode of this skill is skipping the GraphQL
resolveReviewThreadmutation , leaving threads visually unresolved in the GitHub UI even though replies were posted. You must run bothgh apicalls below for EVERY Greptile thread, true positive AND false positive, with no exceptions.
For each thread, in order, do BOTH steps. Iterate through the thread list from .claude/scripts/greptile-resolve-threads.sh list $PR , every row in that output requires both calls below before moving on.
Step 4a (every thread) , Reply via gh api:
# COMMENT_ID is the `commentId` (databaseId) from `list` output, not the threadId.
gh api repos/{owner}/{repo}/pulls/$PR/comments/$COMMENT_ID/replies \
-f body="$REPLY_BODY"Reply body conventions:
- True positive (we applied the fix):
"Fixed in <new-commit-sha> , <one-line what changed>" - False positive (we disagree):
"No change: <one-sentence justification>"
Step 4b (every thread) , Resolve via GraphQL mutation:
# THREAD_ID is the `threadId` (GraphQL node ID) from `list` output, not the commentId.
.claude/scripts/greptile-resolve-threads.sh resolve $THREAD_IDThis calls resolveReviewThread and is what flips the thread to "Resolved" in the GitHub UI. A reply alone does not resolve the thread , it stays open and looks unaddressed to a human reviewer.
Loop invariant: after Step 4b for thread N, the thread MUST show isResolved: true. If .claude/scripts/greptile-resolve-threads.sh verify $PR finds any unresolved Greptile thread at the end, this skill has failed , verify exits non-zero and the babysit loop will keep iterating.
Phase 5 , Push & Re-request Review
Use /commit-push to rebase, lint, test, and push the fix commit(s):
Invoke /commit-push (Skill tool)Commit subject: fix: address greptile review feedback. Body lists what changed per file.
After push, tag Greptile to trigger a re-review:
gh pr comment $PR --body "@greptileai please re-review"Phase 6 , Verify All Resolved
Run the verification step:
.claude/scripts/greptile-resolve-threads.sh verify $PRThis exits 1 if any Greptile thread on the PR is still isResolved: false. The skill MUST propagate that exit code , the autonomous babysit loop uses it to decide whether to iterate again.
Phase 7 , Report
Print:
- Total Greptile threads: N
- True positives fixed: N
- False positives explained: N
- Ambiguous resolved: N (true: A, false: B)
- All threads resolved in UI: ✅ / ✗
- Re-review requested: ✅
Mark every addressed thread as resolved in the UI. Without that, the loop won't converge.
Gotchas
- The skill is NOT done until every Greptile thread shows
isResolved: true. The reply viagh api .../comments/$ID/repliesis half the work , the other half is the GraphQLresolveReviewThreadmutation (Phase 4b). Skipping 4b leaves threads visually open in the UI even though we've addressed them in commits. Run.claude/scripts/greptile-resolve-threads.sh verify $PRat the end of every run; non-zero exit means re-iterate. @greptileaimention is how you both trigger and re-trigger Greptile. The bot's name in GitHub Apps autocomplete is hidden , type the mention literally. Initial review:gh pr comment $PR --body "@greptileai please review". Re-review after fixes:gh pr comment $PR --body "@greptileai please re-review". Never call a non-existent "request re-review" API , there isn't one; the mention IS the API.commentIdvsthreadIdare different IDs..claude/scripts/greptile-resolve-threads.sh list $PRreturns both , usecommentId(REST databaseId) forgh api .../comments/{id}/replies, andthreadId(GraphQL node ID, startsPRRT_) for the resolve mutation. Mixing them up yields cryptic GraphQL errors.
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
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.

