视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
create-paper-skills【文档与办公】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 run config; ask for missing paper, repo, recovery, r…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
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:
Q from paper understanding and module planning,
including non-goals and verification targets.Q in paper evidence X, with source/version provenance,
implementation-evidence boundaries, exclusions, and assumptions.G_tilde, including module boundaries,
references, scripts, links, and recovery interfaces.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.create-repo-skill instead.paper-skills-distiller.Before source downloads, environment setup, or recovery, identify these fields from the prompt or config. Ask only for values that cannot be inferred safely:
config_path: preferred path to a filled TOML config.workspace_root: workspace that will contain distillation and generated-skill
outputs.paper_source: local PDF/text path, direct PDF URL, arXiv URL/id, or paper
title.paper_slug: stable snake_case id for this paper/version.original_repo_source: local repo path, Git URL, none, or unknown.source_acquisition: whether remote paper/repo sources may be
downloaded/cloned and whether title top hits may be selected automatically.repo_discovery_mode: ask, auto, or disabled when
original_repo_source is unknown. Default is ask.generated_skills_root: output root for generated module skills.attempt_dir or permission to use the default distillation directory:
<workspace_root>/<paper_slug>/distillation.recovery_target: dataset, split, metric, target value, and whether the
agent should propose the fastest faithful target first.recovery_mode: hard or soft; default is hard.runtime_constraints: model path, environment path, GPU ids, network/API
setup, and environment mutation rules.iteration_budget: maximum refine cycles after the first recovery. Default
is 10; the user may set any non-negative integer.language_preference: language for final user summaries. Generated skill
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.
Ask before proceeding when:
original_repo_source is unknown, repo_discovery_mode is ask, and the
next step would search for an implementation repo.hard.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.
../paper-skills-distiller/SKILL.md.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.
../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.../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.../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/.../plan-paper-skill-modules/scripts/validate_module_plan.py. Do not perform
heavyweight model, package, dataset, or GPU probing before this succeeds.../create-paper-module-skill/SKILL.md. Convert each module document into a
generated skill under generated_skills_root.../create-paper-module-skill/scripts/validate_skill_tree.py --run-tests and save a
JSON log under generated_skills_validation/.../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.../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.recovery/experiment_validation.json.../analyze-paper-recovery/SKILL.md. Write analysis/analysis_report.json and
analysis/feedback.md.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.final_validation.json.../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.<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.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.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.hard mode must not accept proxy, toy, reduced, fallback, cache-only, or
smaller-model recovery as success.soft mode may accept reduced/proxy recovery only when it is explicit,
justified, executable, mechanism-checked, and validator-approved.blocked merely because the active Python lacks packages
(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.By the end, the user should have:
generated_skills_root.reports/final/final_report.md and reports/final/final_report.json,
alongside any verification or generated-skill review reports under
reports/.researcher-handoff.md with exact live paths.