بنقرة واحدة
github-pr-review
// Review a pull request for correctness, MATLAB/Octave behavior, EEGLAB data-structure consistency, GUI/history regressions, and repository convention compliance in sccn/eeglab.
// Review a pull request for correctness, MATLAB/Octave behavior, EEGLAB data-structure consistency, GUI/history regressions, and repository convention compliance in sccn/eeglab.
End-to-end workflow for fixing a GitHub issue in sccn/eeglab. Use when asked to fix, investigate, or resolve a GitHub issue.
Authoring pull requests for sccn/eeglab. Use when creating or updating a PR, and whenever changing a branch that is already associated with a PR.
| name | github-pr-review |
| description | Review a pull request for correctness, MATLAB/Octave behavior, EEGLAB data-structure consistency, GUI/history regressions, and repository convention compliance in sccn/eeglab. |
| allowed-tools | Bash(gh issue view:*), Bash(gh search:*), Bash(gh issue list:*), Bash(gh pr comment:*), Bash(gh pr diff:*), Bash(gh pr view:*), Bash(gh pr list:*), Bash(gh pr review:*), Bash(git rev-parse:*), mcp__github_inline_comment__create_inline_comment |
Provide a code review for the given pull request.
You are reviewing EEGLAB, a MATLAB-native toolbox for EEG and related electrophysiological signal processing.
Read first:
@AGENTS.md
Prioritize:
pop_* functions.Flag only issues that are specific, actionable, and tied to changed code.
Flag:
pop_* command-line path, GUI path, or returned command string.AGENTS.md or scoped directory instructions.Do not flag:
Check whether the PR is closed or draft. If so, stop unless the user explicitly requested review anyway.
Read the PR title, body, changed files, and diff:
gh pr view <PR> --json title,body,files,state,isDraft,author
gh pr diff <PR>
Find relevant instructions:
find .. -name AGENTS.md -o -name CLAUDE.md
Apply only instructions in the changed file's directory or parents.
Review changed files against the EEGLAB rules in AGENTS.md.
Validate candidate findings by reading the surrounding source, not just the diff.
Produce a concise terminal summary. If --comment was not provided, stop.
If --comment was provided, post or update a single PR comment.
Use this format:
## Code review
- Overall assessment: <safe to merge / needs changes / needs more context>
- Highest-risk area: <area>
- Merge recommendation: <safe to merge / needs changes / needs more context>
## Blocking
<findings or None.>
## Important
<findings or None.>
## Nits
<findings or None.>
## Test gaps
<findings or None.>
## EEGLAB notes
<findings or None.>
Rules:
None.## Code review
- Overall assessment: Looks good.
- Highest-risk area: None identified.
- Merge recommendation: Safe to merge.
## Blocking
None.
## Important
None.
## Nits
None.
## Test gaps
None.
## EEGLAB notes
None.
Checked for correctness bugs, MATLAB/Octave behavior, EEG structure consistency, GUI/history regressions, changed-behavior tests, and AGENTS.md compliance.
Post or update the review comment with:
gh pr comment "$PR_NUMBER" --edit-last --create-if-none --body-file <file>
Use inline comments only for validated issues that are best attached to a specific changed line. Do not duplicate summary findings inline.
Inline comments must:
Never credit yourself or AI tools in review comments.