Fix Kiro ref file bug, add missing test coverage for Agents/Kiro/utils

Fix bug in Kiro transformer where commandNames was incorrectly passed
to replacePlaceholders for reference files. Add dedicated test suites
for Agents and Kiro transformers, and add unit tests for
replacePlaceholders and prefixSkillReferences utilities. (107 → 164 tests)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Paul Bakaus
2026-03-10 13:31:42 -07:00
co-authored by Claude Opus 4.6
parent 07650ffd2c
commit 04f26b3e4d
4 changed files with 756 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ export function transformKiro(skills, distDir, patterns = null, options = {}) {
ensureDir(refDir);
for (const ref of skill.references) {
const refOutputPath = path.join(refDir, `${ref.name}.md`);
const refContent = replacePlaceholders(ref.content, 'kiro', commandNames);
const refContent = replacePlaceholders(ref.content, 'kiro');
writeFile(refOutputPath, refContent);
refCount++;
}