Skip to content

Commit d6fada0

Browse files
authored
fix(help): point root help Agent Skills link to README section (#289)
1 parent 6bc6bb6 commit d6fada0

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ AI AGENT SKILLS:
7878
npx skills add larksuite/cli -s lark-calendar -y
7979
npx skills add larksuite/cli -s lark-im -y
8080
81-
Learn more: https://github.com/larksuite/cli#install-ai-agent-skills
81+
Learn more: https://github.com/larksuite/cli#agent-skills
8282
8383
COMMUNITY:
8484
GitHub: https://github.com/larksuite/cli

cmd/root_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,12 @@ func TestEnrichPermissionError_SpecialCharsEscaped(t *testing.T) {
187187
})
188188
}
189189
}
190+
191+
func TestRootLong_AgentSkillsLinkTargetsReadmeSection(t *testing.T) {
192+
if !strings.Contains(rootLong, "https://github.com/larksuite/cli#agent-skills") {
193+
t.Fatalf("root help should link to the README Agent Skills section, got:\n%s", rootLong)
194+
}
195+
if strings.Contains(rootLong, "https://github.com/larksuite/cli#install-ai-agent-skills") {
196+
t.Fatalf("root help should not reference the removed install-ai-agent-skills anchor, got:\n%s", rootLong)
197+
}
198+
}

0 commit comments

Comments
 (0)