Skip to content

Add portable EFO PR-reviewer across Claude, Copilot, and Codex (#2746) - #2749

Merged
aleixpuigb merged 4 commits into
masterfrom
issue-2746
Jul 13, 2026
Merged

aleixpuigb merged 4 commits into
masterfrom
issue-2746

Conversation

@aleixpuigb

@aleixpuigb aleixpuigb commented Jul 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds a repo-checked-in, EFO-specific PR-review capability available on all three agent platforms (Claude Code, GitHub Copilot, Codex), so any contributor gets EFO PR review out of the box — regardless of which coding agent they use. Ports the logic from the generic, user-level review-pr skill + ontology-pr-reviewer subagent and specializes it to EFO's conventions (src/ontology/efo-edit.owl, synonym typing, xref/PMID rules, obsoletion, temporary EFO_099xxxx IDs).

Design — two layers (resolves the ticket's "share one checklist vs. duplicate" open question in favour of share):

  1. One canonical checklist = single source of truth: docs/agents-documentation/efo-pr-review-checklist.md.
  2. Thin per-platform wrappers that reference it (never restate the rules), so the three reviewers cannot drift out of sync.

Changes

Platform Invocation File(s)
— (shared) canonical checklist all wrappers point to docs/agents-documentation/efo-pr-review-checklist.md
Claude Code efo-pr-review skill → efo-pr-reviewer subagent .claude/skills/efo-pr-review/SKILL.md, .claude/agents/efo-pr-reviewer.md
GitHub Copilot @EFO-pr-reviewer .github/agents/EFO-pr-reviewer.md
Codex CLI follow efo-pr-review-codex.md (pointed to from AGENTS.md) AGENTS.md (new, slim), docs/agents-documentation/efo-pr-review-codex.md

Docs/registration: .github/copilot-instructions.md (agent roster), docs/agents-documentation/README.md + QUICK-REFERENCE.md, and a one-line pointer in CLAUDE.md.

Behavior (identical across platforms)

  • Reviews a PR number or the current branch (works with no open PR), read-only.
  • Returns a structured report: tick-box checklist, severity-tagged findings (🔴/🟡/🔵), single REQUEST CHANGES / APPROVE recommendation.
  • Read-only & on-demand. Publishing a review to a PR (gh pr comment) is a separate, explicit human step; never a formal gh pr review --approve/--request-changes. No CI/automatic reviews.

Checks

  • Structural: all 6 wrapper/checklist files present; every efo-pr-review-checklist.md reference resolves; read-only constraint present in all three wrappers; frontmatter valid.
  • Smoke test (Claude path): ran the reviewer against a real PR end-to-end — it read the wrapper + checklist, produced a correctly-formatted report, flagged an actual description/diff contradiction, and modified nothing (HEAD + working tree unchanged).
  • Copilot / Codex paths: verified structurally only (can't execute those runtimes here) — worth a manual smoke test by a Copilot/Codex user.

Notes / open questions

  • Codex AGENTS.md is introduced as a slim file (brief repo orientation + the review pointer) so it doesn't bloat unrelated Codex sessions. If you'd like it fleshed into a full general Codex repo guide, that's a larger, separate scope.
  • Exact Copilot/Codex invocation UX (the ticket's spike) is documented as: Copilot @EFO-pr-reviewer, Codex "follow the codex prompt doc". Adjust if your CLIs expose a cleaner trigger.
  • The generic user-level review-pr still exists independently; this repo version is self-contained and EFO-specialized.

Closes #2746

🤖 Generated with Claude Code

aleixpuigb and others added 3 commits July 13, 2026 10:21
Two-layer design: a single canonical review checklist
(docs/agents-documentation/efo-pr-review-checklist.md) as the source of
truth, plus thin per-platform wrappers that reference it so they cannot
drift:

- Claude: .claude/agents/efo-pr-reviewer.md (read-only subagent) +
  .claude/skills/efo-pr-review/SKILL.md (driver)
- Copilot: .github/agents/EFO-pr-reviewer.md
- Codex: slim AGENTS.md pointer + docs/agents-documentation/efo-pr-review-codex.md

Registered in copilot-instructions.md, CLAUDE.md, and the
agents-documentation README/QUICK-REFERENCE. Read-only and on-demand;
publishing to a PR stays an explicit human step.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@aleixpuigb aleixpuigb self-assigned this Jul 13, 2026
@aleixpuigb
aleixpuigb merged commit a5ae101 into master Jul 13, 2026
1 check passed
@aleixpuigb
aleixpuigb deleted the issue-2746 branch July 13, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add EFO-specific PR review skill/agent, portable across Claude, Copilot, and Codex

1 participant