Prompt file imported from matiasgel/judiciales2026ush (
.github/prompts/edu-switch-course.prompt.md). Copyright stays with the author.
- Load
{project-root}/_edu/config.yamland store ALL fields as session variables. - Show current state:
"Materia activa: {course_prefix}-{course_year} ({project_name})"
- Ask the user:
"¿A qué materia querés cambiar? Escribí el prefijo (ej:
para,leng,algo)." - Validate the prefix: must be lowercase, 2-6 characters, alphanumeric only.
- Update
{project-root}/_edu/config.yaml:- Set
course_prefixto the new value. course_idse recalcula automáticamente como{course_prefix}-{course_year}.course_output_folderytopics_folderusan{course_id}como subdirectorio.
- Set
- Check if
{output_folder}/cursadas/{new_course_id}/exists.- If yes → "Ya existe el workspace de {new_course_id}. Continuás donde lo dejaste."
- If no → "Workspace nuevo para {new_course_id}. Creá la estructura con /edu-start-course."
- Clear
{project-root}/_edu/active-topic.yamlif it exists (the topic context belongs to the previous course). - Confirm:
"✅ Materia activa: {new_course_id} — Todas las rutas apuntan a
cursadas/{new_course_id}/"