Fix missing frontmatter name fields and hardcoded paths in skills

Add missing `name` field to all research-zh and research-en SKILL.md
frontmatter (fixes #1). Replace hardcoded /home/weizhena/ paths with
~ and {project_dir} placeholders in research-deep skills (fixes #2).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
jilinchen
2026-04-10 12:44:31 +08:00
co-authored by Claude Opus 4.6
parent 014b5d0e41
commit dc18cf4591
12 changed files with 28 additions and 18 deletions
@@ -1,4 +1,5 @@
---
name: research-add-fields
user-invocable: true
description: 向现有调研outline补充字段定义。
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task, AskUserQuestion
@@ -1,4 +1,5 @@
---
name: research-add-items
user-invocable: true
description: 向现有调研outline补充items(调研对象)。
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task, AskUserQuestion
+5 -4
View File
@@ -1,4 +1,5 @@
---
name: research-deep
user-invocable: true
description: 读取调研outline,为每个item启动独立agent进行深度调研。禁用task output。
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task
@@ -62,10 +63,10 @@ python ~/.claude/skills/research/validate_json.py -f {fields_path} -j {output_pa
## 任务
调研 name: GitHub Copilot
category: 国际产品
description: Microsoft/GitHub开发,首个主流AI编程助手,市场份额约40%,输出结构化JSON到 /home/weizhena/AIcoding/aicoding-history/results/GitHub_Copilot.json
description: Microsoft/GitHub开发,首个主流AI编程助手,市场份额约40%,输出结构化JSON到 {project_dir}/results/GitHub_Copilot.json
## 字段定义
读取 /home/weizhena/AIcoding/aicoding-history/fields.yaml 获取所有字段定义
读取 {project_dir}/fields.yaml 获取所有字段定义
## 输出要求
1. 按fields.yaml定义的字段输出JSON
@@ -74,11 +75,11 @@ description: Microsoft/GitHub开发,首个主流AI编程助手,市场份额
4. 所有字段值必须使用中文输出(调研过程可用英文,但最终JSON值为中文)
## 输出路径
/home/weizhena/AIcoding/aicoding-history/results/GitHub_Copilot.json
{project_dir}/results/GitHub_Copilot.json
## 验证
完成JSON输出后,运行验证脚本确保字段完整覆盖:
python ~/.claude/skills/research/validate_json.py -f /home/weizhena/AIcoding/aicoding-history/fields.yaml -j /home/weizhena/AIcoding/aicoding-history/results/GitHub_Copilot.json
python ~/.claude/skills/research/validate_json.py -f {project_dir}/fields.yaml -j {project_dir}/results/GitHub_Copilot.json
验证通过后才算完成任务。
```
@@ -1,4 +1,5 @@
---
name: research-report
user-invocable: true
description: 将deep调研结果汇总为markdown报告,覆盖所有字段,跳过不确定值。
allowed-tools: Read, Write, Glob, Bash, AskUserQuestion
+1
View File
@@ -1,4 +1,5 @@
---
name: research
user-invocable: true
allowed-tools: Read, Write, Glob, WebSearch, Task, AskUserQuestion
description: 对目标话题进行初步调研,生成调研outline。用于学术调研、benchmark调研、技术选型等场景。