diff --git a/cmd/root.go b/cmd/root.go index b7058c9e1..8996dd8a6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -78,7 +78,7 @@ AI AGENT SKILLS: npx skills add larksuite/cli -s lark-calendar -y npx skills add larksuite/cli -s lark-im -y - Learn more: https://github.com/larksuite/cli#install-ai-agent-skills + Learn more: https://github.com/larksuite/cli#agent-skills COMMUNITY: GitHub: https://github.com/larksuite/cli diff --git a/cmd/root_test.go b/cmd/root_test.go index 940270b15..09af9587a 100644 --- a/cmd/root_test.go +++ b/cmd/root_test.go @@ -187,3 +187,12 @@ func TestEnrichPermissionError_SpecialCharsEscaped(t *testing.T) { }) } } + +func TestRootLong_AgentSkillsLinkTargetsReadmeSection(t *testing.T) { + if !strings.Contains(rootLong, "https://github.com/larksuite/cli#agent-skills") { + t.Fatalf("root help should link to the README Agent Skills section, got:\n%s", rootLong) + } + if strings.Contains(rootLong, "https://github.com/larksuite/cli#install-ai-agent-skills") { + t.Fatalf("root help should not reference the removed install-ai-agent-skills anchor, got:\n%s", rootLong) + } +}