Create Paper Module Skill
Use this skill for each module produced by plan-paper-skill-modules. The goal is to create one reusable skill directory for that module, not a paper-specific transcript.
All skill files and scripts must be in English.
Inputs
- Paper or extracted paper text.
paper_profile.md.
- The module's markdown document.
- Optional local repository, allowed only at this stage.
- Output skill root, usually
<workspace_root>/<paper_slug>/skills/<skill_name>/.
Required Output
Every generated module skill must contain:
<skill_name>/
SKILL.md
scripts/ # when deterministic behavior is needed
tests/ # recommended for non-trivial scripts
Its SKILL.md frontmatter must declare metadata.disco-role: operating so the
module is available in Researcher mode and excluded from Creator mode.
The <skill_name> directory basename and frontmatter name must match and use a
canonical lowercase-hyphen skill id of at most 64 characters so the verified
module can be installed by DisCo's operating-graph importer.
Avoid extra README files. Put operational guidance in SKILL.md and deterministic logic in scripts/.
Workflow
- Read the module document and identify the exact reusable capability.
- Use the paper for method semantics. Use the repo only to confirm implementation details, argument names, data formats, or edge cases.
- Write
SKILL.md with:
- frontmatter
name and description
- frontmatter
metadata.disco-role: operating
- when to use the skill
- inputs and outputs
- workflow
- validation or test commands
- limitations
- Add scripts only for behavior that benefits from deterministic execution.
- Add tests or smoke checks that exercise the module in isolation.
- Run tests and save a validation JSON under the distillation directory's
generated_skills_validation/.
- Validate the tree with
scripts/validate_skill_tree.py.
Quality Rules
- Keep the skill self-contained: a future agent run should not need the original repo to understand the module.
- Do not paste long paper excerpts.
- Prefer small Python scripts with pure functions and CLI entry points.
- Tests should use tiny fixtures, fake retrievers, or deterministic policies when real models are unavailable.
- Every non-empty generated module skill needs a real assertion-backed test or
smoke check. This applies in both
hard and soft recovery modes; soft mode
may lower the recovery target, but it does not waive single-skill validation.
- Tests must pass under
validate_skill_tree.py --run-tests even when pytest is not installed. Use plain assert test functions with no fixtures, marks, tmp_path, pytest.raises, or import pytest unless the skill explicitly declares and installs pytest as a runtime dependency. Prefer standard-library checks such as tempfile, try/except, and direct function calls.
- If a module requires an LLM or web search at runtime, provide an injectable interface and a fake implementation for tests.
- If a module output is consumed by another module, test that it does not emit downstream control markers outside its contract. For example, a document-refinement module should not emit
Final Answer: if its output is only meant to be injected as evidence.
- For prompt-separation skills, test for leakage of privileged-only markers, skill field names, hidden answers, and training-only sections. Do not treat ordinary task words, environment objects, or user-visible observations as leakage merely because the same words also appear in a skill.
- For trajectory-to-skill skills, distinguish
mistake_analysis from golden_workflow: the golden or ideal workflow should omit actions that directly caused error/invalid feedback unless the paper explicitly wants failed attempts retained. Add a regression test with a failed action followed by a corrective action.
- For QA evaluation modules, include tests for sentence-form answers, short-span extraction, aliases, and yes/no answers.
- Preserve the paper's insight, not its incidental code layout.
Validation
Run:
python <skills_root>/create-paper-module-skill/scripts/validate_skill_tree.py <skill_dir> --run-tests
Save the JSON output to:
<attempt_dir>/generated_skills_validation/<module_id>.json
Before considering the skill valid, inspect the saved JSON and confirm ok: true, tests.attempted: true, and tests.runner is acceptable. If the runner is simple, failures caused by pytest-only test syntax are skill authoring errors, not environment blockers. A validation JSON with tests.attempted: false blocks the paper workflow even if ok is true.
Scripts
scripts/create_skill_skeleton.py: create a minimal skill tree for a module.
scripts/validate_skill_tree.py: validate frontmatter, required files, scripts, and optional tests.
1---2name: create-paper-module-skill3description: "Convert one paper module document into a production-quality English Agent Skill with scripts, tests, validation logs, and clear input/output contracts."4metadata:5 source: https://skillmd.com/skills/vectorspacelab/create-paper-module-skill6 disco-role: meta7---89# Create Paper Module Skill1011Use this skill for each module produced by `plan-paper-skill-modules`. The goal is to create one reusable skill directory for that module, not a paper-specific transcript.1213All skill files and scripts must be in English.1415## Inputs1617- Paper or extracted paper text.18- `paper_profile.md`.19- The module's markdown document.20- Optional local repository, allowed only at this stage.21- Output skill root, usually22 `<workspace_root>/<paper_slug>/skills/<skill_name>/`.2324## Required Output2526Every generated module skill must contain:2728```text29<skill_name>/30 SKILL.md31 scripts/ # when deterministic behavior is needed32 tests/ # recommended for non-trivial scripts33```3435Its `SKILL.md` frontmatter must declare `metadata.disco-role: operating` so the36module is available in Researcher mode and excluded from Creator mode.37The `<skill_name>` directory basename and frontmatter `name` must match and use a38canonical lowercase-hyphen skill id of at most 64 characters so the verified39module can be installed by DisCo's operating-graph importer.4041Avoid extra README files. Put operational guidance in `SKILL.md` and deterministic logic in `scripts/`.4243## Workflow44451. Read the module document and identify the exact reusable capability.462. Use the paper for method semantics. Use the repo only to confirm implementation details, argument names, data formats, or edge cases.473. Write `SKILL.md` with:48 - frontmatter `name` and `description`49 - frontmatter `metadata.disco-role: operating`50 - when to use the skill51 - inputs and outputs52 - workflow53 - validation or test commands54 - limitations554. Add scripts only for behavior that benefits from deterministic execution.565. Add tests or smoke checks that exercise the module in isolation.576. Run tests and save a validation JSON under the distillation directory's `generated_skills_validation/`.587. Validate the tree with `scripts/validate_skill_tree.py`.5960## Quality Rules6162- Keep the skill self-contained: a future agent run should not need the original repo to understand the module.63- Do not paste long paper excerpts.64- Prefer small Python scripts with pure functions and CLI entry points.65- Tests should use tiny fixtures, fake retrievers, or deterministic policies when real models are unavailable.66- Every non-empty generated module skill needs a real assertion-backed test or67 smoke check. This applies in both `hard` and `soft` recovery modes; soft mode68 may lower the recovery target, but it does not waive single-skill validation.69- Tests must pass under `validate_skill_tree.py --run-tests` even when `pytest` is not installed. Use plain `assert` test functions with no fixtures, marks, `tmp_path`, `pytest.raises`, or `import pytest` unless the skill explicitly declares and installs pytest as a runtime dependency. Prefer standard-library checks such as `tempfile`, `try/except`, and direct function calls.70- If a module requires an LLM or web search at runtime, provide an injectable interface and a fake implementation for tests.71- If a module output is consumed by another module, test that it does not emit downstream control markers outside its contract. For example, a document-refinement module should not emit `Final Answer:` if its output is only meant to be injected as evidence.72- For prompt-separation skills, test for leakage of privileged-only markers, skill field names, hidden answers, and training-only sections. Do not treat ordinary task words, environment objects, or user-visible observations as leakage merely because the same words also appear in a skill.73- For trajectory-to-skill skills, distinguish `mistake_analysis` from `golden_workflow`: the golden or ideal workflow should omit actions that directly caused error/invalid feedback unless the paper explicitly wants failed attempts retained. Add a regression test with a failed action followed by a corrective action.74- For QA evaluation modules, include tests for sentence-form answers, short-span extraction, aliases, and yes/no answers.75- Preserve the paper's insight, not its incidental code layout.7677## Validation7879Run:8081```bash82python <skills_root>/create-paper-module-skill/scripts/validate_skill_tree.py <skill_dir> --run-tests83```8485Save the JSON output to:8687```text88<attempt_dir>/generated_skills_validation/<module_id>.json89```9091Before considering the skill valid, inspect the saved JSON and confirm `ok: true`, `tests.attempted: true`, and `tests.runner` is acceptable. If the runner is `simple`, failures caused by pytest-only test syntax are skill authoring errors, not environment blockers. A validation JSON with `tests.attempted: false` blocks the paper workflow even if `ok` is true.9293## Scripts9495- `scripts/create_skill_skeleton.py`: create a minimal skill tree for a module.96- `scripts/validate_skill_tree.py`: validate frontmatter, required files, scripts, and optional tests.