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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user