feat: add /research/report command for markdown generation
- New report command to generate markdown from JSON results - Generates Python script for conversion - Creates report with TOC and anchor links - Skips uncertain fields and uncertain array - Update deep.md with prompt template format 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
620a6622fd
commit
a34ef20fd4
@@ -18,14 +18,25 @@ allowed-tools: Bash, Read, Write, Glob, WebSearch, Task
|
||||
- 跳过已完成的items
|
||||
|
||||
### Step 3: 分批执行
|
||||
- 按batch_size分批(默认5个agent并行)
|
||||
- 按batch_size分批(完成一批需要得到用户同意才可进行下一批)
|
||||
- 每个agent负责items_per_agent个项目
|
||||
- 启动web-search-agent(后台并行,禁用task output)
|
||||
- **硬约束**:仅传入item相关信息和输出路径
|
||||
- **硬约束**:agent必须自行读取 `{topic}/fields.yaml` 获取字段定义
|
||||
- **硬约束**:禁止在prompt中直接嵌入字段定义
|
||||
- **硬约束**:不确定的字段值标注[不确定],并在JSON末尾uncertain数组中列出该字段名(即对应字段的实际位置需要说明一次和uncertain字段位置再总结一次)
|
||||
- 输出结构化JSON到output_dir
|
||||
- 启动web-search-agent(后台并行,禁用task output),使用以下prompt模板:
|
||||
|
||||
```
|
||||
## 任务
|
||||
调研 {item_related_info},输出结构化JSON到 {output_path}
|
||||
|
||||
## 字段定义
|
||||
读取 {topic}/fields.yaml 获取所有字段定义
|
||||
|
||||
## 输出要求
|
||||
1. 按fields.yaml定义的字段输出JSON
|
||||
2. 不确定的字段值标注[不确定]
|
||||
3. JSON末尾添加uncertain数组,列出所有不确定的字段名
|
||||
|
||||
## 输出路径
|
||||
{output_dir}/{item_name}.json
|
||||
```
|
||||
|
||||
### Step 4: 等待与监控
|
||||
- 等待当前批次完成
|
||||
@@ -39,7 +50,6 @@ allowed-tools: Bash, Read, Write, Glob, WebSearch, Task
|
||||
- 输出目录
|
||||
|
||||
## Agent配置
|
||||
- 每批并行: 5个agent(可在outline中配置)
|
||||
- 后台执行: 是
|
||||
- Task Output: 禁用(agent完成时有明确输出文件)
|
||||
- 断点续传: 是
|
||||
|
||||
Reference in New Issue
Block a user