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

Function skillMarkdown

scripts/skill-scaffold.js:44–98  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

42}
43
44function skillMarkdown(args) {
45 return `---
46name: ${args.name}
47description: >-
48 ${args.description}
49user-invocable: true
50auto-trigger: false
51last-updated: 2026-06-04
52task-class: ${args.taskClass}
53risk-level: ${args.riskLevel}
54expected-artifacts: [HANDOFF]
55verification-commands: [node scripts/skill-lint.js ${args.name}]
56benchmark-status: ${args.withBenchmark ? 'present' : 'none'}
57neighbor-skills: []
58---
59
60# /${args.name}
61
62## Orientation
63
64Use when this workflow is the narrowest fit for the user's request.
65Do not use when another named skill is more specific.
66
67## Protocol
68
691. Read the relevant project context.
702. Make the smallest scoped change that satisfies the request.
713. Verify with the commands listed in frontmatter.
72
73## Fringe Cases
74
75- **Missing project state:** Explain what is missing and stop before writing speculative files.
76
77## Contextual Gates
78
79**Disclosure:** State which files or state directories will be touched.
80**Reversibility:** amber -- generated skill files can be removed if the workflow is not useful.
81**Trust gates:** Any.
82
83## Quality Gates
84
85- \`node scripts/skill-lint.js ${args.name}\` passes.
86- Any benchmark scaffold validates with \`node scripts/skill-bench.js --skill ${args.name}\`.
87
88## Exit Protocol
89
90\`\`\`
91---HANDOFF---
92- What changed
93- Verification run
94- Remaining risks or next steps
95---
96\`\`\`
97`;
98}
99
100function benchmarkMarkdown(args) {
101 return `---

Callers 1

scaffoldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected