larksuite/cli · error

remove stale official skills failed: %s

Error message

remove stale official skills failed: %s

What it means

removeSkills wraps a failed RemoveGlobalSkills runner call (nil result or result.Err) after a successful suite install; %s is the structured result detail. Stale separate skills remain installed when this fires.

Source

Thrown at internal/skillscheck/layout.go:204

	}
	sort.Strings(names)
	return names
}

func installedNameIfPresent(installed []installedSkill, name string) []string {
	if hasInstalledSkill(installed, name) {
		return []string{name}
	}
	return nil
}

func removeSkills(runner SkillsRunner, names []string) error {
	if len(names) == 0 {
		return nil
	}
	result := runner.RemoveGlobalSkills(uniqueSorted(names))
	if result == nil || result.Err != nil {
		return fmt.Errorf("remove stale official skills failed: %s", resultDetail(result))
	}
	return nil
}

func assertSameSkillNames(got, want []string, label string) error {
	got = uniqueSorted(got)
	want = uniqueSorted(want)
	if strings.Join(got, "\x00") != strings.Join(want, "\x00") {
		return fmt.Errorf("%s child Skill list mismatch: got %v, want %v", label, got, want)
	}
	return nil
}

View on GitHub (pinned to 7fd6ef3c07)

Solutions

  1. Retry `lark-cli skills update`; if it persists, remove the stale skills manually per the result detail
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at internal/skillscheck/layout.go:204 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of larksuite/cli@7fd6ef3c07 (2026-09-04). Data as JSON: /api/errors/8796502e4138b4e2. Report an issue: GitHub.