course-viewer
БесплатноЗапускает вложенные скриптыНе проверенShow an enrolled course and its lessons. Use lesson-design to author or repair the current lesson before delivering teaching; render published content and…
от madhvantyagi★ 350 звёзд на GitHubОб этом скилле
Course viewer
Render the enrolled course and its published lessons. The HTML page and its
neighboring assets/ directory can be read locally; the course server saves exercises to JSON and reveals
answers after submission. Math uses KaTeX. Pale peach editorial page: top bar with GNOS + tabs, hero
with giant title + field metadata, curriculum list + topic details.
Use this skill when the learner asks to see the course or answers yes after
the current lesson is ready. Re-render after a changed lesson or artifact
before giving a page link. A learner who explicitly asks for only
the outline may see its contents and sources through --outline-only.
For an explicit context load at this step, use assemble_context.py --mode viewer --subject <subject> --learner <learner> --course-id <course-id>.
Render only from the
enrolled workspace at learners/<learner>/courses/<course-id>,
never from a blueprint outputs/ file.
Complete the lesson handoff before showing teaching
Read the current topic and its published lesson. Course design supplies the
outline; lesson-design supplies the teaching.
If the current topic has no ready lesson, use that skill and its
lesson design reference to
author it before delivering a lesson page. If the learner reports a shallow
lesson, set its publication back to draft, use the same reference to
repair its explanation and examples, write a new design_receipt, and
re-publish as ready — do not edit a ready file in place.
Do not write lesson content from course.json inside this viewer workflow.
The renderer does not call a model or invoke skills: the host must perform
the handoff, review the lesson, and publish it. A normal render requires a
ready lesson for the current
topic whose design_receipt.course_fingerprint equals the enrolled
course.json fingerprint and whose design_receipt.review is pass.
It fails otherwise with instructions to run lesson design first. Use
--outline-only only for an explicitly requested outline or contents preview.
If rendering fails, do not link an earlier portal/index.html or say the
course is ready to view.
The local server also checks the current lesson before starting and whenever
it serves the page, so an old page cannot be used after the course moves on.
The receipt checks a recorded handoff and course match. It cannot prove that
the host read the skill or that the explanation is good; review the lesson.
Render
.venv/bin/python skills/course-viewer/scripts/render_viewer.py learners/alex/courses/motion
The script reads course.json, published lessons, and the artifact
manifest, then writes portal/index.html and copies the bundled KaTeX,
syntax-highlighting, and math-font assets to portal/assets/.
Open it locally:
.venv/bin/python skills/course-viewer/scripts/serve_course.py learners/alex/courses/motion --port 8080
# visit http://127.0.0.1:8080/portal/
Use this server for exercise interaction. A plain file or generic static server
cannot write a learner response to the course workspace. Save answer persists
an attempt under submissions/<exercise-id>/<attempt-id>.json; only a
successful save enables Show answer. The solution is fetched on that explicit
request and the reveal is recorded separately from the learner's response.
Saved answers show automatic feedback or an awaiting-review state. Explicit tutor reviews show the interpretation and next step; attempt history preserves the original work. Returning to the page refreshes feedback without replacing unsaved edits. The lesson review status explains whether more practice, a prerequisite repair, or continuation is appropriate.
When the learner asks to continue, follow exercise review before changing the current topic. The host reviews actual responses and the lesson, records evidence and any repair, then saves a continuation decision. The page does not invoke a tutor automatically. Re-render and reload after lesson edits: saves identify the displayed exercise and lesson versions and reject stale pages.
The layout
The design lives in references/example.html. Follow that layout and the approved palette:
- the approved forest palette: pale peach (#FDE5D4), dark ink (#001524), green links and dividers (#445D48), brown state labels (#5E3023); solid fills, 2–4 pixel radii, and monospace metadata
- topbar: GNOS logo left, tabs center (Overview, Lessons, Exercises, Sources, Artifacts with teal underline for active), All courses → right
- hero: giant condensed title + Rev, mono subtitle; right meta block with FIELD / LEVEL / RESOURCES behind a vertical divider
- overview is Curriculum (left) + Topic details (right): chapters as "Chapter 01 + Title", topics as numbered rows with Current (navy) / Planned (plum) + › chevron; selected row has solid fill and a green edg
Установить course-viewer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл course-viewer?
Show an enrolled course and its lessons. Use lesson-design to author or repair the current lesson before delivering teaching; render published content and serve the local page with saved exercises.
Как установить скилл course-viewer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл course-viewer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic