"Generate a Mimyr mini-course module from source content. Use when creating a module index plus chapter plan/pages from transcripts, docx files, diagnostics, and templates — criar um módulo, reorganizar um módulo de curso."
Install
npx skillscat add sallzzbr/hefesto-publico/gerar-modulo Install via the SkillsCat registry.
Gerar Módulo
Generate a complete module folder for a mini-course, using the workspace directory layout: module index, chapter sub-pages, and optional legacy redirect.
Workspace
Opera sobre um workspace de curso, com paths resolvidos pela regra única do plugin (workspace CLAUDE.md → defaults local_* → convenção do cwd; ver ../gerar-curso/references/defaults.md — menções literais são ilustrativas): exige o diretório de templates e o de cursos resolvidos (convenção ./templates/ e ./courses/<curso>/). Se o de templates não existir, PARE com mensagem clara.
Skills externas (bragir)
Esta skill consome o plugin bragir (mesmo marketplace):
bragir:escrever-como-antonio— use for final prose in Hook, Concept, Real case, Na Prática, Reflita, and module intro copy.bragir:gerenciar-personas— invoke only if./personas/is missing and the course needs persona adaptation. The course manifesto remains./courses/<curso>/personas.md.
Input
The user will provide:
- Course slug (
<curso>) - Module number and title
- Content scope and source files
- Transcript(s)
- Diagnostic file(s)
./perfil-de-voz.md(resolved bybragir:escrever-como-antonio)./courses/<curso>/personas.md+ referenced files in./personas/
Required reads
Read before generating:
./templates/module-index.html./templates/subpage.html./courses/<curso>/styles.css- Existing modules in
./courses/<curso>/modulo-*for navigation and density - Relevant diagnostics in
./diagnostics/
Output layout
Create or update:
./courses/<curso>/modulo-N/index.html— module landing page generated from./templates/module-index.html./courses/<curso>/modulo-N/<capitulo>.html— capítulos generated from./templates/subpage.html- Root-level redirect legado when needed — a small redirect page from the old module URL to the module index
Do not make the root redirect the canonical content. The canonical module content is the folder index plus capítulos.
Module generation rules
- Build a chapter list before writing pages.
- Each chapter should have one clear learning job.
- Keep chapter reading time around 4-8 minutes.
- Use
mimyr:escrever-capitulofor each chapter that needs full prose. - Set module previous/next links across the course.
- Set chapter previous/next links inside the module.
- Use
bragir:escrever-como-antoniofor final copy.
Após criar/remover/reordenar capítulos
Rode os dois scripts do plugin (idempotentes; ver bootstrap do venv no README do plugin):
python ${CLAUDE_PLUGIN_ROOT}/scripts/injetar_sidebar.py ./courses/<curso>— regenera a sidebar (nav.chapter-toc) de todos os capítulos, marcando o atual comaria-current;python ${CLAUDE_PLUGIN_ROOT}/scripts/atualizar_indice_curso.py ./courses/<curso>— sincroniza contagem de capítulos e tempo de leitura noindex.htmldo curso.
Content rules
- Write for the course personas, not a generic student.
- Translate technical terms on first occurrence.
- Apply course-specific exclusions from the diagnostic or course plan; do not reuse topic cuts from another course unless the current diagnostic repeats them.
- Replace outdated examples with current, inspectable examples.
- Include practical exercises that work on a phone or browser without setup.
Output report
After generating, report:
- Module index path
- Chapter paths
- Legacy redirect status
- Any source gaps or assumptions
- Suggested next review with
mimyr:revisar-capitulo