Files
skills/skills/gitea-pr/SKILL.md
T
kiskaadee 15406b46cc fix(skills,tests): fix skeleton relative links and split/harden behavioral contract tests
- skills/{code-review,gitea-plan,gitea-pr,reconcile-docs,tdd}/SKILL.md: fix relative skeleton link from ../../build-skill/... to ../build-skill/references/skeleton.md (CR-01)

- tests/fixtures/test_skills_behavioral_contracts.py: split multi-behavior test into 6 focused single-behavior tests (CR-02), remove unused tdd_refs (CR-03), and assert Mode B gates, one-sided BVA bounds, fenced-block non-duplication, skeleton suppression, and on-disk relative link resolution (CR-04)
2026-11-15 21:29:42 -05:00

5.1 KiB

name, description
name description
gitea-pr Manage pull request lifecycle on Gitea: verify branch readiness, synthesize structured PR descriptions from code-review and verify-slice evidence packets, link issues, digest review feedback, and report merge readiness. Not for code inspection: use code-review. Not for runtime QA: use verify-slice. Not for Git branch, commit, or merge mechanics: use git-manager.

Gitea PR

Use when

  • Opening or updating a pull request on Gitea after implementing an issue or feature.
  • Synthesizing static code review and runtime verification evidence into a reviewable PR.
  • Tracking review comments, requested changes, and CI checks toward merge readiness.
  • Publishing a code-review PR comment block (findings and nits) onto an open pull request.
  • Not for static code inspection: use code-review.
  • Not for runtime behavioral verification: use verify-slice.
  • Not for branch creation, committing, rebasing, or local history integration: use git-manager.

Steps

  1. Verify branch readiness. Confirm the local working tree is clean (git status --short), the branch tracks an upstream remote (git rev-parse @{u}), unpushed commits are pushed, and the target base branch exists on the remote.
  2. Collect review and verification evidence. Inspect outputs from preceding skills:
    • code-review: Static provenance, covered commits/diff fingerprint, findings disposition, and overall recommendation (Ready).
    • verify-slice: Runtime evidence ledger across behavioral, security, and state checks, confirming zero unhandled FAIL outcomes. If either packet is missing or stale relative to current HEAD, stop and run that skill first.
  3. Draft structured PR description. Compose the PR body following references/pr-lifecycle.md:
    • Issue Linkage: Closes #<issue-index>.
    • Summary of Changes: Problem, solution, and scope boundary.
    • Static Review Provenance: Base/head SHAs, diff SHA256, and 4-axis disposition.
    • Runtime Verification Ledger: Markdown table of executed checks and outcomes.
    • Residual Risks and Rollback: Operational considerations and reversibility.
  4. Present for human approval. Present proposed title, target base branch, milestone, and description body to the user per profile/AGENTS.md. Stop for confirmation before creating or editing the pull request.
  5. Create or update pull request via gt pr and move card to Review. Run verified commands from references/gt-pulls.md: gt pr create -t "<title>" -B "<base>" -H "<branch>" -F <body-file> --json number,url. Pass --draft if work remains in progress. Extract verified PR number and URL, and ensure the linked issue card is in Review (Work in Progress -> Review) on the project board.
  6. Publish review findings (when a code-review comment block exists). Follow references/gt-pulls.md section 3: confirm the remote PR head equals the reviewed head SHA (else stop and re-run code-review), confirm no pending review and no prior review for that SHA exists, show the body and inline list for approval, then post one --comment review pinned with --commit. Never --approve or --request-changes. Findings routed issue get their issue (via gitea-plan) before posting so the comment links to it.
  7. Track review feedback, merge on owner approval, and move card Review -> Completed. Inspect status checks (gt pr checks <number>), mergeability (gt pr view <number> --json mergeable,review_decision), and review comments (gt pr review comments <number>). When all checks pass and review feedback is resolved, report Ready for Merge. Never merge automatically: once the human owner explicitly authorizes merge, run gt pr merge <number> and move the linked issue card Review -> Completed.

Your call

  • PR title and description approval: review and approve the draft PR content and issue linkage.
  • Publishing review findings: approve the comment block and each finding's placement and follow-up route before it is posted.
  • Review feedback triage: decide how to address review comments (rework, clarification, deferral).
  • Merge and release authorization: decide when to merge the PR into the target base branch.

Done when

  • Pull request is created or updated in Gitea with complete evidence provenance, and its current review and mergeability status is reported to the user.

Hands off to

  • code-review: if review packet is missing/stale (Suggested Next Step: /code-review <base>..HEAD).
  • verify-slice: if runtime QA packet is missing/stale (Suggested Next Step: /verify-slice).
  • gitea-plan: to create follow-up issues routed issue (Suggested Next Step: /gitea-plan).
  • reconcile-docs: after merge when docs/milestones shift (Suggested Next Step: /reconcile-docs).
  • implement-slice: after merge when next issue is queued (Suggested Next Step: /implement-slice #<next-issue>).
  • git-manager: to commit review fixes, rebase, or update against base.
  • Emit one outcome-matched Suggested Next Step per skeleton.