Create paper skills

From VectorSpaceLab/AREX-Skill · View interactive version

Create paper skills is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Creates reusable Agent Skills from an AI research paper using the Paper2Skills Distiller workflow. Use in Creator mode when the user provides a paper PDF, paper URL, arXiv id, paper title, or paper/repo pair, or asks to convert a scientific paper into skills with recovery experiments. Prefer a TOML

How to use this skill

Skill file

Create Paper Skills

Purpose

Use this skill as the DisCo entry point for paper-to-skill construction in

Creator mode. It wraps the Paper2Skills Distiller workflow in the same peer

role that create-repo-skill plays for repository/package construction: collect

the input contract, route to the correct workflow skills, validate artifacts,

run at least a meaningful recovery smoke experiment when allowed, and produce

reusable module-level skills.

Prefer a filled TOML config over free-form prompt fields. The reusable template

is bundled at assets/distiller-run-config-template.toml; a longer reusable

agent prompt is bundled at assets/standard-distiller-run-prompt.md.

Distillation Anchor And Stages

Treat the paper, and any explicitly permitted implementation evidence, as the

source anchor z for task-agnostic distillation. If the user instead starts

from a concrete recovery or replication task, record the task anchor as

tau = (q, D, E, g) and classify the run as task-oriented. Do not invent a task

tuple for a paper-only request.

Organize the run as the same four stages used by distill-ml-knowledge:

  1. Scope the capabilities Q from paper understanding and module planning,

including non-goals and verification targets.

  1. Ground Q in paper evidence X, with source/version provenance,

implementation-evidence boundaries, exclusions, and assumptions.

  1. Construct candidate module graph G_tilde, including module boundaries,

references, scripts, links, and recovery interfaces.

  1. Verify the candidate into accepted graph G and construction record R

through module validation, executable recovery, analysis, refinement, final

validation, deployment review, and handoff. A paper-only run uses

representative recovery/operating checks; it does not claim a task-level

outcome that was not part of the anchor.

Workflow Classification

create-repo-skill instead.

paper-skills-distiller.

repository as pre-recovery evidence only. Recovery must not read it.

flows are plausible, ask one concise clarification before starting.

Required Input Contract

Before source downloads, environment setup, or recovery, identify these fields

from the prompt or config. Ask only for values that cannot be inferred safely:

outputs.

title.

downloaded/cloned and whether title top hits may be selected automatically.

original_repo_source is unknown. Default is ask.

<workspace_root>/<paper_slug>/distillation.

agent should propose the fastest faithful target first.

setup, and environment mutation rules.

is 10; the user may set any non-negative integer.

artifacts stay in English.

If no config_path is supplied, create or request one based on

assets/distiller-run-config-template.toml when the run is more than a quick

one-off. For batch work, require a TOML config with one [[runs]] entry per

paper.

Clarification Triggers

Ask before proceeding when:

next step would search for an implementation repo.

candidate is not clearly tied to the paper.

expensive recovery; read the paper first, propose the fastest faithful target,

and ask for confirmation.

might be acceptable; otherwise default to hard.

evidence.

Required Workflow

Use the agent's todo/task-list mechanism for visibility. If workflow or

subagent facilities are available, use them only where they help parallelize

module skill generation or review; ordinary sequential Distiller stages do not

require workflow orchestration.

  1. Load this skill and, for detailed rules, load

../paper-skills-distiller/SKILL.md.

  1. Validate the user input. If config_path exists, run:
python <skills_root>/paper-skills-distiller/scripts/read_run_config.py \
  <config_path> \
  --output <workspace_root>/distiller_run_config.normalized.json

For one run in a batch, also write a selected normalized run JSON with

--slug <paper_slug> --run-only.

  1. Resolve remote or title-based sources before distillation initialization. Prefer

../paper-skills-distiller/scripts/resolve_sources.py for local paths,

direct URLs, arXiv ids/URLs, arXiv title search, Git repo URLs, and bounded

GitHub repo discovery when repo_discovery_mode=auto. Record acquisition

evidence, candidates, selected URLs, clone commands, and blockers.

  1. Initialize the distillation directory with

../paper-skills-distiller/scripts/init_run.py, preserving

iteration_budget, recovery_mode, generated_skills_root, resolved

paper_path, optional resolved original_repo_path, and selected

