(name)
| 90 | } |
| 91 | |
| 92 | if (missing.length > 0) { |
| 93 | throw new Error(`skills missing trigger_keywords frontmatter: ${missing.join(', ')}`); |
| 94 | } |
| 95 | |
| 96 | // Code-point comparison keeps the sort identical across machines and locales. |
| 97 | skills.sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0)); |