Add pr-to-green skill and CI/conflict subagents#737
Merged
Conversation
Introduce three new docs: a CI failure investigator agent (.cursor/agents/ci-failure-investigator.md), a merge conflict analyst agent (.cursor/agents/merge-conflict-analyst.md), and a PR-to-green workflow skill (.github/skills/pr-to-green/SKILL.md). These add repository-specific triage and conflict-resolution guidance (failure-family grouping, root-cause ranking, minimal patch plans, verification commands), strict output formats, escalation rules for high-risk conflicts (notebooks, core contract changes), and CausalPy guardrails (conda command conventions, test placement, non-destructive git practices). Designed to standardize automated/manual maintainer workflows for syncing PRs and restoring CI green.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #737 +/- ##
==========================================
- Coverage 94.62% 94.59% -0.03%
==========================================
Files 45 45
Lines 7590 7590
Branches 462 462
==========================================
- Hits 7182 7180 -2
- Misses 248 249 +1
- Partials 160 161 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cetagostini
approved these changes
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
pr-to-greenskill and two supporting Cursor subagents to streamline the maintainer workflow for getting PRs to a mergeable state.pr-to-greenskill (.github/skills/pr-to-green/SKILL.md): deterministic workflow for syncing a PR branch with base, resolving conflicts, fixing failing checks, pushing, and verifying remote CI. Includes early exit when PR is already green, an iteration loop for cascading failures, and explicit maintainer escalation for complex conflicts (especially.ipynb).ci-failure-investigatorsubagent (.cursor/agents/ci-failure-investigator.md): triages noisy/multi-job CI failures into root-cause rankings and minimal fix plans. Runs onfastmodel to keep cost low.merge-conflict-analystsubagent (.cursor/agents/merge-conflict-analyst.md): classifies conflicts by risk, auto-resolves mechanical ones, and escalates semantic/high-risk conflicts (especially notebooks and core contracts) to the maintainer with options and trade-offs.Usage
Invoke in Cursor chat with a PR number:
The skill fetches PR metadata from GitHub, checks out the branch, and walks through sync/fix/push/verify. If the PR is already green it exits early. Subagents are delegated automatically when CI logs are noisy (
ci-failure-investigator) or merge conflicts are non-trivial (merge-conflict-analyst).