From 76c6c87d4fe8662e71b1aa180747c2d20b4aab0b Mon Sep 17 00:00:00 2001 From: Timo Sachsenberg Date: Tue, 24 Mar 2026 20:07:17 +0100 Subject: [PATCH 01/16] Add design spec for AI contributor skills and validation pipeline Defines per-script directory structure, Claude Code skills (contribute-script, validate-script), AGENTS.md contributor guide, and GitHub Actions CI for validating pyopenms script contributions in isolated venvs. Co-Authored-By: Claude Opus 4.6 (1M context) --- ...2026-03-24-ai-contributor-skills-design.md | 134 ++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 docs/superpowers/specs/2026-03-24-ai-contributor-skills-design.md diff --git a/docs/superpowers/specs/2026-03-24-ai-contributor-skills-design.md b/docs/superpowers/specs/2026-03-24-ai-contributor-skills-design.md new file mode 100644 index 0000000..a86f90e --- /dev/null +++ b/docs/superpowers/specs/2026-03-24-ai-contributor-skills-design.md @@ -0,0 +1,134 @@ +# AI Contributor Skills & Plans — Design Spec + +## Purpose + +Define the skills, contributor docs, and CI pipeline that enable AI agents to contribute validated, self-contained pyopenms scripts to the agentomics repo. Every contribution must build against the latest pyopenms, resolve its own dependencies, and pass linting + tests in isolation. + +## Per-Script Directory Structure + +Every script is a self-contained package under `scripts///`: + +``` +scripts/proteomics/peptide_mass_calculator/ +├── peptide_mass_calculator.py +├── requirements.txt +├── README.md +└── tests/ + └── test_peptide_mass_calculator.py +``` + +Rules: + +- `requirements.txt` always includes `pyopenms` with no version pin (builds against latest) plus any script-specific dependencies +- Tests live inside each script's own `tests/` directory (not a top-level `tests/`) +- Each script is self-contained — no cross-script imports +- Tests use the `@requires_pyopenms` skip marker pattern (`pytest.mark.skipif`) +- Existing 7 scripts are migrated to this structure + +## Validation Pipeline + +For any given script directory, validation runs: + +```bash +python -m venv /tmp/validate_ +source /tmp/validate_/bin/activate +pip install -r