| name | generate-card |
| description | Regenerate a single card within an existing course |
| user-invocable | true |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash |
Generate Card
Regenerate a single card within an existing course.
Usage
/generate-card <course-slug> <card-filename>
Example: /generate-card claude-architect 05-quiz-agentic.md
Workflow
- Read the existing card at
courses/<course-slug>/cards/<card-filename>.
- Read
courses/<course-slug>/course.md for domain context.
- Read
courses/<course-slug>/graph.yaml for prerequisite context.
- Read the wiki pages referenced in the card's
wiki_refs.
- Read the source material referenced in the card's
source field.
- Preserve the card's existing
id field — do not change it.
- Regenerate the card content following all schemas and constraints from the
/generate-course skill.
- Update
content_hashes to reflect current wiki page content.
- Run the validator:
npx tsx scripts/validate-course.ts courses/<course-slug>
- Fix any failures before completing.