(wellKnownRoot, skills)
| 983 | } |
| 984 | |
| 985 | function writeIndexJson(wellKnownRoot, skills) { |
| 986 | const indexPath = path.join(wellKnownRoot, 'index.json'); |
| 987 | const payload = {skills}; |
| 988 | fs.writeFileSync(indexPath, JSON.stringify(payload, null, 2) + '\n'); |
| 989 | console.log(`Generated ${path.relative(REPO_ROOT, indexPath)}`); |
| 990 | } |
| 991 | |
| 992 | /** |
| 993 | * Generate a single skill. |