Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计未展示

ppw%3arepo-to-paperppw%3arepo 到纸上

Agent Skill

ppw%3arepo-to-paper 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

384

周安装

16

GitHub Stars

280

下载量

128
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ppw%3arepo-to-paper(ppw%3arepo 到纸上)
来源仓库:https://github.com/lylll9436/paper-polish-workflow-skill
仓库路径:skills/ppw%3Arepo-to-paper
安装命令:
npx skills add https://github.com/lylll9436/paper-polish-workflow-skill --skill ppw:repo-to-paper
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lylll9436/paper-polish-workflow-skill --skill ppw:repo-to-paper

简介

ppw%3arepo-to-paper 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于研究检索类任务,支持将代码仓库内容转化为学术论文格式。
  • 可通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Purpose

This Skill scans a Python ML experiment repository and generates a hierarchical paper outline (H1/H2/H3) with user approval checkpoints at each heading level. It serves researchers who have completed experiments and need to structure findings into an academic paper. The scan categorizes repo files using patterns from references/repo-patterns.md, then progressively generates headings from coarse (sections) to fine (sub-subsections), with the user confirming or modifying each level before proceeding. After H2 confirmation, the Skill automatically collects academic references via Semantic Scholar MCP and saves them as per-section ref files for downstream body generation.

Trigger

Activates when the user asks to:

  • Generate a paper structure, outline, or skeleton from a repository or codebase
  • Scan a project and create paper sections from experiment code or results
  • 从实验仓库/代码仓库生成论文大纲或论文结构

Example invocations:

  • "Generate a paper outline from my repo"
  • "帮我从实验仓库生成论文大纲"
  • "Scan my project and create paper structure"
  • "把我的代码仓库转成论文框架"

Modes

ModeDefaultBehavior
guidedYesFull 5-step workflow with confirmation at each heading level and section-by-section body generation
directNot supported -- outline generation inherently requires user validation at each level
batchNot supported -- each repo requires unique analysis

Default mode: guided. The layered confirmation design is central to this Skill.

References

Required (always loaded)

FilePurpose
references/repo-patterns.mdFile categorization patterns and section mapping rules
references/bilingual-output.mdBilingual output format (Skill is bilingual-eligible)
references/body-generation-rules.mdAnti-hallucination rules, citation integration, bilingual format, references.bib algorithm
references/journals/ceus.mdCEUS journal formatting contract (writing style, section guidance)

Leaf Hints

None. All reference files are in required because Step 5 body generation always needs CEUS formatting.

Loading Rules

  • Load repo-patterns.md and bilingual-output.md at Step 1 start.
  • Load body-generation-rules.md and journals/ceus.md at Step 5 start.
  • If journal template file is missing, refuse: "Journal template for [X] not found. Available: CEUS."

Ask Strategy

Before starting, ask about:

  1. Repo path (required): "Which repository should I scan?" -- use Structured Interaction if available
  2. Target journal (optional): "Which journal is this paper targeting?" -- options: CEUS, Other, None/General. If CEUS, load template at Step 2. If Other, ask for journal name. If None, use IMRaD default

Bilingual mode: Inferred from trigger text. Check for opt-out keywords per references/bilingual-output.md (exact phrases: english only, no bilingual, only english, 不要中文). Do not ask explicitly.

Rules:

  • Never ask more than 2 explicit questions (repo path + journal)
  • In direct mode, skip -- but direct mode is not supported for this Skill

Workflow

Step 0: Workflow Memory Check

  • Read .planning/workflow-memory.json. If file missing or empty, skip to Step 1.
  • Check if the last 1-2 log entries form a recognized pattern with ppw:repo-to-paper that has appeared >= threshold times in the log. See skill-conventions.md > Workflow Memory > Pattern Detection for the full algorithm.
  • If a pattern is found, present recommendation via AskUserQuestion:

