Skip to content
All Skills

Manuscript As Code

Treat manuscripts as software: version control, reproducible builds, figure pipelines, CI, and structured repo layout. Helps teams avoid 'final_v7' chaos and ensures submission-ready artifacts.

Software Engineering|v1|Updated 7/14/2026|GitHub source
MCP get_skill({ skillId: "manuscript-as-code-0dc5c49e" })

Use this skill with your agent

Create a free account and connect via MCP

Get Started Free
# Manuscript as Code(论文工程化)

## 目标

把“写论文”升级成“交付可复现的出版工程”:
- 结构清晰:任何人进仓库都知道哪里改正文、哪里改图、哪里改引用
- 可复现:一条命令能构建 PDF/HTML;CI 自动验证
- 可审计:每张图/每个结果都有来源(代码/数据/参数)

适用:
- 多人协作写作(导师/合作者/跨机构)
- 反复投稿/返修(需要明确改动轨迹)
- 图表多、实验多、容易“找不到版本”的项目

---

## 推荐仓库结构(最小可行)

见 `templates/repo-structure.md`。核心思想:
- `manuscript/`:只放正文与引用(source-of-truth)
- `figures/`:每张图一个目录(source + out)
- `build/`:所有生成物(可删除,可再生)
- `submission/` 与 `revision/`:投稿与返修阶段产物

---

## 元规则(工程化的关键)

### 1) 生成物与源文件分离

- 源:`figures/fig-02/src/plot.py`
- 产物:`figures/fig-02/out/fig-02.pdf`
- 禁止把产物当源文件编辑(比如在 PDF 上涂改)

### 2) 每张图都要能“重生成”

最少要求:
- 一条命令 + 固定参数能导出最终图(PDF/TIFF)
- 记录依赖版本与随机种子(如果有)

### 3) 把“投稿约束”写成配置

推荐维护:
- `submission/submission-manifest.yml`(统一记录规格与完成度)

---

## 案例(推荐学习)

- Manubot:`manubot/rootstock`(论文的 CI/协作写作范式)
- Deep review:`greenelab/deep-review`(评审/返修视角)
#broad-capability#creative#documentation

Related Skills

More skills in Software Engineering

Accessibility Standards

Comprehensive web accessibility standards based on WCAG 2.2 AA, with 38+ anti-patterns, legal enforcement context (EAA, ADA Title II), WAI-ARIA patterns, and framework-specific fixes for modern web frameworks and libraries.

#github-copilot#accessibilityMIT

Accord

Authoring unified specification packages across Business/Development/Design teams via staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria). No code. Use when authoring cross-team specs, building L0-L3 packages, or aligning Biz/Dev/Design on a single source of truth.

#broad-capability#developmentMIT

Acquire Codebase Knowledge

Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document this architecture", "onboard me to this repo", or "create codebase docs". Do not trigger for routine feature implementation, bug fixes, or narrow code edits unless the user asks for repository-level discovery.

#github-copilot#documentationMIT

Acreadiness Assess

Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps `npx github:microsoft/agentrc readiness` and hands off rendering to the @ai-readiness-reporter custom agent. Supports policies (--policy) for org-specific scoring. Use when asked to assess, audit, or score the AI readiness of a repo.

#github-copilot#planningMIT

Acreadiness Generate Instructions

Generate tailored AI agent instruction files via AgentRC instructions command. Produces .github/copilot-instructions.md (default, recommended for Copilot in VS Code) plus optional per-area .instructions.md files with applyTo globs for monorepos. Use after running /acreadiness-assess to close gaps in the AI Tooling pillar.

#github-copilot#skillMIT

Acreadiness Policy

Help the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks, overriding impact/level, setting pass-rate thresholds, or chaining org baselines with team overrides. Use when the user asks about strict mode, AI-only scoring, custom weights, CI gating, or wants org-wide standardisation.

#github-copilot#planningMIT