SkillsGrove
SkillsGrove/문서 작업/TerryFYL/ai-research-army/start-army

start-army

설치

$npx skills add https://github.com/TerryFYL/ai-research-army --skill start-army
$git clone --depth 1 https://github.com/TerryFYL/ai-research-army.git /tmp/ai-research-army && mkdir -p ~/.claude/skills && cp -r /tmp/ai-research-army/skills/start-army ~/.claude/skills/start-army
이 Agent Skill을 설치해 주세요: https://github.com/TerryFYL/ai-research-army/tree/db844cd11add366d06aca470b73081b151d0b711/skills/start-army — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · Apache-2.0AI 科研军团统一入口。用户投入任何科研任务→Wei 读取任务→查阅 Skill 注册表→动态调度各角色。 触发条件: 用户说"/start-army"、"启动军团"、"接单"、"开始项目",或提供数据文件+研究需求。
아래 SKILL.md는 TerryFYL/ai-research-army(커밋 db844cd)에서 Apache-2.0 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright owner or entity authorized by. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

Start Army — 统一任务入口

这是整个军团的启动按钮。任何科研任务,从这里进。

核心定位

用户不需要知道管线细节。 用户只需要:

  1. 描述任务(或提供数据文件路径 + 研究目的)
  2. 说 /start-army

剩下的由 Wei 接管:读取任务 → 查阅 Skill 注册表 → 规划调度序列 → 逐步推进 → 产出交付物。


执行流程

Phase 0:任务接收

收集原始信息(有则用,无则留空):

必须项:
  - 任务描述(客户说了什么)
  - 数据文件路径(如果有)

可选项:
  - 目标期刊或期刊层级(如有)
  - 截止时间(如有)
  - 已有产出物路径(继续任务时)

Phase 0.5:需求结晶(v3.0 新增,不可跳过)

在 Wei 编排之前,必须先让 Priya 完成需求结晶。没有锁定的需求文档,不允许进入编排阶段。

Priya 执行以下操作:

  1. 阅读原始材料:数据文件(如有)+ 客户描述 → 形成初步认知
  2. 主动问询(最多 3 轮):
    • 第 1 轮 — 研究目标与动机
    • 第 2 轮 — 数据情况与约束
    • 第 3 轮 — 产出期望与时间线
  3. 草拟需求文档:按 templates/requirement.md 模板输出 clients/<project_id>/requirement_v1.md
  4. 客户确认:提交给客户确认或修改
  5. 锁定:确认后,初始化 clients/<project_id>/state.yaml(详见 Phase 1)

提前结束条件:

  • 3 轮问完仍不清楚的点 → 做假设写入文档的"团队假设"章节
  • 客户明确说"就按你们理解的做" → 直接锁定当前版本

任务分类(Priya 在结晶过程中同步完成):

关键词 类型 Wei 调度策略
"数据" + "论文"/"发表"/"稿件" 全流程 从 data-forensics 开始
"统计分析"/"跑一下数据" 单模块:统计 statistical-analysis
"文献综述"/"meta 分析" 单模块:文献 reference-manager /ref review
"修改图表"/"重新出图" 单模块:图表 academic-figure-engine
"审稿意见"/"修改稿" 单模块:修稿 paper-revision → quality-gate
"验证引用"/"检查文献" 单模块:验证 reference-manager /ref verify
"数据造假"/"数据真伪" 单模块:鉴伪 data-forensics

交接给 Wei:

clients/<project_id>/requirement_v1.md  ← 锁定的需求
clients/<project_id>/state.yaml         ← 初始化的状态文件

Phase 1:Wei 初始化

Wei 执行以下操作:

  1. 读取需求文档:clients/<project_id>/requirement_v1.md(或 state.yaml 指向的最新版本)— 这是执行基准,不可跳过
  2. 读取 agents/skill_registry.md — 加载可用技能清单
  3. 读取 system/capability-registry.yaml — 能力匹配检查(需求 vs 现有能力)
  4. 读取 modules/constraints.yaml — 加载硬约束
  5. 确认项目路径:clients/<project_id>/
  6. 能力匹配结果写入 orchestration_plan.md(全匹配/部分匹配/有缺口)
  7. 生成 orchestration_plan.md,格式如下:
# 编排计划 — [项目名称]
**任务类型**: 全流程 / 单模块
**需求文档**: requirement_v1.md(已锁定)
**目标期刊层级**: [A/B/C/待定]
**预计产出**: [交付物列表]

## 能力匹配
**匹配结果**: 全匹配 / 部分匹配 / 有缺口
**缺口说明**: [如有缺口,列出缺什么能力]
**处理方案**: [直接编排 / 临时组合 / 创建新能力(需走治理门)]

## 调度序列
| 步骤 | 角色 | Skill | 子命令 | 输入文件 | 输出文件 |
|------|------|-------|--------|---------|---------|
| 1    | Ming | data-forensics | /forensics | raw_data.* | forensics_report.md |
| 2    | Ming | data-profiler | /profile | raw_data.* | data_dictionary.md |
| ...  | ...  | ...   | ...    | ...     | ...     |

## 硬性检查点
- [ ] CP-0: forensics GREEN/YELLOW
- [ ] CP-2: analysis_results.md 存在 + /ref research 启动
- [ ] CP-Final: /ref verify 通过 + /qa review 通过