- Question: "检测到常用流程:[pattern](已出现 N 次)。是否直接以 direct 模式运行 ppw:repo-to-paper?" - Options: "Yes, proceed" / "No, continue normally"

  • If user accepts: set mode to direct, skip Ask Strategy questions.
  • If user declines or AskUserQuestion unavailable: continue in normal mode.
  • Note: This Skill does not support full direct mode. If user accepts the recommendation, skip the Ask Strategy questions (repo path, journal) using inferred context, but retain all guided Step checkpoints (Steps 2-5 confirmations). The output contract is not altered.

Step 1: Scan Repository

Prepare:

  • Load references/repo-patterns.md and references/bilingual-output.md
  • Read the repository directory structure (top 2 levels: root + first-level subdirectories)
  • Categorize each file using the File Identification Patterns table from repo-patterns.md
  • Apply ambiguity rules for files matching multiple categories (lowest priority number wins)
  • Skip hidden files, test files, and binary data files per the Skip Rules in repo-patterns.md

Present:

  • Display a categorized summary table: Category Files Found Key Items documentation 3 README.md, docs/overview.md results 5 results/metrics.csv, scores.json
  • Mark missing categories: "No [category] files found"
  • Summary line: "Scanned N files in M categories. Proceeding to H1 outline generation..."
  • If user wants to review or correct, they can interrupt; otherwise auto-proceed to Step 2
  • Record workflow: Append {"skill": "ppw:repo-to-paper", "ts": "<ISO timestamp>"} to .planning/workflow-memory.json. Create file as [] if missing. Drop oldest entry if log length >= 50.

Step 2: Generate H1 Outline

Prepare:

  • If journal specified (e.g., CEUS), load references/journals/[journal].md and use its Section Guidance headings as H1 structure. CEUS sections: Abstract, Introduction, Study Area / Data / Methods, Results, Discussion, Conclusion
  • If no journal specified, use IMRaD default: Introduction, Methods, Results and Discussion, Conclusion
  • Adjust base sections based on scan summary (e.g., add "Study Area" if spatial data detected)

Present:

  • Display H1 headings with one-sentence descriptions: # 1. Introduction Establish research context, literature gap, and contribution statement. # 2. Methods Describe the analytical approach, data sources, and model architecture.
  • Bilingual: if bilingual mode is ON, add Chinese translation of each description using Markdown blockquote format: > **[Chinese]**... per references/bilingual-output.md
  • Summary line: "Generated N H1 sections. Please confirm, modify, or add before proceeding to H2."
  • Wait for user confirmation ("ok") or modification instructions

On modification: Revise H1 headings per user feedback and re-display. Loop until confirmed.

Section adjustment examples:

  • If scan found spatial data files (shapefiles, GeoJSON) -> consider adding "Study Area" H1 section
  • If scan found no result files -> mark Results section with warning placeholder
  • If scan found multiple distinct model implementations -> consider splitting Methods into sub-approaches

Step 3: Generate H2 Outline

Prepare:

  • For each confirmed H1 section, read relevant repo files to generate H2 sub-headings
  • Use the Category to Paper Section Mapping from repo-patterns.md to identify which files inform each H1 section
  • Read actual file contents (README for Introduction, config files for Methods, result files for Results) -- H2 generation requires content reading, not just directory structure
  • Generate 2-4 H2 sub-headings per H1 section, each with a one-sentence description

Present:

  • Display full H1 + H2 hierarchy with source annotations on each H2: # 1. Introduction ## 1.1 Research Background and Motivation <- from: README.md Urban heat island measurement requires fine-grained spatial analysis approaches. ## 1.2 Literature Gap and Contribution <- from: README.md Existing methods lack integration of street-level semantics with thermal data.
  • Source annotations: list the 1-3 most directly relevant files (highest-priority per repo-patterns.md)
  • Bilingual: if ON, add Chinese descriptions in > **[Chinese]**... blockquote format
  • Same confirmation loop as Step 2: "Generated N H2 subsections across M H1 sections. Please confirm, modify, or add before proceeding to H3."

Step 2.5: Literature Collection

