INNER CODE UNIT · Go

TestSkillsAreCopies

xo/usql · agents_test.go:71

func TestSkillsAreCopies(t *testing.T) {
	t.Parallel()
	var lock struct {
		Skills map[string]json.RawMessage `json:"skills"`
	}
	if err := json.Unmarshal([]byte(readFile(t, "skills-lock.json")), &lock); err != nil {
		t.Fatalf("reading skills-lock.json: %v", err)
	}
	if len(lock.Skills) == 0 {
		t.Fatal("skills-lock.json names no skill")
	}
	roots := []string{filepath.Join(".agents", "skills"), filepath.Join(".claude", "skills")}
	for _, root := range roots {
		entries, err := os.ReadDir(root)
		if err != nil {
			t.Errorf("%s: %v. Install the skills with the command in CONTRIBUTING.md", root, err)
			continue
		}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…