Bring a pull request to green by syncing with main, resolving conflicts safely, and fixing failing checks with CausalPy conventions.
64
76%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./.agents/skills/pr-to-green/SKILL.mdThis skill provides a deterministic maintainer workflow for taking an in-flight PR branch to green.
main and needs sync/rebase$CONDA_EXE run -n CausalPy <command>If the user provides a PR number (for example PR #724), do this first:
gh pr view <number> to get title, state, head branch, base branch, mergeability, and check summary.gh pr checks <number> to get per-check pass/fail/pending status.gh pr checkout <number> (preferred) so local branch tracks the PR head.main).Triage and early exit
Sync branch with base
git fetch upstream then git rebase upstream/<base-branch> (or maintainer-preferred merge strategy).Fix failing checks with smallest valid change
causalpy/tests/ if behavior changes.Re-run checks in escalating scope
prek run --all-files before final handoff.Push and verify remote
git push).gh pr checks <number> until they complete or a timeout is reached.Prepare maintainer-ready status update
Use subagents (via the Task tool) when work is noisy, broad, or high-risk. Each subagent runs in its own context window and returns a condensed result.
ci-failure-investigatorTrigger when CI logs are long/noisy, failures span multiple jobs, or failure family is unclear.
Handoff (include in Task prompt):
gh run view outputmerge-conflict-analystTrigger when rebase/merge produces non-trivial conflicts, intent differs across branches, or conflict count is high.
Handoff (include in Task prompt):
git diff --name-only --diff-filter=U) and key conflict markers/snippetsDo not auto-resolve and continue silently when conflicts are highly complex. Instead, stop and request maintainer input with a brief report.
Escalate by default when:
.ipynb conflicts are messy (overlapping cell content plus metadata/output churn)Escalation report must include:
Do not keep patching silently when greening a PR turns into broader compatibility work outside the PR's feature surface. Stop after root-cause identification and ask the maintainer whether to continue in the PR or split the work into a separate branch/PR from main.
Escalate by default when:
Scope-drift report must include:
pytest tests in causalpy/tests/sample_kwargs7e23946
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.