Keeping Quality in LearnPack Tutorials
Quality gate: use learnpack audit to scan configuration, links, images, and exercise structure before you publish. 🧪
Audit your tutorial
With LearnPack you can audit your repository and check for possible errors. Run:LearnPack audit errors
The audit command currently validates:- Basic
learn.json: the configuration must includeslug,repository, anddescription. - No user or session files in the repo: when LearnPack runs it generates session files (telemetry, login, etc.). Remove them before publishing. You can fix this by running
learnpack clean. - Empty or missing files: every step must include at least one README file.
- Broken links: scans step instructions to ensure no links return 404.
- Valid image URLs (relative or absolute): scans step instructions to ensure all images load correctly.
- Exercise directory names: folders must follow LearnPack’s convention, starting with a number and a descriptive name.
exercisesarray contains session content: acontig.jsonfile is generated during a session and should be emptied before publishing.
LearnPack audit warnings
- Inconsistent translations.
- Missing
.gitignore. - Loose files: files inside the
exercisesfolder but not within any specific exercise directory.
Tip: after fixes, run learnpack audit again until your repository is clean. For student-side data hygiene, remind learners to avoid committing files generated under .learn/.
Next up
Grading LearnPack Tutorials
Incremental, isolated, and no-grading modes, plus test validation.
LearnPack Configuration
Editor, grading, and delivery settings in learn.json.
Telemetry Configuration
Configure batch and stream endpoints for events.
Publish a LearnPack package in the cloud
Ship via Gitpod or Codespaces with minimal setup.