Pre-flight:

  • Call mcp__semantic-scholar__papers-search-basic with {"query": "test", "limit": 1}
  • If call succeeds: proceed to literature collection below
  • If call fails or tool unavailable: skip Step 2.5 entirely

- Insert [CITATION NEEDED] after each H2 subsection description in the outline - Display: "Semantic Scholar MCP not available. Skipping literature collection. [CITATION NEEDED] markers added." - Proceed directly to Step 4 (H3 generation)

Collect references:

FOR each H1 section: FOR each H2 subsection under this H1: 1. Derive search query: extract 2-5 key technical terms from the H2 title and description, contextualized by the H1 section title. Use English terms only (ignore Chinese translations in bilingual mode). Strip filler words (and, of, the, for). Example: H1="Methods", H2="Gradient Boosting Prediction Framework", description="Feature engineering using street-level semantic segmentation data" -> query: "gradient boosting prediction street-level semantic segmentation" 2. Call mcp__semantic-scholar__papers-search-basic with {"query": derived_query, "limit": 10} 3. For each result where the abstract field is empty: call mcp__semantic-scholar__get-paper-abstract with the paper's paperId. If abstract is still empty after fetch, mark as "Abstract not available" 4. Filter results by relevance: assess how many distinct claims/arguments the H2 subsection needs to make, then keep 5-10 papers that best support those claims. Discard papers that are only tangentially related based on title and abstract content 5. Display progress line: ✓ 1.1 Research Background: 8 refs found (or ⚠ 1.1 Research Background: 0 refs found for zero results) 6. If a search call fails mid-batch: mark that H2 as [CITATION NEEDED], display warning, continue to next H2 END FOR END FOR

Write ref files:

Create {repo_path}/.paper-refs/ directory. Write one Markdown file per H1 section, named by the section topic in lowercase (e.g., introduction.md, methods.md, results.md).

Each file uses this structure:

# [H1 Section Title] - References

## [H2 Number] [H2 Subsection Title]

### [FirstAuthor] et al. ([Year])
**Title:** [Full title from MCP]
**Authors:** [Author1; Author2; ...]
**Year:** [YYYY] | **Citations:** [N]
**Relevance:** [[H2 number] [H2 subsection title]]
[One-sentence explanation of why this paper is relevant to this subsection]

> [Abstract summary: 1-2 sentences from MCP abstract data. If abstract not available, write "Abstract not available"]

@article{[citationkey], ...}

BibTeX rules (reuse literature-skill patterns):

  • Citation key format: firstAuthorLastnameLowercaseYYYYfirstKeyword (e.g., smith2023urban)
  • Entry type: @article for journal, @inproceedings for conference, @misc for preprints (follow MCP paper type)
  • All BibTeX fields MUST come from MCP-returned data. If a field is not in the MCP response, OMIT it
  • If DOI missing, add comment: % DOI not available -- verify manually
  • Never fill missing fields from prior knowledge

Duplicate handling: allow same paper to appear in multiple section files. Each file is self-contained.

Display summary table:

After all H2 subsections processed, display:


| Section | Subsection | Refs | Top Reference |
| --- | --- | --- | --- |
| 1. Introduction | 1.1 Research Background | 8 | Smith et al. (2023) - 142 citations |
| ... | ... | ... | ... |

Total: [N] references collected. Confirm to proceed to H3 outline generation.

Wait for user confirmation before proceeding to Step 4.


Step 4: Generate H3 Outline

Prepare:

  • For each confirmed H2 subsection, read deeper file contents to generate H3 sub-sub-headings
  • H3 captures specific technical details: individual model components, specific metrics,

particular datasets, analysis steps

  • Not every H2 needs H3 -- generate only where repo content supports further breakdown

(typically Methods and Results). Generate 0-3 H3 entries per H2 subsection

Present:

  • Display full H1 + H2 + H3 hierarchy with source annotations on H3 entries:

## 1.1 Research Background and Motivation

### 1.1.1 Urban Heat Island Measurement Challenges <- from: README.md:L15-30

