plan-paper-skill-modules
Analyze a local AI research paper, optionally using a local repository as supporting evidence, and produce a concise paper profile plus a validated module plan of at most five reusable skill modules.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- plan-paper-skill-modules
- metadata
- { "disco-role": "meta" }
- description
- Analyze a local AI research paper, optionally using a local repository as supporting evidence, and produce a concise paper profile plus a validated module plan of at most five reusable skill modules.
02 资源文件 2
- 脚本scripts/extract_paper_text.py1.5 KB
- 脚本scripts/validate_module_plan.py3.5 KB
03 SKILL.md 正文
Plan Paper Skill Modules
Use this skill after paper-skills-distiller has initialized an attempt directory. The goal is to identify the paper's transferable ideas and split them into no more than five modules that can become independent skills.
Write all artifacts in English.
Inputs
- Local paper path or extracted paper text.
- Optional local repository path.
- Attempt directory containing
run_manifest.json.
Output Artifacts
Write these files into the attempt directory:
paper_profile.mdmodule_plan.jsonmodules/<module_id>.mdfor every module
Workflow
- Extract or read the paper text. If the paper is a PDF, use
scripts/extract_paper_text.pyor another reliable parser. - Build
paper_profile.mdwith:- bibliographic identity if available
- problem statement
- core insight
- method components
- datasets and reported metrics
- expected fastest recovery experiment
- repository evidence, if a repo exists
- Inspect the repository only after understanding the paper. Use it to confirm names, scripts, data formats, and implementation details.
- Split the method into at most five modules. Prefer modules with separable contracts:
- data/protocol formatting
- retrieval/tool adapter
- core algorithm loop
- refinement/compression component
- evaluation/recovery harness
- For each module, write a markdown document describing:
- purpose
- inputs and outputs
- paper insight
- algorithm or workflow
- edge cases
- test strategy
- evidence from paper and repo
- Write
module_plan.jsonand validate it withscripts/validate_module_plan.py.
Cross-Module Contract Checks
While modularizing, identify which module outputs are consumed by later modules. State negative constraints explicitly in the module docs. Examples:
- A retrieval adapter returns evidence documents, not final answers.
- A document-refinement module returns concise evidence, not answer directives.
- A rollout controller records raw model generations and extracted final answers separately.
- An evaluation module owns answer extraction/canonicalization, not the retrieval or refinement module.
Module Plan Schema
Use this structure:
{
"schema_version": 1,
"paper_id": "short_slug",
"title": "Paper title",
"fast_recovery_target": {
"dataset": "dataset name",
"split": "split or subset",
"metric": "metric name",
"paper_value": 0.0,
"proxy": true,
"rationale": "why this is a faithful fast recovery"
},
"modules": [
{
"id": "stable_module_id",
"name": "Human readable module name",
"skill_name": "operating-skill-directory-name",
"summary": "One sentence.",
"inputs": ["input contract"],
"outputs": ["output contract"],
"insight": "The paper idea preserved by this module.",
"test_strategy": "How create-paper-module-skill should test it.",
"evidence": ["paper section, figure, table, or repo path"]
}
]
}
Acceptance Criteria
moduleslength is between 1 and 5.- Every module has a stable snake_case
idfor artifact filenames and a unique canonical lowercase-hyphenskill_nameof at most 64 characters for the generated operating skill directory and frontmatter name. - The plan covers the main paper method and the chosen recovery experiment.
- The split avoids thin modules that only wrap one helper unless the helper is a distinct paper contribution.
- The recovery target is explicit enough for
recover-paper-resultto run without the source repository.
Scripts
scripts/extract_paper_text.py: extract text from a PDF or copy text from a plain text file.scripts/validate_module_plan.py: validatemodule_plan.jsonand optional module docs.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).