import { mkdirSync, writeFileSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { catalog } from '../skills-review/catalog.js';

for (const entry of catalog) {
  const output = join('skill-reviews', 'improved', entry.id, 'SKILL.md');
  mkdirSync(dirname(output), { recursive: true });
  writeFileSync(output, entry.improved);
}
console.log(`wrote ${catalog.length} improved skill drafts`);