Current approaches to UHI measurement rely on satellite imagery with limited resolution.

  • Bilingual: if ON, add Chinese descriptions in > **[Chinese]** ... blockquote format
  • Same confirmation loop as Step 2: "Generated N H3 sub-subsections. Please confirm, modify,

or add. This completes the outline structure."


Step 5: Body Generation

Step 5 auto-continues in the same session after H3 confirmation. It uses the H3 outline already in memory -- does not re-read paper_outline.md.

Prepare:

  • Load references/body-generation-rules.md and references/journals/ceus.md
  • Check if {repo_path}/.paper-refs/ exists. If missing: note that all citation positions will use [CITATION NEEDED]
  • Create {repo_path}/.paper-output/ directory if it does not exist

Section selection:

  • Display all H1 sections via AskUserQuestion (multiSelect):

AskUserQuestion({question: "Which sections should I generate body text for?", options: [{label: "1. [H1 title]", description: "[H2 subsection summary]"},...one option per H1 section from confirmed outline]})
  • User selects which sections to generate in this session

Generation loop (for each selected H1 section, sequentially):

  1. Read relevant repo files using the Category to Paper Section Mapping from references/repo-patterns.md
  2. Read {repo_path}/.paper-refs/{section}.md if it exists -- extract \cite{key} citation keys
  3. Generate full section .tex content following ALL rules in references/body-generation-rules.md:

- \section{}, \subsection{}, \subsubsection{} LaTeX heading commands from confirmed H2/H3 structure - Academic prose following CEUS writing style from references/journals/ceus.md - \cite{key} inline citations (keys from .paper-refs/ only; [CITATION NEEDED] for unsupported claims) - [SOURCE: file:line] annotations on all repo-derived claims (specific numbers, configs, model names) - [RESULTS NEEDED] / [EXACT VALUE: metric] for unknown quantitative data - Bilingual: % --- Paragraph N --- markers + % Chinese comment lines before each English paragraph (skip if opt-out detected)

  1. Write to {repo_path}/.paper-output/{section}.tex
  2. Display the generated section content to the user
  3. AskUserQuestion for confirmation:

AskUserQuestion({question: "Section [N]: [Title] generated. Please review above.", options: [{label: "Confirm", description: "Accept this section and proceed to next"}, {label: "Modify", description: "Describe changes needed (will regenerate entire section)"}, {label: "Skip", description: "Skip this section, move to next"}]})
  • Confirm: proceed to next selected section
  • Modify: user describes changes -> regenerate entire section -> re-display -> loop until confirmed
  • Skip: move to next section without writing file

After all selected sections confirmed:

  • Generate references.bib following the algorithm in references/body-generation-rules.md
  • Display completion summary: number of sections generated, files written, references.bib entry count

Output Contract

OutputFormatCondition
scan_summaryCategorized summary tableAlways -- Step 1
paper_outlineHierarchical H1/H2/H3 with descriptions and source annotationsAfter all steps confirmed
literature_refsPer-section Markdown files in {repo_path}/.paper-refs/ with reference cardsAfter Step 2.5 (skipped if MCP unavailable)
body_textPer-H1 .tex files in {repo_path}/.paper-output/ + references.bibAfter Step 5 sections confirmed

Bilingual eligibility: This Skill produces academic text (one-sentence heading descriptions). Bilingual mode is ON by default; opt-out via keywords in references/bilingual-output.md.

After final H3 confirmation, offer to save the complete outline to a file using Write tool:

  • Default filename: paper_outline.md in the repo root
  • Include all heading levels with descriptions and source annotations
  • Bilingual descriptions included if bilingual mode is ON

Edge Cases

