一键导入
courses
AI agent skill for the Active Inference Institute courses repository. Covers course content, the Python publishing engine, and CI/test infrastructure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
AI agent skill for the Active Inference Institute courses repository. Covers course content, the Python publishing engine, and CI/test infrastructure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | courses |
| version | 1.0.0 |
| description | AI agent skill for the Active Inference Institute courses repository. Covers course content, the Python publishing engine, and CI/test infrastructure. |
| tags | ["active-inference","courses","education","python","publishing"] |
| platforms | ["hermes","agentskills.io"] |
| requires | ["uv","python>=3.11"] |
The ActiveInferenceInstitute/courses repository contains:
software/) that renders Markdown + TOML course configs into PDF, DOCX, HTML, and audio artefactscourses/
├── course_development/ # Source curricula (Markdown + course.toml files)
├── published/ # Rendered outputs (generated, not hand-edited)
├── software/ # Python engine
│ ├── src/ # 21 importable modules
│ ├── scripts/ # 22 CLI entry points
│ ├── tests/ # 1,021 tests
│ └── docs/ # Architecture, CONTRIBUTING, QUICKSTART, …
├── summaries/ # Auto-generated course summaries
├── publish.py # Top-level pipeline entry point
└── publish.toml # Publishing config: toggle courses, formats, options
| Task | Command |
|---|---|
| Install deps | cd software && uv sync --extra dev |
| Run all tests | cd software && uv run pytest tests/ -v |
| Publish one course | uv run python scripts/generate_all_outputs.py --course active_inference |
| Top-level publish | python publish.py |
| Lint | cd software && uv run ruff check src/ scripts/ |
| Type check | cd software && uv run mypy src/ |
| Verify no-mocks | cd software && python scripts/verify_no_mocks.py |
Every directory has an AGENTS.md that explains its purpose, rules, and links to children. Always read the relevant AGENTS.md before editing.
This is a hard policy. Test with real implementations, real temp files (use the temp_dir fixture), and real library calls. The verify_no_mocks.py script and CI enforce this.
src/Every module follows the three-file pattern:
main.py — public API (the only file other modules may import from)utils.py — private helpersconfig.py — constants and schemasAll courses must follow the same topic ordering in every unit. Do not add, remove, or reorder topics.
Match formalism, code, and lab style to the target audience level (see AGENTS.md for the table). Do not add calculus to the K-5 course.
published/ is generated. Never hand-edit files there. Re-run the publishing pipeline to update them.
.github/workflows/ci.yml): lint → no-mocks → tests (py3.11 + py3.12).pre-commit-config.yaml): ruff, ruff-format, mypy, no-mocks, standard hookspre-commit install (from repo root)course_development/<slug>/course.toml and module Markdown filessrc/batch_processing/config.py → COURSE_REGISTRYpublish.toml (set to false initially if experimental)uv run python scripts/generate_all_outputs.py --course <slug> to smoke-testtests/software/docs/QUICKSTART.md — installation & first runsoftware/docs/ARCHITECTURE.md — system design and module mapsoftware/docs/CONTRIBUTING.md — contribution rules (no-mocks policy, code standards)software/docs/TESTING.md — test patternssoftware/docs/COURSE_CATALOG.md — all courses at a glance