Add pyem-model-generator skill with templates and offline references#20
Open
shawnrhoads wants to merge 14 commits into
Open
Add pyem-model-generator skill with templates and offline references#20shawnrhoads wants to merge 14 commits into
shawnrhoads wants to merge 14 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new pyem-model-generator skill intended to scaffold standalone pyEM-style model modules and parameter-recovery notebooks using bundled offline reference specs/templates.
Changes:
- Introduces bundled reference specs for RL/Bayes/GLM anchors (
references/*.json) to drive generation. - Adds Python and notebook templates (
model-file-template.py,modelclass-utils-template.py,example-notebook-template.json) plus offline documentation for runtime/notebook contracts. - Adds skill-facing docs (
SKILL.md,README.md) describing the generation workflow and required clarifications.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| skills/pyem-model-generator/references/rl.json | RL anchor spec describing required fields/imports/outputs for generated RL models. |
| skills/pyem-model-generator/references/bayes.json | Bayes anchor spec describing required fields/imports/outputs for generated Bayes models. |
| skills/pyem-model-generator/references/glm.json | GLM anchor spec describing required fields/imports/outputs for generated GLM models. |
| skills/pyem-model-generator/references/modelclass-utils-template.py | Shared utils template intended to be emitted alongside generated model modules. |
| skills/pyem-model-generator/references/model-file-template.py | Per-model Python module template (mod_desc/spec/id + sim/fit contracts). |
| skills/pyem-model-generator/references/example-notebook-template.json | Notebook cell template for simulation → fit → recovery plotting. |
| skills/pyem-model-generator/references/parameter-recovery-notebook.md | Offline reference describing required notebook sections and plots. |
| skills/pyem-model-generator/references/pyem-runtime-contract.md | Offline contract describing expected runtime interfaces for generated code. |
| skills/pyem-model-generator/SKILL.md | Skill definition and generation rules/workflow. |
| skills/pyem-model-generator/README.md | User-facing documentation for what the skill generates and how to prompt it. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…te.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…te prior contract Agent-Logs-Url: https://github.com/shawnrhoads/pyEM/sessions/3f8576e3-eeb1-4323-92d6-bd7d64320b62 Co-authored-by: shawnrhoads <24925845+shawnrhoads@users.noreply.github.com>
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.
Motivation
pyempackage is not available.Description
skills/pyem-model-generatorwithREADME.mdandSKILL.mdthat explain usage, required clarifications, free-text parsing, and generation workflow.references/example-notebook-template.jsonto drive code and notebook generation.references/rl.json,references/bayes.json,references/glm.json) and generation helpers (references/model-file-template.py,references/modelclass-utils-template.py).references/pyem-runtime-contract.mdandreferences/parameter-recovery-notebook.mdto specify runtime contracts and notebook plotting requirements.Testing
*_sim, run*_fit) that can be wired into CI for future automated validation.Codex Task