SituationHandling
Empty repository (no recognized files)Refuse: "No scannable files found in [path]. Please verify the repository path."
No README.md foundWarn in scan summary; proceed with available files; Introduction H2 will have limited source annotations
No result files foundWarn in scan summary; Results H2/H3 use placeholder: "[RESULTS NEEDED: add result files to populate this section]"
Journal specified but template missingRefuse: "Journal template for [X] not found. Available: CEUS."
Non-Python repoWarn: "Scan patterns are calibrated for Python ML projects. Non-Python files may be miscategorized." Proceed with best-effort
Very large repo (>500 files in top 2 levels)List only top 10 files per category in scan summary; note total count
All files in one categoryProceed -- outline may be unbalanced; user corrects at confirmation step
Semantic Scholar MCP unavailableSkip Step 2.5; insert [CITATION NEEDED] markers in outline; proceed to Step 4
Zero search results for an H2Display warning with ⚠ prefix; mark H2 as [CITATION NEEDED]; continue to next H2
MCP call fails mid-batchMark that specific H2 as [CITATION NEEDED]; continue with remaining H2 subsections
Springer papers with empty abstractsCall get-paper-abstract; if still empty, display "Abstract not available" in ref card; still include paper
.paper-refs/ directory missingContinue generating; all citation positions use [CITATION NEEDED] placeholders; do not block
User selects zero sections in Step 5Skip body generation entirely; display "No sections selected. Body generation skipped."
Modification loop exceeds 3 iterationsProceed with current version; warn "Multiple revision cycles detected. Consider manual editing for fine adjustments."

Fallbacks

ScenarioFallback
Structured Interaction unavailableAsk repo path and journal as plain-text questions
references/repo-patterns.md missingRefuse: "Required reference file references/repo-patterns.md not found. Cannot categorize repo files."
references/bilingual-output.md missingProceed with English-only output; warn user
Journal template missingRefuse with message from Edge Cases
Write tool unavailablePresent final outline in conversation; user saves manually
Semantic Scholar MCP unavailableSkip Step 2.5 entirely; add [CITATION NEEDED] after each H2 description; warn user; proceed to H3 generation
references/body-generation-rules.md missingRefuse: "Required reference file references/body-generation-rules.md not found. Cannot generate body text."

Examples

Minimal invocation: User provides repo path ~/projects/uhi-prediction/ and selects CEUS as target journal.

Step 1 output (scan summary):


| Category | Files Found | Key Items |
| --- | --- | --- |
| documentation | 2 | README.md, docs/data-sources.md |
| config | 3 | config.yaml, params.json,.env.example |
| results | 4 | results/metrics.csv, results/ablation/ |
| code | 8 | src/model.py, src/train.py, src/eval.py |
| figures | 3 | figures/heatmap.png, figures/scatter.svg |
| dependencies | 1 | requirements.txt |

Scanned 21 files in 6 categories. Proceeding to H1 outline generation...

Step 2 output (H1 with CEUS template):


# 1. Introduction

Establish the urban heat island prediction problem and contribution.

[Chinese] 阐述城市热岛预测问题及本研究贡献。

# 2. Study Area and Data

Describe the geographic scope and data sources for UHI analysis.

[Chinese] 描述研究区域范围及城市热岛分析的数据来源。

# 3. Methods

Present the gradient boosting prediction framework and feature engineering.

[Chinese] 介绍梯度提升预测框架与特征工程方法。

# 4. Results

Report prediction accuracy and spatial pattern analysis.

[Chinese] 报告预测精度与空间格局分析结果。

# 5. Discussion

Interpret findings in the context of urban planning and prior UHI studies.

[Chinese] 在城市规划和既有热岛研究背景下解读发现。

# 6. Conclusion

Summarize contributions and identify limitations.

[Chinese] 总结贡献并指出局限性。

Generated 6 H1 sections. Please confirm, modify, or add before proceeding to H2.

User confirms. Steps 3-4 follow the same pattern with increasing detail and source annotations.


*Skill: repo-to-paper-skill* *Conventions: references/skill-conventions.md*

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.81%
按下载量换算43

Claude

28.89%
按下载量换算37

Cursor

18.29%
按下载量换算23

Gemini CLI

9.74%
按下载量换算12

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills