Install
openclaw skills install paper-code-joint-analysisJointly analyze a research paper and its open-source implementation. Use when a user wants to understand a paper through code, map theory/formulas/algorithms/experiments to real classes and methods, identify implementation details not disclosed in the paper, produce reproducibility commands and gaps, build explanatory diagrams or a static reader, or validate that an analysis covers both the paper and repository.
openclaw skills install paper-code-joint-analysisUse this skill to make the code an evidence layer for reading the paper. The output must help a reader answer: what the paper claims, where the code implements it, how each experiment is run, what the paper omits, and what to edit to change the proposed method.
Default user-facing language is Chinese. Keep paper titles, code identifiers, file paths, command names, class names, method names, and standard acronyms in their original form, but write reports, reader labels, explanations, validation notes, diagram legends, and omission analysis in Chinese unless the user explicitly requests another language.
The static reader is reusable code. Do not rewrite page logic for a new paper. New analyses must feed the same reader template through the stable artifact contract: analysis_bundle.json plus fixed-name Markdown files. If a new paper needs extra content, add it to the bundle fields or the fixed companion Markdown files rather than creating paper-specific JavaScript or HTML.
Every complete run must produce both human-readable Markdown artifacts and the fixed machine-readable bundle. The Markdown files are the learning record a person reads; analysis_bundle.json is the compact structured data that the reader template loads. Do not replace the Markdown reports with a webpage, and do not put long narrative analysis only in JSON.
For long outputs, do not try to bypass hard model/API limits. Prefer single files passed by path when they fit the active model/API budget; do not embed large content in shell commands. Use the chunk workflow in references/large-artifact-policy.md only when a file is too large to construct safely in one step or when OS/tool limits such as Windows command-line length are the blocker.
This skill is self-contained and module-driven. Do not invoke paper-toon-deep-reader at runtime. Its Gate-1 text-report quality bar has been internalized as a local module, so execution depends only on this skill's own SKILL.md, modules/, references/, scripts/, and assets/.
Use modules by concern:
modules/deep-reading-gate1.md: complete learning report depth for paper_reading_report.md.modules/question-led-code-reading.md: PDF ambiguity ledger and code-evidence status for paper_questions_for_code.md and analysis_bundle.json.paper_questions.modules/modify-method-guide.md: method-level extension points for proposing a new model or algorithm based on the paper.modules/fixed-artifacts-and-reader.md: fixed output files, reusable reader, formula rendering, and validation commands.Upgrade modules independently. If a future workflow changes only the reading standard, replace modules/deep-reading-gate1.md. If it changes output data shape, update references/analysis-bundle.schema.json, validators, reader template, and the schema version deliberately.
Intake and scope
Paper pass
modules/deep-reading-gate1.md plus references/deep-reading-overlay.md. The depth of paper_reading_report.md should align with a Gate-1-level text report, while excluding cartoon/storyboard/PDF stages.paper_reading_report.md paper-only: do not include repository paths, code line references, class/method mappings, or code-disclosed facts in this report. It is the standalone learning-oriented paper deep read.modules/question-led-code-reading.md and write a question ledger from the deep-reading report and PDF: what the paper does not say clearly, where formulas/objectives/model flow are underspecified, where statements appear inconsistent, and which experiment settings are missing. Store the human-readable version in paper_questions_for_code.md and the structured version in analysis_bundle.json.paper_questions.math blocks, but the static reader must render them as typeset formulas and hide the source unless rendering fails.Repository pass
Theory-to-code crosswalk
Experiment-by-experiment joint reading
Unreported implementation details
Diagrams and change guide
modules/modify-method-guide.md for the "modify the proposed method" guide. Focus on where to implement a new model or algorithm based on the paper framework, not on ordinary parameter tuning.Validation and iteration
references/output-contract.md.references/reader-data-contract.md.scripts/check_outputs.py <analysis_dir>.scripts/check_outputs.py on generated Markdown/JSON artifacts when available.Static reader
modules/fixed-artifacts-and-reader.md.scripts/build_static_reader.py <analysis_dir> --force instead of hand-writing a new page. For final visual delivery when network access is available, use scripts/build_static_reader.py <analysis_dir> --force --install-katex-fonts so the generated site/ includes local KaTeX WOFF2 fonts.site/index.html, site/assets/app.js, or site/assets/styles.css for the specific paper unless the reusable template itself is being improved for all future papers.paper_reading_report.md, paper_questions_for_code.md, formulas, theory-to-code mappings, experiment mappings, omissions, diagrams, modify guide, and validation status.scripts/check_reader.py or scripts/check_outputs.py reports encoding damage, fix the source artifact or template and rebuild before finalizing..ttf, .woff, or .woff2 font binaries in assets/reader-template/. When full local KaTeX typography is needed, install fonts into the generated output with scripts/build_static_reader.py <analysis_dir> --force --install-katex-fonts. This downloads WOFF2 files into site/vendor/katex/fonts/, outside the uploaded skill package.Read references/output-contract.md when creating final artifacts or auditing an existing analysis. Use its section names unless the user asks for another format.
Canonical machine-readable artifact:
analysis_bundle.json: must follow references/analysis-bundle.schema.json and validate with scripts/validate_bundle.py.Human-readable companion artifacts:
paper_reading_report.mdpaper_questions_for_code.mdpaper_code_crosswalk.mdexperiment_joint_reading.mdimplementation_omissions.mddiagrams.md or equivalent Mermaid/SVG assetsmodify_method_guide.mdvalidation_report.mdsite/index.html: generated by scripts/build_static_reader.py; this is a view over the bundle and Markdown artifacts.The web page is mandatory for complete analysis outputs unless the user explicitly asks not to create it. The page should be a view over analysis_bundle.json and the Markdown artifacts, not a replacement for them.
Stable reader data contract:
analysis_bundle.json on schema version paper-code-joint-analysis.v1 until a deliberate schema migration is made.analysis_bundle.json.paper_reading_report.md must be a complete paper-only learning report, not a short summary, dashboard copy, or code mapping. paper_questions_for_code.md must list the concrete questions raised by that deep read and how code evidence answers or fails to answer them._parts/<artifact_name>/ plus scripts/merge_markdown_parts.py; the final output filename must still be the fixed filename consumed by the reader.Internalized Gate-1 reading standard:
modules/deep-reading-gate1.md for rigorous text-report style: knowledge-dependency order, intuition -> formula/algorithm -> concrete example -> limitation, module input/output, figure/table interpretation, experiment-purpose analysis, reproducibility gaps, reviewer/defense lens, and teaching summary.paper-toon-deep-reader, and do not import cartoon-image, storyboard, or PDF assembly gates into this skill. If the user explicitly asks for a separate visual-storyboard workflow, treat that as a different skill workflow.paper_reading_report.md; use paper_questions_for_code.md, crosswalk, experiment reading, omissions, and diagrams for code evidence.\frac, \lambda, or \mathcal is not visible in normal rendered formula blocks.assets/reader-template/, scripts, README, and generated reader files for mojibake. Do not treat console encoding artifacts as success; read files as UTF-8 and inspect actual file bytes/text. Also scan the uploaded skill folder for .ttf, .woff, and .woff2; KaTeX fonts belong only in generated reader outputs, not in the ClawHub skill package.paper_reading_report.md as the full Gate-1-level paper-only learning report. It should usually be at least 12,000 Chinese/English characters for a normal research paper and must cover problem, assumptions, symbols, formulas, method components, algorithm/control flow, figures/tables, experiment design, paper-only ambiguities, reproducibility gaps visible from the paper, reviewer/defense lens, and teaching summary. If the paper is genuinely too short for that threshold, say why in validation_report.md.paper_questions_for_code.md as mandatory investigation scaffolding, not optional commentary. It must start from questions raised by the deep-reading report, including missing implementation details, ambiguous formulas/objectives, model/data-flow uncertainty, experiment settings, and apparent paper inconsistencies, then resolve or flag those questions with code evidence.modify_method_guide.md as a research-extension guide. It should say which core files/classes/functions define the method boundary for adding a new model or algorithm; it should not be a parameter-tuning guide.