Repository navigation
Add repository skills and notebook schema validation - #74
Merged
Merged
Conversation
Add original, focused workflows for PR creation and review, notebook validation, and system-design content review. Add a read-only schema checker using existing dependencies, regression tests, and an existing-CI integration. Validated all 17 notebook schemas and the complete local pytest/nbval suite (33 tests). Confirmed Copilot skill/instruction discovery and local links. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7411b498-db61-4f72-8629-4af2b007c3a4
Use nbformat's non-mutating iterator so missing required IDs in newer formats cannot be repaired before validation. Add a regression confirmed failing before the fix while preserving acceptance of valid older formats. All 17 notebook schemas and 33 tests pass locally. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7411b498-db61-4f72-8629-4af2b007c3a4
There was a problem hiding this comment.
🟡 Changes recommended
The validator can incorrectly accept notebooks with missing or duplicate cell IDs and abort the batch on malformed notebook structures instead of reporting them as invalid.
2 open issues
What changed in this PR
This PR adds contributor guidance and notebook schema validation to the repository’s existing article and example workflows, without introducing new dependencies or changing notebook content.
Changes:
- Add four focused skills and shared editing expectations in
AGENTS.md. - Run a read-only notebook schema helper before the existing nbval CI step.
- Add tests for invalid inputs, batch failure handling, and validation without execution or rewriting.
| File | Description |
|---|---|
tests/test_validate_notebooks.py |
Tests schema validation, error reporting, batch handling, and file preservation. |
AGENTS.md |
Defines shared contributor expectations and links to skills. |
.github/workflows/ipynb_tests.yml |
Adds schema validation before notebook tests. |
.github/skills/validate-notebooks/SKILL.md |
Documents schema, execution, and paired-content checks. |
.github/skills/validate-notebooks/scripts/validate_notebooks.py |
Implements read-only batch schema validation. |
.github/skills/review-pr/SKILL.md |
Guides evidence-based reviews and bounded reporting. |
.github/skills/review-design-content/SKILL.md |
Guides checks of technical claims, assumptions, and tradeoffs. |
.github/skills/create-pr/SKILL.md |
Defines scoped validation and approval-aware publishing steps. |
Review effort: Balanced
Check ID uniqueness after raw schema validation. Verify both valid modern notebooks and rejected duplicate IDs, missing/null modern cells, and continuation to later batch inputs. All five validator tests, seven subtests, and 17 real notebook schemas pass locally. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7411b498-db61-4f72-8629-4af2b007c3a4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Purpose
Give contributors focused agent workflows for this repository without adding an orchestration framework or new dependencies. All new instructions and code were written for this repository.
Changes
AGENTS.mdwith shared editing expectations and links to the skills.The skills cover evidence-based findings, paired content, numerical assumptions, tradeoffs, explicit publishing approval, and honest reporting of validation limits.
Validation
copilot skill list --jsondiscovers and enables all four project skills;copilot instruction listdiscoversAGENTS.md.git diff --checkpasses.Independent of #73. No articles, notebooks, saved outputs, or dependency manifests change. Skills provide guidance; they do not prove design correctness or enforce every instruction.