(t *testing.T, baseDir, relDir, content string)
| 506 | } |
| 507 | |
| 508 | func writeSkill(t *testing.T, baseDir, relDir, content string) { |
| 509 | t.Helper() |
| 510 | skillDir := filepath.Join(baseDir, filepath.FromSlash(relDir)) |
| 511 | require.NoError(t, os.MkdirAll(skillDir, 0o755)) |
| 512 | require.NoError(t, os.WriteFile(filepath.Join(skillDir, "SKILL.md"), []byte(content), 0o644)) |
| 513 | } |
| 514 | |
| 515 | func remoteSkillFrontmatter(name, sourcePath, ref, pinned string) string { |
| 516 | return remoteSkillFrontmatterForRepo(name, "https://github.com/monalisa/skills-repo", sourcePath, ref, pinned) |
no test coverage detected