MCPcopy Create free account
hub / github.com/SethGammon/Citadel / render

Function render

scripts/skill-catalog.js:37–46  ·  view source on GitHub ↗
(catalog)

Source from the content-addressed store, hash-verified

35}
36
37function render(catalog) {
38 const lines = [];
39 lines.push('Skill Catalog');
40 lines.push('='.repeat(40));
41 lines.push(`Skills: ${catalog.skills.length}/${catalog.skillCount}`);
42 for (const skill of catalog.skills) {
43 lines.push(` ${skill.name.padEnd(24)} ${skill.taskClass.padEnd(14)} ${skill.riskLevel.padEnd(6)} benchmarks=${skill.benchmarkCount}`);
44 }
45 return `${lines.join('\n')}\n`;
46}
47
48function main() {
49 const args = parseArgs(process.argv);

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected