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
+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()