const MARKER_START = '<!-- SKILLS-INDEX-START -->';
const MARKER_END = '<!-- SKILLS-INDEX-END -->';
/** Generate the Claude-specific skills index block (between SKILLS-INDEX-START/END markers). */
export function generateSkillsIndex(groups, providerSkillsDir) {
    const root = providerSkillsDir.replace(/\/$/, '');
    const header = `[Project Skills Index]|root:${root}|IMPORTANT:Prefer retrieval-led reasoning over pre-training.Read SKILL.md first,then related files.`;
    const lines = groups.map((g) => `|${g.relativePath}:{${g.files.join(',')}}`);
    return MARKER_START + '\n' + header + lines.join('') + '\n' + MARKER_END;
}
