larksuite/cli · error

%s child Skill list mismatch: got %v, want %v

Error message

%s child Skill list mismatch: got %v, want %v

What it means

assertSameSkillNames compares the directory listing under a suite's references/ against the expected skill set and the lists differ - the archive (or the cropped result) contains skills it should not or misses ones it should have. The label names which comparison failed.

Source

Thrown at internal/skillscheck/layout.go:213

	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. Align the reference directories with the declared skill list and re-run the sync
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at internal/skillscheck/layout.go:213 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/c4d15c7fa4d148b4. Report an issue: GitHub.