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:
co-authored by
Claude Opus 4.6
parent
014b5d0e41
commit
dc18cf4591
@@ -51,7 +51,7 @@ Read {fields_path} to get all field definitions
|
|||||||
|
|
||||||
## Validation
|
## Validation
|
||||||
After completing JSON output, run validation script to ensure complete field coverage:
|
After completing JSON output, run validation script to ensure complete field coverage:
|
||||||
python /home/weizhena/.codex/skills/research/validate_json.py -f {fields_path} -j {output_path}
|
python ~/.codex/skills/research/validate_json.py -f {fields_path} -j {output_path}
|
||||||
Task is complete only after validation passes.
|
Task is complete only after validation passes.
|
||||||
"""
|
"""
|
||||||
```
|
```
|
||||||
@@ -61,10 +61,10 @@ Task is complete only after validation passes.
|
|||||||
## Task
|
## Task
|
||||||
Research name: GitHub Copilot
|
Research name: GitHub Copilot
|
||||||
category: International Product
|
category: International Product
|
||||||
description: Developed by Microsoft/GitHub, first mainstream AI coding assistant, ~40% market share, output structured JSON to /home/weizhena/AIcoding/aicoding-history/results/GitHub_Copilot.json
|
description: Developed by Microsoft/GitHub, first mainstream AI coding assistant, ~40% market share, output structured JSON to {project_dir}/results/GitHub_Copilot.json
|
||||||
|
|
||||||
## Field Definitions
|
## Field Definitions
|
||||||
Read /home/weizhena/AIcoding/aicoding-history/fields.yaml to get all field definitions
|
Read {project_dir}/fields.yaml to get all field definitions
|
||||||
|
|
||||||
## Output Requirements
|
## Output Requirements
|
||||||
1. Output JSON according to fields defined in fields.yaml
|
1. Output JSON according to fields defined in fields.yaml
|
||||||
@@ -73,11 +73,11 @@ Read /home/weizhena/AIcoding/aicoding-history/fields.yaml to get all field defin
|
|||||||
4. All field values must be in English
|
4. All field values must be in English
|
||||||
|
|
||||||
## Output Path
|
## Output Path
|
||||||
/home/weizhena/AIcoding/aicoding-history/results/GitHub_Copilot.json
|
{project_dir}/results/GitHub_Copilot.json
|
||||||
|
|
||||||
## Validation
|
## Validation
|
||||||
After completing JSON output, run validation script to ensure complete field coverage:
|
After completing JSON output, run validation script to ensure complete field coverage:
|
||||||
python /home/weizhena/.codex/skills/research/validate_json.py -f /home/weizhena/AIcoding/aicoding-history/fields.yaml -j /home/weizhena/AIcoding/aicoding-history/results/GitHub_Copilot.json
|
python ~/.codex/skills/research/validate_json.py -f {project_dir}/fields.yaml -j {project_dir}/results/GitHub_Copilot.json
|
||||||
Task is complete only after validation passes.
|
Task is complete only after validation passes.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ Read {fields_path} to get all field definitions
|
|||||||
|
|
||||||
## Validation
|
## Validation
|
||||||
After completing JSON output, run validation script to ensure complete field coverage:
|
After completing JSON output, run validation script to ensure complete field coverage:
|
||||||
python /home/weizhena/.codex/skills/research/validate_json.py -f {fields_path} -j {output_path}
|
python ~/.codex/skills/research/validate_json.py -f {fields_path} -j {output_path}
|
||||||
Task is complete only after validation passes.
|
Task is complete only after validation passes.
|
||||||
"""
|
"""
|
||||||
```
|
```
|
||||||
@@ -61,10 +61,10 @@ Task is complete only after validation passes.
|
|||||||
## Task
|
## Task
|
||||||
Research name: GitHub Copilot
|
Research name: GitHub Copilot
|
||||||
category: International Product
|
category: International Product
|
||||||
description: Developed by Microsoft/GitHub, first mainstream AI coding assistant, ~40% market share, output structured JSON to /home/weizhena/AIcoding/aicoding-history/results/GitHub_Copilot.json
|
description: Developed by Microsoft/GitHub, first mainstream AI coding assistant, ~40% market share, output structured JSON to {project_dir}/results/GitHub_Copilot.json
|
||||||
|
|
||||||
## Field Definitions
|
## Field Definitions
|
||||||
Read /home/weizhena/AIcoding/aicoding-history/fields.yaml to get all field definitions
|
Read {project_dir}/fields.yaml to get all field definitions
|
||||||
|
|
||||||
## Output Requirements
|
## Output Requirements
|
||||||
1. Output JSON according to fields defined in fields.yaml
|
1. Output JSON according to fields defined in fields.yaml
|
||||||
@@ -73,11 +73,11 @@ Read /home/weizhena/AIcoding/aicoding-history/fields.yaml to get all field defin
|
|||||||
4. All field values must be in English
|
4. All field values must be in English
|
||||||
|
|
||||||
## Output Path
|
## Output Path
|
||||||
/home/weizhena/AIcoding/aicoding-history/results/GitHub_Copilot.json
|
{project_dir}/results/GitHub_Copilot.json
|
||||||
|
|
||||||
## Validation
|
## Validation
|
||||||
After completing JSON output, run validation script to ensure complete field coverage:
|
After completing JSON output, run validation script to ensure complete field coverage:
|
||||||
python /home/weizhena/.codex/skills/research/validate_json.py -f /home/weizhena/AIcoding/aicoding-history/fields.yaml -j /home/weizhena/AIcoding/aicoding-history/results/GitHub_Copilot.json
|
python ~/.codex/skills/research/validate_json.py -f {project_dir}/fields.yaml -j {project_dir}/results/GitHub_Copilot.json
|
||||||
Task is complete only after validation passes.
|
Task is complete only after validation passes.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
name: research-add-fields
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
description: Add field definitions to existing research outline.
|
description: Add field definitions to existing research outline.
|
||||||
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task, AskUserQuestion
|
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task, AskUserQuestion
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
name: research-add-items
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
description: Add items (research objects) to existing research outline.
|
description: Add items (research objects) to existing research outline.
|
||||||
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task, AskUserQuestion
|
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task, AskUserQuestion
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
name: research-deep
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
description: Read research outline, launch independent agent for each item for deep research. Disable task output.
|
description: Read research outline, launch independent agent for each item for deep research. Disable task output.
|
||||||
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task
|
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task
|
||||||
@@ -62,10 +63,10 @@ Task is complete only after validation passes.
|
|||||||
## Task
|
## Task
|
||||||
Research name: GitHub Copilot
|
Research name: GitHub Copilot
|
||||||
category: International Product
|
category: International Product
|
||||||
description: Developed by Microsoft/GitHub, first mainstream AI coding assistant, ~40% market share, output structured JSON to /home/weizhena/AIcoding/aicoding-history/results/GitHub_Copilot.json
|
description: Developed by Microsoft/GitHub, first mainstream AI coding assistant, ~40% market share, output structured JSON to {project_dir}/results/GitHub_Copilot.json
|
||||||
|
|
||||||
## Field Definitions
|
## Field Definitions
|
||||||
Read /home/weizhena/AIcoding/aicoding-history/fields.yaml to get all field definitions
|
Read {project_dir}/fields.yaml to get all field definitions
|
||||||
|
|
||||||
## Output Requirements
|
## Output Requirements
|
||||||
1. Output JSON according to fields defined in fields.yaml
|
1. Output JSON according to fields defined in fields.yaml
|
||||||
@@ -74,11 +75,11 @@ Read /home/weizhena/AIcoding/aicoding-history/fields.yaml to get all field defin
|
|||||||
4. All field values must be in English
|
4. All field values must be in English
|
||||||
|
|
||||||
## Output Path
|
## Output Path
|
||||||
/home/weizhena/AIcoding/aicoding-history/results/GitHub_Copilot.json
|
{project_dir}/results/GitHub_Copilot.json
|
||||||
|
|
||||||
## Validation
|
## Validation
|
||||||
After completing JSON output, run validation script to ensure complete field coverage:
|
After completing JSON output, run validation script to ensure complete field coverage:
|
||||||
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
|
||||||
Task is complete only after validation passes.
|
Task is complete only after validation passes.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
name: research-report
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
description: Summarize deep research results into markdown report, cover all fields, skip uncertain values.
|
description: Summarize deep research results into markdown report, cover all fields, skip uncertain values.
|
||||||
allowed-tools: Read, Write, Glob, Bash, AskUserQuestion
|
allowed-tools: Read, Write, Glob, Bash, AskUserQuestion
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
name: research
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
allowed-tools: Read, Write, Glob, WebSearch, Task, AskUserQuestion
|
allowed-tools: Read, Write, Glob, WebSearch, Task, AskUserQuestion
|
||||||
description: Conduct preliminary research on a topic and generate research outline. For academic research, benchmark research, technology selection, etc.
|
description: Conduct preliminary research on a topic and generate research outline. For academic research, benchmark research, technology selection, etc.
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
name: research-add-fields
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
description: 向现有调研outline补充字段定义。
|
description: 向现有调研outline补充字段定义。
|
||||||
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task, AskUserQuestion
|
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task, AskUserQuestion
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
name: research-add-items
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
description: 向现有调研outline补充items(调研对象)。
|
description: 向现有调研outline补充items(调研对象)。
|
||||||
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task, AskUserQuestion
|
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task, AskUserQuestion
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
name: research-deep
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
description: 读取调研outline,为每个item启动独立agent进行深度调研。禁用task output。
|
description: 读取调研outline,为每个item启动独立agent进行深度调研。禁用task output。
|
||||||
allowed-tools: Bash, Read, Write, Glob, WebSearch, Task
|
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
|
调研 name: GitHub Copilot
|
||||||
category: 国际产品
|
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
|
1. 按fields.yaml定义的字段输出JSON
|
||||||
@@ -74,11 +75,11 @@ description: Microsoft/GitHub开发,首个主流AI编程助手,市场份额
|
|||||||
4. 所有字段值必须使用中文输出(调研过程可用英文,但最终JSON值为中文)
|
4. 所有字段值必须使用中文输出(调研过程可用英文,但最终JSON值为中文)
|
||||||
|
|
||||||
## 输出路径
|
## 输出路径
|
||||||
/home/weizhena/AIcoding/aicoding-history/results/GitHub_Copilot.json
|
{project_dir}/results/GitHub_Copilot.json
|
||||||
|
|
||||||
## 验证
|
## 验证
|
||||||
完成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
|
user-invocable: true
|
||||||
description: 将deep调研结果汇总为markdown报告,覆盖所有字段,跳过不确定值。
|
description: 将deep调研结果汇总为markdown报告,覆盖所有字段,跳过不确定值。
|
||||||
allowed-tools: Read, Write, Glob, Bash, AskUserQuestion
|
allowed-tools: Read, Write, Glob, Bash, AskUserQuestion
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
name: research
|
||||||
user-invocable: true
|
user-invocable: true
|
||||||
allowed-tools: Read, Write, Glob, WebSearch, Task, AskUserQuestion
|
allowed-tools: Read, Write, Glob, WebSearch, Task, AskUserQuestion
|
||||||
description: 对目标话题进行初步调研,生成调研outline。用于学术调研、benchmark调研、技术选型等场景。
|
description: 对目标话题进行初步调研,生成调研outline。用于学术调研、benchmark调研、技术选型等场景。
|
||||||
|
|||||||
Reference in New Issue
Block a user