normalized run config.

  1. Load ../plan-paper-skill-modules/SKILL.md. Extract/read the paper, create

paper_profile.md, module_plan.json, and no more than five module

documents under modules/.

  1. Validate modularization with

../plan-paper-skill-modules/scripts/validate_module_plan.py. Do not perform

heavyweight model, package, dataset, or GPU probing before this succeeds.

  1. Load ../create-paper-module-skill/SKILL.md. Convert each module document into a

generated skill under generated_skills_root.

  1. Validate every generated module skill with

../create-paper-module-skill/scripts/validate_skill_tree.py --run-tests and save a

JSON log under generated_skills_validation/.

  1. Load ../prepare-paper-recovery-env/SKILL.md. Create

environment/runtime_handoff.json and

environment/logs/command_log.json from bounded runtime probes and active

setup. When packages, model cache, datasets, or benchmark files are missing,

use the prepare-env isolated environment/data acquisition path before

deciding the stage is blocked.

  1. Load ../recover-paper-result/SKILL.md. Run the strongest feasible fast recovery

experiment allowed by recovery_mode and runtime_constraints, using only

allowed recovery sources. The recovery must exercise generated skills and

save executable command evidence.

  1. Run the recovery experiment validator and save

recovery/experiment_validation.json.

  1. Load ../analyze-paper-recovery/SKILL.md. Write analysis/analysis_report.json and

analysis/feedback.md.

  1. If analysis returns refine, update the relevant module docs, generated

skills, tests, runtime handoff usage, and recovery harness, then rerun

validation, recovery, and analysis until accepted or the configured

iteration_budget is exhausted.

  1. Run the final Distiller artifact validator and save final_validation.json.
  2. Write the organized final report with

../paper-skills-distiller/scripts/write_final_report.py, then validate

the reported stage. Final reports belong under

<attempt_dir>/reports/final/, not in the generated skill directory or a

top-level Distiller directory.

  1. If the run is accepted and the generated operating graph passes final

validation, assess the graph's reuse as a separate deployment decision.

Select project scope at <project-dir>/.agents/skills/ when the modules are

tied to this task, project layout, private data, evaluator, benchmark

instance, or runtime; also select project when cross-project reuse remains

uncertain. Select managed scope at ~/.disco/agent/skills/ only when the

complete module graph is self-contained, source/version/provenance backed,

independent of transient run state, verified on representative uses, and

expected to apply across projects or research tasks. Use the Creator

session's working directory as <project-dir> unless the user explicitly

selected another project. Keep all module skills in one scope.

  1. Present the reusability rationale, exact generated graph revision, selected

scope, all destination paths, entry skill, final validation evidence,

unresolved limits, collisions, and shadowing impact. Ask for approval of

that exact import. Any overwrite requires separate approval.

  1. After approval, resolve distill-ml-knowledge from the visible skill registry

and run its scripts/import_operating_skill_graph.mjs once with every

generated module skill root. Use `--scope project --project-dir

<project-dir> or --scope managed --agent-dir ~/.disco/agent` as approved.

Do not copy distillation, recovery, analysis, test, or report artifacts.

  1. Write researcher-handoff.md under the distillation directory with the task,

paper source/version, reuse rationale, selected scope, exact imported paths,

module skill ids, graph entry point, recovery and validation evidence, and

unresolved limits. Suggest /researcher only after import, or clearly state

that the skills remain staged when the user declines it.

Recovery Discipline

smaller-model recovery as success.

justified, executable, mechanism-checked, and validator-approved.

module docs, generated module skills, runtime handoff, datasets, and general

public package documentation only.

(torch, transformers, vllm, nltk, etc.), because no local model cache

exists, or because a dataset is absent locally. First run the allowed

preparation steps: create/reuse an isolated environment under

$DISCO_CODING_AGENT_DIR/envs/ or ~/.disco/agent/envs/, install the

smallest required packages with timeouts, attempt permitted bounded model or

dataset acquisition, and ask for missing credentials/permissions when they

are truly required.

least one data item, run at least one real training/inference/evaluation

command when the paper task involves runtime behavior, and save the trace.

primary recovery result must come from an executable command log.

Output Contract

By the end, the user should have:

final distillation contract.

alongside any verification or generated-skill review reports under

reports/.

when requested, and researcher-handoff.md with exact live paths.

blockers, recovery evidence, generated skill paths, and remaining gaps.

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.