## 风险预案
- 若 forensics RED → 暂停,通知创始人
- 若统计结果不显著 → Priya 评估是否调整分析策略

Phase 2:逐步推进

Wei 按编排计划,逐步:

  • 启动对应角色(通过 tmux-runner.sh 或 Agent 工具)
  • 确认每步输出文件存在
  • 将产出文件路径传递给下游角色
  • 每步完成后更新 state.yaml:completed_steps += 当前步骤,current_phase = 下一步
  • 记录每个决策到 orchestration_log.md

需求版本检查(每个节点开始前):

Wei 读取 state.yaml → 检查 current_requirement 是否与编排时的版本一致
  - 一致 → 继续执行
  - 不一致(客户修改了需求)→ 评估影响范围:
    a. 变更不影响已完成工作 → 更新 orchestration_plan,继续
    b. 变更影响已完成节点 → 标记受影响节点,重做对应节点
    c. 变更颠覆研究方向 → 回到需求结晶阶段重新对齐

中间状态提示(向用户):

进度示例:
✅ Step 1 完成: 数据鉴伪 GREEN(样本量 N=312,无异常模式)
✅ Step 2 完成: 数据画像生成(26 变量,缺失率 <5%)
⏳ Step 3 进行中: Priya 研究设计...

Phase 3:检查点决策 + 迭代闭环

Wei 在每个检查点做决策:

  • CP-0(接单门控):forensics 结果 → 决定继续/拒单/要求补充材料
  • CP-2(统计后):analysis_results.md → 评估结果质量 → 触发期刊升级评估(联动 Priya+Kenji+Alex)
  • CP-Final(投稿前):所有验证通过 → 打交付包

迭代闭环(v3.0 新增):

当 Alex 质控完成后,Wei 读取审查报告末尾的结构化摘要(YAML 块):

verdict: PASS → 进入交付阶段(Phase 4)
verdict: WARN → Wei 评估风险是否可接受
  - 可接受 → 交付(附风险说明)
  - 不可接受 → 当 BLOCK 处理

verdict: BLOCK → 迭代修复流程:
  1. 读取 failed_nodes 列表 → 只重做失败节点,不重跑全流程
  2. 递增 state.yaml 的 iteration_count
  3. 检查 iteration_count vs max_iterations(3):
     - 未超限 → 对应 Agent 重做 → 再次提交 Alex 质控
     - 已超限 → 停止自动迭代,更新 state.yaml:
         status: "needs_human_review"
         pause_reason: "iteration_limit"
  4. 更新 state.yaml 的 quality_history(记录每次迭代结果)

迭代示例:

第 1 次 Alex 审查 → BLOCK: [manuscript] Table 2 数值与分析报告不一致
  → Wei 调度 Hao 重做 manuscript 节点
  → iteration_count: 1

第 2 次 Alex 审查 → WARN: [figures] Figure 3 标签字号偏小
  → Wei 判断风险可接受 → 交付
  → state.yaml: status=completed, iteration_count=1

Phase 4:交付

delivery/ 文件夹标准构成:

delivery/
├── manuscript_final.docx    ← 主稿(含图注+格式化参考文献)
├── figure1_*.tiff           ← 出版级图(300 DPI,投稿用)
├── figure1_*.png            ← 预览图(客户核对用,不上传)
├── figure2_*.tiff
├── figure2_*.png
├── ethics_approval.jpg      ← 伦理批件(如适用)
└── 投稿说明.md              ← 操作指引(EVISE步骤+Cover Letter要点+备选期刊)

投稿说明.md 必须包含:

  1. 每个文件的用途和对应投稿系统的文件类型选项
  2. 投稿系统的 URL
  3. 哪些文件上传、哪些仅供预览
  4. Cover Letter 3-5 个要点
  5. 备选期刊表(含 IF + 预估成功率)

快速启动示例

用户: /start-army
      客户:施雪斐,HFpEF综述,87条参考文献待验证
      数据路径: clients/shuguang/outputs/final/

→ Wei: 任务类型=单模块(引用验证)
→ Wei: 调度 Jing 执行 /ref verify
→ Jing: 运行 verify_references.py → verification_report.json
→ Alex: 确认 MISMATCH 项修正
→ Wei: 完成,提示修正结果
用户: /start-army
      收到新客户数据:heart_failure_data.csv,要做预后分析,争取发核心期刊

→ Priya: 需求结晶(Phase 0.5)
  → 阅读 heart_failure_data.csv → 主动问询 3 轮 → requirement_v1.md
  → 客户确认锁定 → 初始化 state.yaml
→ Wei: 读 requirement_v1.md → 能力匹配(全匹配)→ 任务类型=全流程
→ Wei: 生成 orchestration_plan.md(12步序列)
→ Ming: /forensics → GREEN
→ Ming: /profile → data_dictionary.md
→ Priya: /research idea → /research design → D1 讨论 → research_plan_decision.md
→ Kenji: /stat analyze
→ [... 全程自动推进 ...]
→ Alex: /qa review → PASS → delivery/ 交付包

Skill: start-army Version: 2.0 — 新增需求结晶阶段(Phase 0.5) Created: 2026-03-14 Updated: 2026-03-15 Owner: Priya(需求结晶)→ Wei(编排)

라이선스 전문 보기(Apache-2.0)
                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to the Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by the Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding any notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. Please also get an
      "Alarm" or "alarm" to watch over the file.

   Copyright 2026 AI Research Army Contributors

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.