Devxkit PR Reporting
Verify the readiness of a pull request (PR) for merging, including CI status, PR body completeness, and merge eligibility.
Editor's Note
Ensure the slice is prepared under `.agent-runs/<issue>/` with `metadata.toml` and a filled `pr-body.md`. Push the feature branch when querying remote state (without `--local-only`).
When to Use It
- Confirm PR body readiness and CI status before merging
- Verify that GitHub sees the correct PR for a slice after pushing changes
- Post-merge verification to confirm `already_merged` status with an explicit PR number
SKILL.md
SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use
devxkit pr reporting
For ordinary PRs use native gh pr view / gh pr checks and exact-head CI.
The prepared-slice commands below are frozen DIL compatibility, not mandatory
steps or a requirement for Delivery Packs.
When to use
- Before merge: confirm PR body readiness, CI state, and merge eligibility
- After push: verify GitHub sees the correct PR for the slice
- Post-merge from the configured base (default
main): confirmalready_mergedwith explicit PR number
Preconditions
- Slice prepared under
.agent-runs/<issue>/withmetadata.tomland filledpr-body.md - Feature branch pushed when querying remote state (without
--local-only)
Commands
devxkit agent ops pr-report <issue>
devxkit agent ops pr-report <issue> --json | jq '.scorecard'
devxkit agent ops pr-report <issue> --local-only --json | jq '.scorecard'
git push -u origin "$(git branch --show-current)"
devxkit agent ops pr-create <issue>
devxkit agent ops delivery-publish <issue> --body-file .agent-runs/<issue>/delivery-pack.md
devxkit agent ops pr-report <issue> --json | jq '.scorecard, .pr_resolution'
# Post-merge from the configured base when branch/PR ambiguity exists:
devxkit agent ops pr-report <issue> --pr <number>
devxkit agent ops pr-report <issue> --pr <number> --json | jq '.scorecard, .pr_resolution'
Validation
Scorecard semantics:
overall |
Meaning |
|---|---|
ready |
Checks passed, body ready — merge allowed when merge_ready=true |
waiting_for_checks |
CI pending — wait, do not merge |
not_ready |
Body/checks/blockers fail — fix first |
already_merged |
Post-merge informational state |
missing_pr |
No PR found for slice — create with pr-create |
closed |
PR closed without merge — investigate |
--local-onlynever reports merge-ready against remote CI- PR resolution prefers
target_branchfrom slice metadata over current branch pr-createcreates Draft by construction; it reuses only an existing open Draft PRdelivery-publishrequires one marker and exact local/remote/pack branch and HEAD identity; it updates one canonical comment by ID and refuses duplicate canonical comments
Common failures
- Ambiguous PR after merge → pass
--pr <number>while on the configured base - Merge with pending CI →
waiting_for_checks; poll untilreadyor CI green - PR body NOT READY → edit
.agent-runs/<issue>/pr-body.md; remove template placeholders - Wrong branch → ensure you are on
feature/<issue>-*for pre-merge reports
Stop conditions
- Do not merge when
overalliswaiting_for_checks,not_ready, ormissing_pr - Do not merge with red CI or empty/unfilled PR body
- Require
merge_ready=trueandoverall=readybefore squash merge
Related skills
devxkit-agent-flow,devxkit-usage-observability
View original Markdown
---
name: devxkit-pr-reporting
description: Use devxkit agent ops pr-report and scorecard correctly before and after merge.
scope: global
devxkit_commands:
- devxkit agent ops pr-report
- devxkit agent ops pr-create
- devxkit agent ops delivery-publish
---
# devxkit pr reporting
For ordinary PRs use native `gh pr view` / `gh pr checks` and exact-head CI.
The prepared-slice commands below are frozen DIL compatibility, not mandatory
steps or a requirement for Delivery Packs.
## When to use
- Before merge: confirm PR body readiness, CI state, and merge eligibility
- After push: verify GitHub sees the correct PR for the slice
- Post-merge from the configured base (default `main`): confirm `already_merged` with explicit PR number
## Preconditions
- Slice prepared under `.agent-runs/<issue>/` with `metadata.toml` and filled `pr-body.md`
- Feature branch pushed when querying remote state (without `--local-only`)
## Commands
```bash
devxkit agent ops pr-report <issue>
devxkit agent ops pr-report <issue> --json | jq '.scorecard'
devxkit agent ops pr-report <issue> --local-only --json | jq '.scorecard'
git push -u origin "$(git branch --show-current)"
devxkit agent ops pr-create <issue>
devxkit agent ops delivery-publish <issue> --body-file .agent-runs/<issue>/delivery-pack.md
devxkit agent ops pr-report <issue> --json | jq '.scorecard, .pr_resolution'
# Post-merge from the configured base when branch/PR ambiguity exists:
devxkit agent ops pr-report <issue> --pr <number>
devxkit agent ops pr-report <issue> --pr <number> --json | jq '.scorecard, .pr_resolution'
```
## Validation
Scorecard semantics:
| `overall` | Meaning |
|-----------|---------|
| `ready` | Checks passed, body ready — **merge allowed** when `merge_ready=true` |
| `waiting_for_checks` | CI pending — wait, do not merge |
| `not_ready` | Body/checks/blockers fail — fix first |
| `already_merged` | Post-merge informational state |
| `missing_pr` | No PR found for slice — create with `pr-create` |
| `closed` | PR closed without merge — investigate |
- `--local-only` never reports merge-ready against remote CI
- PR resolution prefers `target_branch` from slice metadata over current branch
- `pr-create` creates Draft by construction; it reuses only an existing open Draft PR
- `delivery-publish` requires one marker and exact local/remote/pack branch and HEAD identity;
it updates one canonical comment by ID and refuses duplicate canonical comments
## Common failures
- **Ambiguous PR after merge** → pass `--pr <number>` while on the configured base
- **Merge with pending CI** → `waiting_for_checks`; poll until `ready` or CI green
- **PR body NOT READY** → edit `.agent-runs/<issue>/pr-body.md`; remove template placeholders
- **Wrong branch** → ensure you are on `feature/<issue>-*` for pre-merge reports
## Stop conditions
- Do **not** merge when `overall` is `waiting_for_checks`, `not_ready`, or `missing_pr`
- Do **not** merge with red CI or empty/unfilled PR body
- Require `merge_ready=true` and `overall=ready` before squash merge
## Related skills
- `devxkit-agent-flow`, `devxkit-usage-observability`
Community Reviews & Field Notes
Tried this skill on your own project? Share the model you used and the results you got.