en un clic
fix-issue
// End-to-end workflow for fixing a GitHub issue in sccn/eeglab. Use when asked to fix, investigate, or resolve a GitHub issue.
// End-to-end workflow for fixing a GitHub issue in sccn/eeglab. Use when asked to fix, investigate, or resolve a GitHub issue.
| name | fix-issue |
| description | End-to-end workflow for fixing a GitHub issue in sccn/eeglab. Use when asked to fix, investigate, or resolve a GitHub issue. |
You are to fix the GitHub issue indicated by the user.
Read first:
@AGENTS.md
Be terse. Every sentence must add information.
Use gh to fetch the issue. Read enough source to identify the relevant
function, helper chain, plugin, or GUI path.
Before coding, run a duplicate-work preflight:
gh pr list --state open --search "<issue-id or keyword>"
gh issue list --state open --search "<keyword>"
If overlapping work exists, do not open a parallel implementation. Comment with what you found and either hand off to the existing work or scope your fix to a non-overlapping follow-up.
Post one comment with these sections before implementing:
# Research
<2-3 sentences explaining the root cause or missing behavior.>
**Relevant code**
- `path/to/file.m#Lx-Ly` - short annotation
# Proposed Fix
<One short paragraph explaining the smallest fix and focused validation.>
For larger feature or design work, do not guess. Write a concise design note in the issue instead of opening a PR immediately. Include the problem, approach, affected files, tests, tradeoffs, and open questions.
agent/{YYYYMMDD}-fix-{issue-id}.sample_data/ or plugin-local tests.pop_* GUI, command-line, and history behavior.eeg_checkset.Use the narrowest relevant validation first:
matlab -batch "cd('/path/to/eeglab'); eeglab('nogui'); <focused commands>"
octave --quiet --eval "cd('/path/to/eeglab'); eeglab('nogui'); <focused commands>"
Run plugin tests when relevant, for example:
matlab -batch "cd('/path/to/eeglab/plugins/ICLabel'); run_tests"
Do not weaken assertions or change expected numerical behavior without proving the old expectation was wrong.
When validation is complete, open a PR following
.agents/skills/pull-request/SKILL.md exactly. Attach it to the issue with a
short comment summarizing the fix and the validation command.
After opening the PR, monitor checks:
gh pr view <number> --json statusCheckRollup
Fix actionable failures before considering the task complete.
Never credit yourself or AI tools in commits, comments, or PR descriptions.
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.
Review a pull request for correctness, MATLAB/Octave behavior, EEGLAB data-structure consistency, GUI/history regressions, and repository convention compliance in sccn/eeglab.