cli: route the default skill to existing workflows

Remove authoring from the skill description and move the authoring commands
and examples behind an explicit-request section in help. A skill test keeps the
default description from advertising authoring again.
This commit is contained in:
2026-10-20 13:24:53 +01:00
parent 122eca8e1b
commit 7758d20feb
3 changed files with 36 additions and 21 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
---
name: Pipelines
description: Use and author Pipelines workflows, inspect runs, and recover or deliver project work directly when that is the simpler route.
description: Use existing Pipelines workflows to run, inspect, wait, recover and deliver project work. Use only when the work belongs in an existing pipeline; authoring is a separate, explicit task.
---
# Pipelines
+13
View File
@@ -50,6 +50,19 @@ func TestEveryEmbeddedReferenceIsInstalledAndLinksResolve(t *testing.T) {
}
}
func TestDefaultSkillDoesNotAdvertiseAuthoring(t *testing.T) {
main, err := content.ReadFile("skill/SKILL.md")
if err != nil {
t.Fatal(err)
}
if !strings.Contains(string(main), "description: Use existing Pipelines workflows") {
t.Fatal("default skill description must route to existing workflows only")
}
if strings.Contains(string(main), "description: Use and author Pipelines workflows") {
t.Fatal("default skill must not advertise authoring")
}
}
func TestThreeFileSkillUpgradesWithAllNewReferences(t *testing.T) {
t.Setenv("XDG_CONFIG_HOME", t.TempDir())
dir, err := InstallSkill()