AgentSkillsCN

paper-gen

根据提取的风格,以 LaTeX 格式生成学术论文的各个部分(摘要、引言、方法、实验、结论、附录)。

SKILL.md
--- frontmatter
name: paper-gen
description: Generate academic paper sections (Abstract, Intro, Methods, Experiments, Conclusion, Appendix) in LaTeX format based on extracted style.
allowed-tools:
  - Read
  - Write
  - Glob
  - AskUserQuestion

Paper Content Generation Skill

Goal: Generate specific paper sections in valid LaTeX format using the extracted style and domain knowledge.

Prerequisite Check: Before proceeding, check if psmfiles/STYLE_GUIDE.md exists.

  • If MISSING: HALT immediately. Reply: "❌ Missing Style Assets. Please run /paper-extract-style first to build the knowledge base."
  • If FOUND: Proceed with the generation task.

Usage

User will specify the section to generate (e.g., "intro", "method", "abstract", "experiment", "conclusion", "appendix").

Context Loading

  1. Read psmfiles/STYLE_GUIDE.md (Style rules).
  2. Read psmfiles/lexicon_domain.md (Domain sentence bank).
  3. Read paper-gen/LEXICON.md (Logical skeletons).

Generation Tasks

1. Abstract

  • Input: Full draft or summary.
  • Structure: Follow 'Abstract/Logical Skeleton' in LEXICON.md.
  • Constraints:
    • Third-person passive voice.
    • No forbidden words (delve, underscore, realm, pivotal, intricate, meticulously, comprehensive).
  • Output: Save valid LaTeX to psmfiles/abstract.tex.

2. Introduction

  • Input: Problem, Method, Background.
  • Structure: Follow 'Introduction/Logical Skeleton' (Move 1-3 Model).
  • Constraints: Same as Abstract.
  • Output: Save valid LaTeX to psmfiles/section_intro.tex.

3. Methods

  • Input: Source code or algorithm description.
  • Role: "Ghostwriter" for the code.
  • Structure: Follow 'Methods/Logical Skeleton'.
  • Constraints: Same as Abstract.
  • Output: Save valid LaTeX to psmfiles/section_methods.tex.

4. Experiments

  • Input: Results, datasets, setup.
  • Structure: Follow 'Experiments/Logical Skeleton'.
  • Constraints: Same as Abstract.
  • Output: Save valid LaTeX to psmfiles/section_experiments.tex.

5. Conclusion

  • Input: Draft or outline.
  • Structure: Follow 'Conclusion/Logical Skeleton'.
  • Constraints: Same as Abstract.
  • Output: Save valid LaTeX to psmfiles/section_conclusion.tex.

6. Appendix

  • Input: Code, proofs, extra figures.
  • Structure: Follow 'Appendix/Logical Skeleton'.
  • Formatting: Strictly follow 'Appendix' style in STYLE_GUIDE.md.
  • Output: Save valid LaTeX to psmfiles/appendix.tex.