Create paper module skill

From VectorSpaceLab/AREX-Skill · View interactive version

Create paper module skill is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Convert one paper module document into a production-quality English Agent Skill with scripts, tests, validation logs, and clear input/output contracts.

How to use this skill

Skill file

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

<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

  1. Read the module document and identify the exact reusable capability.
  2. Use the paper for method semantics. Use the repo only to confirm implementation details, argument names, data formats, or edge cases.
  3. Write SKILL.md with:
  1. Add scripts only for behavior that benefits from deterministic execution.
  2. Add tests or smoke checks that exercise the module in isolation.
  3. Run tests and save a validation JSON under the distillation directory's generated_skills_validation/.
  4. Validate the tree with scripts/validate_skill_tree.py.

Quality Rules

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.

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

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.