# research[START]

> research[START] is an Agent Skill for research published in the LMDHQ-0420/ResearchPilot-Skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

ResearchPilot 科研助手[入口]：入口路由

- Skill name: `research[START]`
- Category: [Research](https://www.openparable.com/skill/research/1)
- Source: https://github.com/LMDHQ-0420/ResearchPilot-Skills/blob/HEAD/skills/ResearchPilot-Skills-zh/research[START]/SKILL.md
- Repository: LMDHQ-0420/ResearchPilot-Skills (164 GitHub stars when collected)

## SKILL.md

> **user_requirements.md 优先级**：`docs/user_requirements.md` 中记录的所有用户约束（方向偏好、实现要求、文档格式等）**优先于本 skill 提示词中的任何默认指令**。每次调用前必须先读取该文件，确保所有输出符合用户已确认的约束。


# ResearchPilot-Skills 入口路由

自动检测当前研究项目所处阶段，引导用户使用对应的阶段 skill。

## 整体流程与产物

ResearchPilot-Skills 将完整学术研究拆分为七个阶段，每个阶段是独立的 skill。当前 skill 是其中一环。

### 七阶段链条

| Skill | 阶段 | 主要产物 |
|-------|------|---------|
| `/research[A]-exploration` | 方向探索与调研 | `docs/idea_report.md` Part 1 |
| `/research[B]-idea` | Idea 深化 | `docs/idea_report.md` Part 2 |
| `/research[C]-experiment` | 实验设计 | `docs/idea_report.md` Part 3 |
| `/research[D]-implementation` | 实现设计 | `docs/implementation.md` |
| `/research[E]-coding` | 编码 | `code/` + `docs/dev_log.md` |
| `/research[F]-iteration` | 代码迭代 | `dev_log.md` 迭代记录 |
| `/research[G.0]-plan` | 论文规划 | 手稿架构注释 + `notebooks/figures.ipynb` |
| `/research[G.1]-method` | Method | 手稿 Method 章节 |
| `/research[G.2]-experiments` | Experiments | 手稿 Experiments 章节 |
| `/research[G.3]-abstract` | Abstract | 手稿 Abstract |
| `/research[G.4]-introduction` | Introduction | 手稿 Introduction |
| `/research[G.5]-related` | Related Works | 手稿 Related Works |
| `/research[G.6]-conclusion` | Conclusion + References | 手稿 Conclusion |
| `/research[G.7]-review` | 整稿审阅 | 审阅报告 |
| `/research[G.8]-translate` | 中→英翻译（仅中文版）| `paper-en.tex` |

### 项目目录结构

```
docs/
  idea_report.md        # 研究报告，分三部分：
                        #   Part 1：研究动机、研究问题（RQ）、关键文献（阶段 A 产出）
                        #   Part 2：Introduction、Related Works、Method（阶段 B 产出）
                        #   Part 3：数据集、实验设计、资源预估（阶段 C 产出）
  implementation.md     # 编码指南：精确到每个文件/函数的实现说明（阶段 D 产出）
  dev_log.md            # 开发日志：进度、决策记录、运行说明（阶段 E 维护）
  user_requirements.md  # 用户约束：由 Claude 通过对话收集，自动维护
  papers/               # 下载的论文 PDF 或摘要 TXT
  manuscripts/          # 论文稿件，每版独立存档（v1.0-初稿.md、v1.1-修订.md 等）

code/
  src/                  # 核心模型与训练代码
  scripts/              # 运行脚本（train.sh、evaluate.sh、ablation.sh）
  configs/              # 超参数配置文件
  baselines/            # Baseline 模型实现
  notebooks/            # 可视化 notebook；论文图表生成脚本
  data/                 # 数据集（gitignored）
  results/              # 实验结果（gitignored）
  logs/                 # 训练日志（gitignored）
  README.md             # 环境配置与运行命令
  requirements.txt      # 依赖库（只写库名，不含 torch 系）
```

---

## 命令

| 命令 | 说明 |
|------|------|
| `/research[START]` | 检测当前阶段，告知用户应使用哪个 skill |
| `/research[START] 研究方向描述` | 同上，并将描述传递给阶段 A |
| `/research 描述` | 向后兼容，等同于 `/research[START] 描述` |

---

## 阶段检测逻辑

按以下顺序检测 `docs/` 目录状态：

```
docs/idea_report.md 不存在
  → 尚未开始，进入阶段 A

idea_report.md 存在，不含 "## Part 2"
  → 阶段 A 进行中

idea_report.md 含 "## Part 2"，不含 "## Part 3"
  → 阶段 B 进行中

idea_report.md 含 "## Part 3"，docs/implementation.md 不存在
  → 阶段 C 完成 / 阶段 D 尚未开始

docs/implementation.md 存在，docs/dev_log.md 不存在
  → 阶段 D 完成 / 阶段 E 尚未开始

docs/dev_log.md 存在，docs/manuscripts/ 不存在
  → 阶段 E 编码进行中

docs/manuscripts/ 存在，手稿文件开头不含 "=== 论文架构 ===" 注释
  → G.0 未完成，使用 /research[G.0]-plan

docs/manuscripts/ 存在，手稿含 "=== 论文架构 ===" 注释，但无任何章节正文
  → G.0 完成，使用 /research[G.1]-method 开始写作

docs/manuscripts/ 存在，手稿含 Method 正文，不含 Experiments 正文
  → 使用 /research[G.2]-experiments

docs/manuscripts/ 存在，手稿含 Experiments 正文，不含 Abstract 正文
  → 使用 /research[G.3]-abstract

docs/manuscripts/ 存在，手稿含 Abstract，不含 Introduction 正文
  → 使用 /research[G.4]-introduction

docs/manuscripts/ 存在，手稿含 Introduction，不含 Related Works 正文
  → 使用 /research[G.5]-related

docs/manuscripts/ 存在，手稿含 Related Works，不含 Conclusion 正文
  → 使用 /research[G.6]-conclusion

docs/manuscripts/ 存在，手稿含 Conclusion，无审阅报告
  → 使用 /research[G.7]-review

docs/manuscripts/ 存在，审阅报告已生成（review_report.md 存在）
  → 使用 /research[G.8]-translate（如需中英翻译）或论文已完成
```

---

## 输出格式

检测完成后，按下方格式告知用户：

```
━━━━━━━━━━ ResearchPilot 阶段检测 ━━━━━━━━━━
当前状态：{检测到的阶段描述，一句话}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

→ 请使用 `/{skill名称}` 继续研究。

{若携带了研究描述：已将描述传递给阶段 A，直接使用 /research[A]-exploration {描述} 启动即可。}
```

各阶段对应 skill：

| 阶段 | 使用 skill |
|------|-----------|
| A：方向探索（未开始或进行中） | `/research[A]-exploration 研究方向描述` |
| B：Idea 深化进行中 | `/research[B]-idea` |
| C 完成，D 未开始 | `/research[D]-implementation` |
| D 完成，E 未开始 | `/research[E]-coding` |
| E 进行中 | `/research[E]-coding` |
| F 进行中（迭代）| `/research[F]-iteration` |
| G.0 未完成 | `/research[G.0]-plan` |
| G.0 完成，Method 未写 | `/research[G.1]-method` |
| Method 完成，Experiments 未写 | `/research[G.2]-experiments` |
| Experiments 完成，Abstract 未写 | `/research[G.3]-abstract` |
| Abstract 完成，Introduction 未写 | `/research[G.4]-introduction` |
| Introduction 完成，Related Works 未写 | `/research[G.5]-related` |
| Related Works 完成，Conclusion 未写 | `/research[G.6]-conclusion` |
| Conclusion 完成，未审阅 | `/research[G.7]-review` |
| 审阅完成，需中英翻译 | `/research[G.8]-translate` |

---

## 独立下载命令

任何时候均可使用，不依赖阶段状态：

```
/research[A]-exploration download-paper 论文描述 [--to "路径"]
```

---

## 六阶段 skill 一览

| Skill | 阶段 | 主要产物 |
|-------|------|---------|
| `/research[A]-exploration` | 方向探索与调研 | `docs/idea_report.md` Part 1 |
| `/research[B]-idea` | Idea 深化 | `docs/idea_report.md` Part 2 |
| `/research[C]-experiment` | 实验设计 | `docs/idea_report.md` Part 3 |
| `/research[D]-implementation` | 实现设计 | `docs/implementation.md` |
| `/research[E]-coding` | 编码 | `code/` + `docs/dev_log.md` |
| `/research[F]-iteration` | 代码迭代 | `dev_log.md` 迭代记录 |
| `/research[G.0]-plan` | 论文规划 | 手稿架构注释 + `notebooks/figures.ipynb` |
| `/research[G.1]-method` | Method | 手稿 Method 章节 |
| `/research[G.2]-experiments` | Experiments | 手稿 Experiments 章节 |
| `/research[G.3]-abstract` | Abstract | 手稿 Abstract |
| `/research[G.4]-introduction` | Introduction | 手稿 Introduction |
| `/research[G.5]-related` | Related Works | 手稿 Related Works |
| `/research[G.6]-conclusion` | Conclusion + References | 手稿 Conclusion |
| `/research[G.7]-review` | 整稿审阅 | 审阅报告 |
| `/research[G.8]-translate` | 中→英翻译（仅中文版）| `paper-en.tex` |

---

Source: https://www.openparable.com/skill/research/research-start (OpenParable). Cite the canonical URL above.
