Review student prs

From jsboige/CoursIA · View interactive version

Review student prs is an AI agent skill from the GitHub repository jsboige/CoursIA. Review and merge student exercise PRs during TP sessions. Arguments: <repo-url> [--class <class-id>] [--timeslot <HH:MM-HH:MM>] [--dry-run]

How to use this skill

Skill file

Review Student PRs

Review, validate, and intelligently merge student exercise PRs submitted during TP sessions.

Target: $ARGUMENTS

Arguments

Process

Phase 1 - Discovery & Identification

  1. Fetch open PRs from the target repo using gh pr list
  2. Filter by timeslot - Only PRs created within the authorized submission window
  3. Identify students:
  1. Flag anomalies: PRs outside timeslot, duplicate claims on same notebook, unknown accounts
  2. Check each delivery against the group's reservation (MANDATORY before any conversion in Phase 4, teacher sign-off 2026-11-10). The reservation lists stop two groups from reserving the same exercise; they cannot stop a group from delivering an exercise it did not reserve. For each PR, once the group is identified (step 3) and the delivered notebook and exercise numbers are known, run the private read-only script of the cohort's reservation tools:

```

conda run -n mcp-jupyter python "G:\Mon Drive\MyIA\Formation\EPF\2027\outils-reservation-tp\verifier_rendu.py" \

--classeur <IA2-Min1|IA2-Min2|MIS|APP3|MIN52> --groupe <Gnn> --carnet <repo path of the notebook> --exercices <1,2,3>

```

Phase 2 - Code Review

For each valid PR:

  1. Fetch PR diff using gh pr diff <number>
  2. Identify modified notebooks and changed cells
  3. Validate exercise completion:
  1. Execution validation (MANDATORY - do not skip):
  1. Detect copy-paste / uncommenting:
  1. Quality assessment (per exercise):

Phase 3 - Report Generation

Generate a correction report in reports/corrections/ (gitignored):

reports/corrections/YYYY-MM-DD_<class-id>_review.md

Report format:

# TP Review - <date> - <class-id>

## Summary
- PRs reviewed: N
- Valid exercises: N (+0.5 pts each)
- Partial: N (manual review needed)
- Invalid: N

## Per-Student Results

### <Student Name> (GitHub: @username)
- **PR**: #<number> - <title>
- **Notebook**: <notebook-name>
- **Timeslot**: <created-at> (VALID/LATE)
- **Exercises**:
  | Exercise | Status | Score | Notes |
  |----------|--------|-------|-------|
  | Ex 1     | VALID  | +0.5  | Clean implementation |
  | Ex 2     | PARTIAL| 0     | Missing explanation |
- **Total bonus**: +X.X points

Phase 4 - Intelligent Merge

For each VALID exercise whose reservation check (Phase 1, step 5) returned OK, or which the teacher has explicitly cleared (skip if --dry-run):

  1. Transform exercise result into example:
  1. Create replacement exercise:
  1. Curate redundancy:
  1. Commit changes:

```

feat(ece): integrate student exercise <notebook> - <student> (+0.5 bonus)

Co-Authored-By: <Student Name> <student-email-if-available>

Co-Authored-By: Claude-Code <noreply@anthropic.com>

```

  1. Push to the main branch of the target student repository (the repo-url argument), after all PRs for the session are processed. That repository's charter governs this push. If the integration lands in jsboige/CoursIA, never push to main: open one PR for the session instead (CLAUDE.md §A, git-workflow.md).

Phase 5 - Cleanup

  1. Close merged PRs with a comment thanking the student and confirming bonus
  2. Update the correction report with final merge status
  3. Summary output to the user with:

Important Notes

Notebook Types

| Series | Kernel | Execution Method |

|--------|--------|-----------------|

| Probas | .NET C# | MCP cell-by-cell |

| GameTheory | Python (WSL) | papermill or notebook_helpers |

| ML | Mixed (.NET + Python) | Depends on notebook |

Spreadsheet Reference

Student inscriptions and evaluations:

EPF 2026-2027 (private, outside the repository): one Google Sheets classeur per cohort (IA2-Min1, IA2-Min2, MIS, APP3, MIN52).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.