一键导入
exp
Manage experiments: create records, log results, compare runs, and collect data for paper writing
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage experiments: create records, log results, compare runs, and collect data for paper writing
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Graduate an evaluated idea into a full project: create Linear Project with Phase milestones, GitHub repo, and standard directory structure
Initialize Linear workspace for SWF workflow: create label system, Ideas project, Archive project, and configure team settings
Show today's tasks across all projects, optionally filtered by type label (dev, writing, figures, experiment, admin)
Read project state and design docs, then create the next batch of Linear issues for a project
Import an existing research project into the SWF workflow: create Linear Project with milestones, add standard docs to existing repo
Export Done/Canceled issues to Archive project as Documents, then guide user to delete originals to free quota
| name | exp |
| description | Manage experiments: create records, log results, compare runs, and collect data for paper writing |
| argument-hint | [new|log|compare|collect] |
Standardized experiment workflow: design → run → record → compare → collect for paper.
$ARGUMENTS[0] determines the action. If omitted, show help.
/swf:exp new <title>Create a new experiment record from template.
Ask experiment type:
benchmark — Phase 2 标准化对比实验(和 baseline 公平对比)case — Phase 3 Case Study / Feature Demo(深入分析,讲故事)Auto-number: scan the corresponding subdirectory for next number
docs/experiments/benchmark/bench-<NNN>-<slug>.mddocs/experiments/case/case-<NNN>-<slug>.mdAsk type-specific questions:
Benchmark:
Case Study:
Generate record from corresponding template in ${CLAUDE_SKILL_DIR}/../reference/experiment-template.md
Auto-capture environment:
python --version
pip list | grep -E "torch|scanpy|numpy|scipy|pandas"
hostname
nvidia-smi --query-gpu=name,memory.total --format=csv,noheader 2>/dev/null
Generate config file if applicable → configs/<prefix>-<NNN>.yaml
Generate run command and write into record
Commit the record and config
Create results directory: mkdir -p results/<prefix>-<NNN>
Remind: "实验记录已创建。运行实验后,用 /swf:exp log <prefix>-<NNN> 记录结果。"
/swf:exp log <NNN>Record results for a completed experiment.
docs/experiments/exp-<NNN>-*.mdresults/exp-<NNN>/ for output files.json, .csv), auto-extract key metrics/swf:exp compare)"/swf:update-design)"/swf:adr)"/swf:exp compare [NNN] [NNN] ...Compare multiple experiments side by side.
If no numbers given, list all completed experiments and ask which to compare
Read each experiment record
Generate comparison table:
## 实验对比
| | EXP-001 Baseline | EXP-002 Sparse | EXP-003 Optimized |
|---|---|---|---|
| 方法 | Dense matrix | Sparse matrix | Sparse + cache |
| Metric A | 0.85 | 0.84 | 0.91 |
| Metric B | 0.72 | 0.75 | 0.78 |
| 时间(s) | 120 | 45 | 38 |
| 内存(GB) | 8.2 | 3.1 | 3.4 |
| 关键差异 | — | 内存降 62% | 精度+速度最优 |
Save to docs/experiments/comparison-<date>.md
Commit the comparison
/swf:exp collect [phase]Collect experiment results for paper writing. Prepares data for /swf:paper results.
Scan all completed experiments in docs/experiments/
Group by phase/purpose:
Generate a collection summary at docs/experiments/collection-summary.md:
## 实验结果汇总(供论文使用)
### Benchmark Results (Phase 2)
- EXP-001~003: 主要性能对比 → 对应论文 Fig.2-3
- 最佳配置:EXP-003 的参数
- 关键数据文件:results/exp-003/metrics.json
### Case Studies (Phase 3)
- EXP-004: Case 1 XX 数据集 → 对应论文 Fig.5
- EXP-005: Case 2 YY 数据集 → 对应论文 Fig.6
### 待补充
- 缺少 ablation study
- Case 3 还未运行
Check for gaps: identify missing experiments needed for the paper
Commit the summary