Skip to content

Commit e29edff

Browse files
committed
update skills agents generator
1 parent 2c4d0f1 commit e29edff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

AGENTS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
You have additional SKILLs documented in directories containing a "SKILL.md" file.
44

55
These skills are:
6-
- hugging-face-dataset-creator -> "hf_dataset_creator/SKILL.md"
7-
- hugging-face-evaluation-manager -> "hf_model_evaluation/SKILL.md"
8-
- hugging-face-paper-publisher -> "hf-paper-publisher/SKILL.md"
9-
- model-trainer -> "hf-llm-trainer/SKILL.md"
6+
- hugging-face-dataset-creator -> "hf_dataset_creator/skills/hugging-face-dataset-creator/SKILL.md"
7+
- hugging-face-evaluation-manager -> "hf_model_evaluation/skills/hugging-face-evaluation-manager/SKILL.md"
8+
- hugging-face-paper-publisher -> "hf-paper-publisher/skills/hugging-face-paper-publisher/SKILL.md"
9+
- model-trainer -> "hf-llm-trainer/skills/model-trainer/SKILL.md"
1010

1111
IMPORTANT: You MUST read the SKILL.md file whenever the description of the skills matches the user intent, or may help accomplish their task.
1212

scripts/generate_agents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def parse_frontmatter(text: str) -> dict[str, str]:
3232

3333
def collect_skills() -> list[dict[str, str]]:
3434
skills: list[dict[str, str]] = []
35-
for skill_md in ROOT.glob("*/SKILL.md"):
35+
for skill_md in ROOT.glob("*/skills/*/SKILL.md"):
3636
meta = parse_frontmatter(skill_md.read_text(encoding="utf-8"))
3737
name = meta.get("name")
3838
description = meta.get("description")
@@ -42,7 +42,7 @@ def collect_skills() -> list[dict[str, str]]:
4242
{
4343
"name": name,
4444
"description": description,
45-
"path": skill_md.parent.name,
45+
"path": str(skill_md.parent.relative_to(ROOT)),
4646
}
4747
)
4848
# Keep deterministic order for consistent output

0 commit comments

Comments
 (0)