From d6fada01f56ed6d46b8307f4ee5ab2af44b1e119 Mon Sep 17 00:00:00 2001 From: OwenYWT <103073962+OwenYWT@users.noreply.github.com> Date: Tue, 7 Apr 2026 23:24:24 +0800 Subject: [PATCH] fix(help): point root help Agent Skills link to README section (#289) --- cmd/root.go | 2 +- cmd/root_test.go | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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) + } +}