Rules
Each rule is one requirement on a learning app. It lives where it acts: as a section of a skill for AI assistants, as a check, as a lint rule or as an item of the review rubric. The same rule can live in several of them, always under the same id. This page reads them from there.
- Scope:
listingapplies to every app in the app overview, however it is built and wherever it is hosted;toolingto apps built with this tooling (theirpackage.jsonlists@lernapps/tooling), because the rule presupposes its plan workflow or its checks;archetype:…to apps of that archetype. - Severity:
errormust not be broken;warningonly with a reason recorded in place;hintis a recommendation. Atoolingrule never blocks a listing: in the listing validation and the review its findings are warnings at most, advice for the creator; in the app's repo its severity holds.
Every message of a check links to its rule here, by its id: https://lernapps.net/tooling/rules/#<id>.
| Rule | Scope | Severity |
|---|---|---|
accessible | listing | error |
app-checkable | listing | error |
correct-content-support | listing | hint |
dependency-licence | listing | error |
entry-fitness-matches | listing | error |
entry-from-schema | listing | error |
entry-links-resolve | listing | error |
free-of-charge | listing | error |
learner-text-german | listing | error |
learners-act | listing | error |
links-resolve | listing | error |
no-account | listing | error |
no-ads | listing | error |
no-committed-dependencies | listing | warning |
no-learner-data-in-texts | listing | error |
no-request-before-click | listing | error |
no-tracking | listing | error |
own-data-only | listing | error |
pages-reachable | listing | error |
runs-in-browser | listing | error |
third-party-licence | listing | error |
usable-at-360px | listing | error |
app-content-guide | tooling | error, warning at listing |
app-content-matches | tooling | error, warning at listing |
assignment-from-map | tooling | hint |
checks-pass | tooling | error, warning at listing |
competencies-on-map | tooling | warning |
content-matches-competencies | tooling | hint |
early-preview | tooling | hint |
explainer-interaction | tooling | hint |
explainer-page-variety | tooling | hint |
explainer-repetition | tooling | hint |
explainer-text-load | tooling | hint |
explainer-visual | tooling | hint |
explore-before-code | tooling | error, warning at listing |
feedback-applied-everywhere | tooling | hint |
few-turns-after-plan | tooling | hint |
fix-from-message | tooling | error, warning at listing |
lockfile-matches | tooling | error, warning at listing |
one-competency-per-page | tooling | hint |
plan-file | tooling | error, warning at listing |
prerequisites-in-order | tooling | warning |
recap-names-competencies | tooling | warning |
retrospective-filled | tooling | error, warning at listing |
stop-at-checkpoints | tooling | error, warning at listing |
strand-from-map | tooling | hint |
suppression-reason | tooling | error, warning at listing |
explainer-age-appropriate | archetype:explainer | hint |
explainer-content-valid | archetype:explainer | error |
explainer-control-purpose | archetype:explainer | hint |
explainer-exercise-progression | archetype:explainer | hint |
explainer-figure-hides-answer | archetype:explainer | error |
explainer-formulas-static | archetype:explainer | error |
explainer-generated-sound | archetype:explainer | error |
explainer-honest-headings | archetype:explainer | hint |
explainer-language-practice | archetype:explainer | hint |
explainer-languages | archetype:explainer | error |
explainer-learner-start | archetype:explainer | hint |
explainer-mistakes-diagnosed | archetype:explainer | hint |
explainer-navigation | archetype:explainer | error |
explainer-one-step | archetype:explainer | hint |
explainer-only-content | archetype:explainer | error |
explainer-open-points | archetype:explainer | warning |
explainer-page-goal | archetype:explainer | hint |
explainer-plausible-numbers | archetype:explainer | warning |
explainer-quote-sourced | archetype:explainer | warning |
explainer-readable-without-js | archetype:explainer | error |
explainer-representation-explained | archetype:explainer | hint |
explainer-scope-matches | archetype:explainer | warning |
explainer-stable-ids | archetype:explainer | warning |
explainer-steps-explain | archetype:explainer | hint |
explainer-story-carries | archetype:explainer | hint |
explainer-structure-by-sections | archetype:explainer | error |
explainer-structure-complete | archetype:explainer | error |
explainer-structure-depth | archetype:explainer | error |
explainer-text-figure-agree | archetype:explainer | hint |
interactive-app-valid | archetype:interactive | error |
interactive-architecture-current | archetype:interactive | error |
interactive-core-contract | archetype:interactive | error |
interactive-playthroughs-pass | archetype:interactive | error |
keep-the-preset | archetype:explainer, archetype:interactive, archetype:quiz | error |
pages-from-gh-pages | archetype:explainer, archetype:interactive, archetype:quiz | error |
prefer-built-in-block | archetype:explainer | hint |
quiz-answers-checked | archetype:quiz | hint |
quiz-bank-valid | archetype:quiz, archetype:explainer | error |
quiz-clear-question | archetype:quiz, archetype:explainer | warning |
quiz-feedback-explains | archetype:quiz, archetype:explainer | hint |
quiz-fitting-type | archetype:quiz, archetype:explainer | hint |
quiz-further-reading | archetype:quiz, archetype:explainer | warning |
quiz-number-precision | archetype:quiz, archetype:explainer | warning |
quiz-only-data | archetype:quiz | error |
quiz-own-words | archetype:quiz | warning |
quiz-plausible-options | archetype:quiz, archetype:explainer | warning |
quiz-stable-ids | archetype:quiz | warning |
start-page-explains | archetype:interactive | hint |
storage-through-wrapper | archetype:explainer, archetype:interactive, archetype:quiz | error |
strict-typescript | archetype:explainer, archetype:interactive, archetype:quiz | error |
topic-has-exercises | archetype:explainer | error |
vue-component-browser-globals | archetype:explainer, archetype:interactive | error |
vue-component-exercise-contract | archetype:explainer | error |
vue-component-imports | archetype:explainer, archetype:interactive | error |
vue-component-no-html-injection | archetype:explainer, archetype:interactive | error |
vue-component-no-network | archetype:explainer, archetype:interactive | error |
vue-component-nojs | archetype:explainer | error |
vue-component-props-valid | archetype:explainer | error |
vue-component-size | archetype:explainer | error |
vue-component-tested | archetype:explainer | error |
vue-component-tutor-table | archetype:explainer | hint |
Accessible to WCAG 2.1 AA
accessible · listing · error
- WCAG 2.1 AA: labels, contrast, keyboard, text alternatives.
- Deviate only where the idea needs it (typing game against the clock); then say what is missing, in plain German, in the entry's
limits. - With
limits:lernapps check --entryreports warnings; without: errors.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; checked by the check check/rules/accessible.ts.
The published app can be opened and checked
app-checkable · listing · error
- Opens at the entry's
url; a built app from its bundle (index.html). - Page does not load, build fails, no browser, check stops → only this rule is reported. Fix, check again.
- Opens in a browser but the check fails → issue at https://github.com/lernapps/tooling/issues with the message.
Told in skills/tooling/lernapps-cli/references/platform-rules.md.
Help keep the content correct
correct-content-support · listing · hint
- Computable answers: generate exercises, test answers with a checker.
- Name a source for facts. Where it fits; never a listing condition.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; judged by the rubric item in review/rubric.md.
Only dependencies with an open licence
dependency-licence · listing · error
dependenciesonly with these licences, transitively: MIT, MIT-0, ISC, 0BSD, BSD-2-Clause, BSD-3-Clause, Apache-2.0, MPL-2.0, BlueOak-1.0.0, Zlib, Unlicense, CC0-1.0, CC-BY-4.0, Python-2.0.- Build tools:
devDependencies.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; checked by the check check/rules/dependency-licence.ts.
Fitness values as measured
entry-fitness-matches · listing · error
fitness.storage,fitness.thirdPartyfrom what the app does;lernapps check --report <file>measures it.- Anything in
localStorageorsessionStorage, also what the app only reads on loading and keeps after an input (an assistant chosen for the tutor, an answer being written) →storage: device; loads from another server after a click →thirdParty: on-click.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; checked by the check check/rules/entry-fitness-matches.ts.
Fill the entry from the published schema
entry-from-schema · listing · error
- Fetch the entry schema each time; never from memory or another app.
- Every value from the creator's answers, the plan or the app; never invented.
Told in skills/tooling/lernapps-cli/references/platform-rules.md.
Every link of the entry resolves
entry-links-resolve · listing · error
- Each topic: path of an existing page, relative to the app's
url;<page>#<section>names an element id there. - Check against the deployed app:
lernapps check --entry <file>.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; checked by the check check/rules/entry-links-resolve.ts.
Free of charge
free-of-charge · listing · error
- Every part free: no payment, paid upgrade or ending trial.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; judged by the rubric item in review/rubric.md.
German always, every declared language complete
learner-text-german · listing · error
- Texts for learners, teachers, parents: German, plain (short sentences, active voice, no jargon).
- Never English only: an app in English is German and English, German first.
- More languages only where the archetype supports them (explainer, quiz:
languages, German first); each declared language complete, no other. - Texts out of code: in the content (explainer YAML, quiz bank) or message files (
src/messages/de.json, shown withtranslatorfrom@lernapps/tooling/i18n).
Told in skills/tooling/lernapps-cli/references/platform-rules.md; checked by the lint rule lint/rules/learner-text-german.ts; judged by the rubric item in review/rubric.md.
Learners do something themselves
learners-act · listing · error
- Every page or screen asks learners to try, practise or decide. Reading alone is not enough.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; judged by the rubric item in review/rubric.md.
Every link resolves
links-resolve · listing · error
- Every link and resource points to a page or file the build writes. Relative links inside the app.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; checked by the check check/rules/links-resolve.ts.
No account
no-account · listing · error
- Whole app usable without sign-up or login.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; judged by the rubric item in review/rubric.md.
No ads
no-ads · listing · error
- No advertising, sponsored content or product placement.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; judged by the rubric item in review/rubric.md.
Dependencies are not committed
no-committed-dependencies · listing · warning
node_modules/is not in the repository, however it got there (git add -Abefore.gitignore). Repair:git rm -r --cached node_modules, commit.lernapps checkfinds tracked files below it.
Told in skills/process/lernapps-commit/SKILL.md; checked by the check check/rules/no-committed-dependencies.ts.
Nothing about a particular learner in public texts
no-learner-data-in-texts · listing · error
- No name, class, school, grade, picture or other detail of a real learner in app, entry, README, plan or commit message, even if the creator mentions one. Made-up names in exercises.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; judged by the rubric item in review/rubric.md.
No request to another server before a click
no-request-before-click · listing · error
- Bundle fonts, scripts, pictures at build time.
- Other servers (video, map) only after the learner's click.
- No other servers' URLs in code; at a click-to-load line suppress the lint message with this reason.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; checked by the check check/rules/no-request-before-click.ts; checked by the lint rule lint/rules/no-request-before-click.ts.
Collect nothing, set no cookies
no-tracking · listing · error
- No cookies, analytics, tracking pixels, server storing data.
- Stored data stays on the device (
localStorage, orsessionStoragewhile the tab is open) and serves only the app.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; checked by the check check/rules/no-tracking.ts; judged by the rubric item in review/rubric.md.
Touch only the app's own data in the browser
own-data-only · listing · error
- Every app on lernapps.net shares one origin with the other apps and the platform.
- Own data: keys of
localStorageandsessionStorage, IndexedDB databases and caches namedlernapps:<id>:…,<id>the app's id in the catalog (entries/<id>.yaml). - Also every app's: the learner's settings for every app (
lernapps:settings:<key>, a key without a colon) and for every app of the page's archetype (lernapps:settings:<archetype>:…, the archetype of<meta name="lernapps-archetype">); never another archetype's.settingsis never an app's id. - Never read, write or remove other keys; never
clear(); nevercaches.match()withoutcacheName. - Built with this tooling:
createStorage("<id>")from@lernapps/tooling/storage; settings withcreateSettings("<id>", "<archetype>"). lernapps checkputs another app's data into the browser and reports every access to it, before a click.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; checked by the check check/rules/own-data-only.ts; judged by the rubric item in review/rubric.md.
Every page is reachable from the start page
pages-reachable · listing · error
- Every built page linked from the start page or a page it leads to; the listing checks only those.
- Pages nobody should reach: out of the build. Reached otherwise on purpose:
<meta name="robots" content="noindex">. 404.htmlat the root needs no link.- On a URL the checks visit at most 100 pages (hint); check the bundle for all.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; checked by the check check/rules/pages-reachable.ts.
Runs in the browser, without installation
runs-in-browser · listing · error
- Opens and works at its URL in a current browser. No app store, download or extension.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; judged by the rubric item in review/rubric.md.
Name source and licence of others' content
third-party-licence · listing · error
- Others' content (texts, pictures, quotes) only with a licence that allows it; source and licence next to it.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; judged by the rubric item in review/rubric.md.
Usable at 360 px
usable-at-360px · listing · error
- Every page at 360 px width: no horizontal scrolling, every control reachable.
- Deviate only where the idea needs it (keyboard required), in
limitsas underaccessible.
Told in skills/tooling/lernapps-cli/references/platform-rules.md; checked by the check check/rules/usable-at-360px.ts.
Keep the app's content guide
app-content-guide · tooling · error · warning at listing
- Keep the app's content guide
.agents/skills/app-content/SKILL.mdcomplete and true: no placeholder left once content is written, and it says what was built. - Its fixed headings, in this order, each filled: Curriculum, Competencies, Content structure, Terminology, Exercise patterns, Figures, Sources, Adding a chapter or round, Rules learned from mistakes ("None yet." until the first rule).
- After the plan is confirmed and before content: replace every placeholder ("FILL IN") with concrete instructions for writing new content: files, ids, data files, an example of this app. Not how the app works, no general advice.
- A content decision changes (pattern, figure type, source rule) → change the guide in the same commit.
lernapps checkchecks the file and its headings always, and that no placeholder is left once the plan is in Commit.- App older than the guide:
lernapps updateadds the skeleton (skilllernapps-cli).
Told in guidance/workflow-rules.md; checked by the check check/rules/app-content-guide.ts.
The content guide says what was built
app-content-matches · tooling · error · warning at listing
- The guide describes the app as built, so that an agent without your conversation can add the next chapter or round from it alone.
- Every pattern it names is used; no pattern is used that it does not name.
- Curriculum, competencies, chapters, pages or rounds match the content.
- Its procedure for a new chapter or round names the current files.
Told in guidance/workflow-rules.md; judged by the rubric item in review/rubric.md.
An app without fixed content starts from an assignment
assignment-from-map · tooling · hint
- The teacher has no fixed content → write the assignment of section 5 before the plan.
- Its pages are gaps of the class's band the archetype can practise, in the order of their place.
Run the checks before you push
checks-pass · tooling · error · warning at listing
lernapps checkpasses before every push. The hooks run it too; CI runs the same command and keeps its report as the artifactvalidation-report.
Told in skills/tooling/lernapps-cli/SKILL.md.
The strand or subject and the page competencies are on the map
competencies-on-map · tooling · warning
strandinsrc/app.yamlis a strand of the subject's map, and each page'scompetenciesare ids of that strand.subject(a unit app) only where the subject's map saysexplainerFocus: competency. Its pages may take ids of every strand of the subject, but the ids of one page belong to one strand.- Each competency of a recap page (
recap) is on the map, of any strand, and the app does not practise it on a page of its own. - At the listing each of these is an error of the catalog (
entry-learning-map).
Told in skills/archetypes/lernapps-explainer-design/references/map-rules.md; checked by the check check/rules/competencies-on-map.ts.
Each page teaches its competencies
content-matches-competencies · tooling · hint
- A page teaches what the "Ich kann …" sentence (
iCan) of its competencies says in the map: not clearly more, and not something else. The review reads each page with that sentence. - More to teach belongs on a page of the competency that says it. If the map has none, propose it to
lernapps/apps(map/<subject>.yaml); never invent a competency in the app.
Told in skills/archetypes/lernapps-explainer-design/references/map-rules.md; judged by the rubric item in review/archetypes/explainer.md.
A pattern page first, with the creator's look
early-preview · tooling · hint
- In Code, build one complete page or screen first, check it as a learner would, then show it to the creator and ask whether the other pages may follow it.
- The learner check and the message to the creator: skill
lernapps-learner-check. - A checkpoint: wait for the answer. A change → change the pattern first, then build the other pages after it.
Told in guidance/workflow-rules.md.
Learners do more than tick
explainer-interaction · tooling · hint
- At least four exercises on a page (a component counts), not three quarters or more guessable choices (single choice, multiple choice, true or false) without a component, and not all of one kind.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; checked by the check check/rules/explainer-interaction.ts.
Pages do not all practise alike
explainer-page-variety · tooling · hint
- From four pages on, no one set of exercise kinds on half of the pages or more.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; checked by the check check/rules/explainer-page-variety.ts.
Each thing once
explainer-repetition · tooling · hint
- Not more than 10 phrases of five words said by two text blocks of a page, or by two exercises of one type. Repeating in another part (text, then task, then table) is a way to teach: do it on purpose, to deepen it differently.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; checked by the check check/rules/explainer-repetition.ts.
A page is not mostly text
explainer-text-load · tooling · hint
- At most 350 words to read and 350 in tasks and feedback on a page, at most 4 text blocks in a row, and a figure, table or exercise within the first 4 blocks.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; checked by the check check/rules/explainer-text-load.ts.
Something to look at
explainer-visual · tooling · hint
- At least half of the pages have something to look at besides tables and text: a figure, formula, code, quote, timeline, video or component.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; checked by the check check/rules/explainer-visual.ts.
No code before the plan is confirmed
explore-before-code · tooling · error · warning at listing
- No code and no
lernapps createuntil the creator has confirmed the plan with a yes.
Told in guidance/workflow-rules.md.
A remark on one page is checked on all
feedback-applied-everywhere · tooling · hint
- A remark of the creator on one place that is about a pattern, a fact or a term holds for every place: find them all and change them in the same task.
- Say first whether the remark is about that place or more ("Gilt das für alle Seiten?" only when you cannot tell).
- Search all of
src/for it, with variants: texts, answer infos, explanations, captions, alt texts and the content guide. Name the places in the plan. - A fix in a shared component: look at every page that uses it again.
Told in guidance/workflow-rules.md.
Work on your own after the plan
few-turns-after-plan · tooling · hint
- After the confirmation, ask only what you cannot decide; else choose, mark "(guess)" under "Key decisions" and list it in the retrospective.
Told in guidance/workflow-rules.md.
Fix failed checks, never bypass them
fix-from-message · tooling · error · warning at listing
- Fix the cause the message names.
- Never bypass a hook: no
--no-verify, no acceptance such asARC42_CONSISTENTwithout a finding shown. - Never delete a test to make it pass.
Told in skills/tooling/lernapps-cli/SKILL.md.
Commit the lock file with every dependency change
lockfile-matches · tooling · error · warning at listing
- Change dependencies with
npm install, never inpackage.jsonalone; commitpackage-lock.jsonwith it. - A git pin (
github:…#<commit>) moves in both files together.
Told in skills/tooling/lernapps-cli/references/code-rules.md; checked by the check check/rules/lockfile-matches.ts.
One page per competency
one-competency-per-page · tooling · hint
- Each page teaches one competency of the map:
competenciesholds one id. Several pages for one large competency are fine.
Told in skills/archetypes/lernapps-explainer-design/references/map-rules.md; checked by the check check/rules/one-competency-per-page.ts.
The plan's tasks change only through lernapps plan
plan-file · tooling · error · warning at listing
- Change the tasks, the phase and the front matter of a plan only with
lernapps plan:nextprints the task to do,doneticks it,skipticks a task that does not apply,addadds one. Never reword, delete or tick a task by hand. - Run
plan donewhen the work of the task has succeeded. In one command line with that work, join it with&&, so that a step that fails does not tick the task. Never tick several tasks in a loop. - Write into the plan's other sections yourself: Goal, Key decisions, Notes, Answers, Entry draft, Content method, Retrospective. Keep every section.
- Never change the plan of an earlier piece of work.
- The commit hook compares the tasks with the last commit and stops a commit that reworded or removed one. Restore the task; what it should say instead is a new task (
plan add) or a skipped one (plan skip).
Told in guidance/workflow-rules.md; judged by the rubric item in review/rubric.md.
Prerequisites come before the page that needs them
prerequisites-in-order · tooling · warning
A learner who meets a page without what it builds on is stuck, and the map shows which pages those are.
- Each direct prerequisite (
requiresin the map) of a page's competency is one of these: practised on that page or an earlier one; repeated on a recap page before it; or named in the page's text with a link to its page on the map,https://lernapps.net/apps/map/<subject>/c/<id>/. The prerequisites of a recapped competency do not count. - A page that comes before its prerequisite on purpose names it in
ahead: [<id>], and another page of the app practises it. A recap page or a link is not enough forahead. - A finding names the page, the prerequisite and its kind: - order: the app has it, but later. Move the pages. - gap: the app lacks it, but practises something that builds on it. Practise it in between, or recap or link it. - entry: nothing of its chain is in the app. Add a recap page before the page, or a link. - ahead: named in
ahead, but no page practises it, or no competency of the page requires it. Practise it, or remove it fromahead. - In a subject with
explainerFocus: competencya finding is a warning, else a hint. At the listing, order and gap are errors there.
Told in skills/archetypes/lernapps-explainer-design/references/map-rules.md; checked by the check check/rules/prerequisites-in-order.ts.
A recap page names each competency it repeats
recap-names-competencies · tooling · warning
The runtime puts only a link with the competency's id at the top of a recap page. What the learner should already know, the page's text has to say.
- The text names each competency of
recap, with its name (name.de) or its "Ich kann …" sentence (iCan) fromhttps://lernapps.net/apps/map/<subject>.json. Best as a short self-check at the start of the page.
Told in skills/archetypes/lernapps-explainer-design/references/map-rules.md; checked by the check check/rules/recap-names-competencies.ts.
Fill the retrospective
retrospective-filled · tooling · error · warning at listing
- At the end of Commit, fill every part with facts: phases reached, creator turns after the plan, where you guessed. No names.
- Failed checks need no entry: the check counts them in
failedChecks.
Told in guidance/workflow-rules.md; judged by the rubric item in review/rubric.md.
Stop at the creator's checkpoints
stop-at-checkpoints · tooling · error · warning at listing
- Checkpoints: research, confirm the plan and the content method, the pattern page (
early-preview), publish. Stop at each and wait for the answer. - Checkpoint list: open the listing pull request first (it publishes nothing), then show it and its result and wait.
- A message sent before the checkpoint's question is no yes.
lernapps plan done --answer "<their words>"ticks a checkpoint and keeps the answer in the plan. - Example: "Die App ist fertig und geprüft. Soll ich sie jetzt veröffentlichen?"
Told in guidance/workflow-rules.md.
Recommend a strand of the learning map
strand-from-map · tooling · hint
- The subject has a learning map → check its strands and recommend the one that fits the app.
strand: noneonly when no strand fits or the creator wants none; say why under "Notes".- With a strand: only that strand's competencies, by their ids; a missing one is proposed to
lernapps/apps.
Told in skills/content/lernapps-content-research/SKILL.md; judged by the rubric item in review/rubric.md.
Suppress only in place, with the reason
suppression-reason · tooling · error · warning at listing
- Lint: only on the line, with the rule named and the reason after
--:// oxlint-disable-next-line lernapps/no-request-before-click -- the video loads after a click. - Types: only
// @ts-expect-error -- <reason>; never@ts-ignoreor@ts-nocheck. - The review reads every suppression.
Told in skills/tooling/lernapps-cli/references/code-rules.md; checked by the lint rule lint/rules/suppression-reason.ts.
Address fits the age
explainer-age-appropriate · archetype:explainer · hint
- Tone, examples and length fit the grade: younger learners get short sentences and things from their day; older learners are not talked down to and get situations of their own world.
- The same "du" or "Sie" throughout, as the content guide says.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
The content validates
explainer-content-valid · archetype:explainer · error
- The content is valid against the schema; ids are unique per level; every reference exists (data file, image, component, link to a page or section); every placeholder is declared; formulas use only the listed commands.
- The build names each problem with file, line and block path. Fix it there.
Told in skills/archetypes/lernapps-explainer/references/rules.md.
Every control has a visible purpose
explainer-control-purpose · archetype:explainer · hint
- The page names each control of a component, says what to do with it and what to watch, on every page that has it. A reset or a "next" whose label says what it does needs no words. Each control changes something learners can see; one that changes nothing in a view on purpose says so there.
- The start state shows what stays the same; the next action changes it. After each change, labels, limits and positions agree. What learners compare stays in view.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
Exercises go from recognising to applying
explainer-exercise-progression · archetype:explainer · hint
Recognising what the page showed is not yet knowing it. Learners need to use it where the page did not.
- A page's exercises go from easy to harder: first recognise or repeat what the page showed, then apply it with other values, then in a new situation (another context, a word problem, the reverse question).
- A
generatedexercise counts by the range of its tasks; one kind of task alone is one level.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
The figure does not give the answer away
explainer-figure-hides-answer · archetype:explainer · error
- A task's figure shows what is given, never the answer. Its caption and
altname what is given, not the value to find. - An exercise component shows nothing before "Prüfen" that answers the task: no counter or live sentence that states what is checked, no mark on the right spot. What learners need while they work (how many they marked) is fine when the task asks something else.
- Neither the task's text nor its caption repeats an option.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
Formulas as formulas
explainer-formulas-static · archetype:explainer · error
- Every formula is a
formulablock or inline$…$, never plain text (W = G * p / 100) and never a picture. The runtime renders it as MathML, which a screen reader reads.
Told in skills/archetypes/lernapps-explainer/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
The property test passes
explainer-generated-sound · archetype:explainer · error
The build draws 200 tasks of each generated exercise and stops at the first that is wrong, naming its seed.
whereholds in at least one of ten draws; the answer is defined and fits its format for every draw; no mistake gives the same value as the answer.- A failure for a seed: narrow
givenor change the mistake. Never loosen the comparison.
Told in skills/archetypes/lernapps-explainer/references/rules.md.
Headings say what the section does
explainer-honest-headings · archetype:explainer · hint
A heading is a promise. "Ausprobieren" over a figure to look at sends learners looking for a control.
- Section ids stay fixed across pages; titles fit what the section does on that page. "Ausprobieren" only where learners operate something. A heading that promises an action the section does not offer misleads.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
Content method of a language app
explainer-language-practice · archetype:explainer · hint
Told in skills/content/lernapps-exercise-patterns/references/foreign-languages.md; judged by the rubric item in review/archetypes/explainer.md.
German first, every language complete
explainer-languages · archetype:explainer · error
languagesinsrc/app.yamlstarts with German.- Every text a learner reads (content, data files, props of components) is there in each declared language, and in no other. A missing translation fails the build.
Told in skills/archetypes/lernapps-explainer/references/rules.md.
Start where learners stand
explainer-learner-start · archetype:explainer · hint
- Start each page from what learners of the grade know: the competencies its competency
requiresin the map, and their everyday life. - Link the new idea to it with an analogy or a situation. Say where the analogy stops; two analogies for one idea: say what they share and where they differ.
- Explain a term where it is first needed. A definition box only where the page needs one.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
Typical mistakes with their message
explainer-mistakes-diagnosed · archetype:explainer · hint
- Computed tasks list real mistakes. Each message says what went wrong and how to fix it ("Du hast vergessen, durch 100 zu teilen", not "Falsch").
- An exercise component does the same: its
reasonnames the mistake a wrong answer shows, not only that it is wrong.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
One new step per page
explainer-one-step · archetype:explainer · hint
- A page adds one new idea: one statement its exercises check. A figure with several readings can bring several.
- Nothing of a later competency (
requiresin the map) or page, also not among the options of an exercise. - A second way to the same result is fine when it has its own derivation and example; one example per box.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
Write only the content
explainer-only-content · archetype:explainer · error
The runtime owns rendering, so that every explainer stays accessible, readable without JavaScript and up to date with lernapps update.
- You write the YAML of app, chapters, pages and data, images in
src/images/, and components with their logic and tests insrc/components/. Any other file insrc/fails the build. src/main.ts,index.html,e2e/explainer.e2e.tsand the configuration stay as generated (keep-the-preset).- What the notation cannot express goes under "Where I had to guess" in the plan. Never code around the runtime, and never change it in
node_modules.
Told in skills/archetypes/lernapps-explainer/references/rules.md.
An open task checks what the material teaches
explainer-open-points · archetype:explainer · warning
- An
open-taskhas 2 to 5 points, each one sentence a learner can check with yes or no; together they are what a good answer needs. - A point of the content names the section that teaches it (
source). A point of form haskind: form. - The model answer has every point, in the words of the class.
Told in skills/archetypes/lernapps-explainer/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
A page says what learners will be able to do
explainer-page-goal · archetype:explainer · hint
- Near its start each page says, in the learner's words, what they will be able to do after it, and how it builds on the page before (or on what they know, for a chapter's first page).
- The page ends where it said: its exercises check that goal, and it says what comes next.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
Numbers that fit the story
explainer-plausible-numbers · archetype:explainer · warning
- Ranges fit the thing (prices in whole cents, people whole); preconditions rule out misfits (90.91 people).
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
Quotes exact, with their origin
explainer-quote-sourced · archetype:explainer · warning
- Quote exactly. Name its origin (author, work, year), source and licence.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
Every page readable without JavaScript
explainer-readable-without-js · archetype:explainer · error
A page must teach the same on a school computer that blocks scripts and for a screen reader.
- Every fact stands in a block that shows without JavaScript. Nothing a learner needs is only inside an exercise or a component.
- Every component that is no exercise has a
nojstext that says what it shows, with its content.
Told in skills/archetypes/lernapps-explainer/references/rules.md; checked by the check check/rules/explainer-readable-without-js.ts; judged by the rubric item in review/archetypes/explainer.md.
Each figure and model says what it means
explainer-representation-explained · archetype:explainer · hint
- Each figure, diagram and component shows what the text next to it explains. Before learners use it, the text answers the questions that apply: What is the whole or the reference? What do its parts, colours and marks mean? How does it lead to the statement of the page? What do they enter or check afterwards? (What learners change in a component: rule
explainer-control-purpose.) - The caption says what to look at;
altsays what the figure shows. Legend, colours, marks and text name the same things; a mark does not look like a sign it is not. Several figures: a visible label says which is which. A figure to read values from has a scale. - Where learners commonly misread a figure (a graph taken for a picture of the path, a longer bar for a larger number) or confuse a rule, the text names it, in a box "Merke" before the exercises.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
The scope says what the pages teach
explainer-scope-matches · archetype:explainer · warning
The tutor judges open answers by the scope and stays within it.
- Write the
scopeof each page in your own words, never copied from the material: what the page teaches, no more and no less. scopeinsrc/app.yamlalso names what does not belong to the app and a learner or tutor might expect.
Told in skills/archetypes/lernapps-explainer/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
Keep the ids
explainer-stable-ids · archetype:explainer · warning
Teachers link to pages and sections, and the catalog lists them by their ids.
- Give chapters, pages, sections and exercises short, telling ids ("prozentwert", "regel"), and keep them when the text changes.
- New content gets new ids. Never reuse a removed one.
Told in skills/archetypes/lernapps-explainer/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
A solution step explains
explainer-steps-explain · archetype:explainer · hint
- Each step uses the numbers of the task and gives its reason. "Setze die Angaben in die Regel ein" explains nothing.
- Given values are shown worked out, unless working them out is the exercise.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
A story carries the pages
explainer-story-carries · archetype:explainer · hint
- An explainer with a story: each page takes it on from the page before and ends with the next step; its tasks are steps of the story, and what is learned is used in it.
- The form fits age and subject, a person is not required (up to class 6 drawn children, or a place or a task; 7-9 messages or a dialogue; 10 up a real case). A page without its scene or case has no story on it.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
Structure only by sections
explainer-structure-by-sections · archetype:explainer · error
The contents of a page, its anchors and the entry links of the catalog are made from sections.
- Every heading is a
sectionblock withidandtitle. - A Markdown heading (
#,##, an underlined line) in a text fails the build.
Told in skills/archetypes/lernapps-explainer/references/rules.md.
Every chapter and page listed once
explainer-structure-complete · archetype:explainer · error
- The app has at least one chapter.
- Every chapter folder is in
chaptersofsrc/app.yaml, every page file inpagesof itschapter.yaml, exactly once, in reading order. The order of the lists is the order of the navigation; nothing is sorted by name.
Told in skills/archetypes/lernapps-explainer/references/rules.md.
Chapter, page, two section levels
explainer-structure-depth · archetype:explainer · error
- Sections nest at most two deep. Heading levels follow from the nesting; you set none.
- Content that needs more levels is two apps.
Told in skills/archetypes/lernapps-explainer/references/rules.md.
Text, figure and task tell the same
explainer-text-figure-agree · archetype:explainer · hint
- Text, figure and task use the same numbers and the same whole. A switch to another example is announced.
- The text names only views, tools and controls the page has.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
The description and the playthroughs validate
interactive-app-valid · archetype:interactive · error
src/app.yamland every playthrough valid against their schemas; German first, every language complete.- Unique ids; at least one playthrough; each step expects a state or an announcement; playthrough routes exist.
- Build names each problem with file and line.
The architecture is valid and current
interactive-architecture-current · archetype:interactive · error
docs/arc42/: generic part and extension ascreate/updatewrote them, unchanged outside the app sections.- App part describes the code: every part of
src/has its block, every block its code. arc42 validate --strictandarc42 diff --stagedpass; the review checks it says what the code does.
Told in skills/archetypes/lernapps-interactive/SKILL.md; judged by the rubric item in review/archetypes/interactive.md.
The core keeps its contract
interactive-core-contract · archetype:interactive · error
src/core/index.tsexportsstart(seed, route),step(state, input);tick(state, dt)as a function if it moves on its own.- Every route starts; nothing throws; same seed, route, inputs, ticks → same states.
Every playthrough plays as written
interactive-playthroughs-pass · archetype:interactive · error
- After each step the state has the expected fields; the browser shows the expected announcement.
- Failure → fix core or playthrough, whichever is wrong; never delete a playthrough.
Extend the preset, change nothing of it
keep-the-preset · archetype:explainer, archetype:interactive, archetype:quiz · error
vite.config.tsisexport default lernapps(), with only the app's own settings as generated (lernapps({ plugins: [quiz()] })).tsconfig.jsonextends@lernapps/tooling/tsconfig.jsonas generated.- The hooks come from the package (
prepareinpackage.json); never replace one. - Never turn a lint rule off or lower its severity.
Told in skills/tooling/lernapps-cli/references/code-rules.md.
Publish from gh-pages, served from its root
pages-from-gh-pages · archetype:explainer, archetype:interactive, archetype:quiz · error
- GitHub Pages serves the branch
gh-pagesfrom/: usuallyhttps://<owner>.github.io/<repo>/; only repos of the lernapps organisation athttps://lernapps.net/<repo>/. - Previews of pull requests go below
pr-preview/on that branch: leave the setting. - Hosted elsewhere → the entry's
urlpoints there.
A component only where no block fits
prefer-built-in-block · archetype:explainer · hint
- Built-in blocks and exercises first. A component only for what none can express; say why in the plan.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
Check every fact
quiz-answers-checked · archetype:quiz · hint
- Check every marked option, number and
infoagainst the linked article before you commit. - A source does not open → say so in the plan, mark it "not checked"; never fill it from memory.
- Learners report errors through
.github/ISSUE_TEMPLATE/inhaltsfehler.yml.
The question bank validates
quiz-bank-valid · archetype:quiz, archetype:explainer · error
- Valid against the schema. Build also checks: exactly one correct in single choice, at least one in multiple choice; unique ids and options.
- Broken bank: one line per problem (position, id); fix in
src/quiz.json. Explainer exercise: named by file and block path.
One clear question at a time
quiz-clear-question · archetype:quiz, archetype:explainer · warning
- One thing per question, answerable before reading the options.
- Positive; avoid "nicht", never two negations. No trick questions.
- Plain, short sentences in every language (
learner-text-german).
Background and explanation say why
quiz-feedback-explains · archetype:quiz, archetype:explainer · hint
- Every option has an
info(the schema requires it): one to three sentences on the option itself, true whether or not it is the right answer. For a wrong option it also says why it does not fit ("Der Nil fließt durch mehrere Länder Afrikas und mündet in Ägypten ins Mittelmeer. Gefragt war ein Fluss in Südamerika."). The page shows theinfoof every option after a wrong answer, and none after a right one. explanation: 1–3 sentences why the answer is right, shown after every answer; it does not repeat aninfo. For true-false, number, ordering and matching also the background.number: typical wrong numbers asmistakes(answer,message). Any question: an optionalhint, not the answer.- A wrong answer's
message(and an exercise component'sreason) says what does not fit and where to look, never the solution itself: the solution comes after the answer, with "Lösung" or the tutor.
Told in skills/content/lernapps-content-questions/SKILL.md; judged by the rubric item in review/archetypes/quiz.md.
The type that fits the question
quiz-fitting-type · archetype:quiz, archetype:explainer · hint
- One fact among things of a kind:
single-choice; several facts:multiple-choice; estimate a size:number; compare sizes or dates:ordering; connect:matching; judge a statement:true-false. - Mix the types. The type must accept every answer the text allows (
orderingonly for a fixed order).
Further reading only where it adds something
quiz-further-reading · archetype:quiz, archetype:explainer · warning
linksis optional, in a quiz and for a question of an explainer: the schema does not require it. Add a link only where a source adds something to exactly this question that the explanation does not say, e.g. the article on the very term or event asked about, best the German Wikipedia (https://de.wikipedia.org/wiki/...).titlenames the page ("Uluru (Wikipedia)").- A general article on the subject adds nothing ("Französische Sprache" for any question about French): leave the links out. No page of its own for a term (like "Wortgleichung"): leave them out too, rather than a page that fits badly.
- HTTP 429 → tell the creator which; mark the facts "not checked" in the plan; go on.
Numbers with unit and rounding
quiz-number-precision · archetype:quiz, archetype:explainer · warning
- The text says how exact the answer must be ("Bis zu 100 m daneben zählt noch als richtig");
tolerancematches it. - The unit goes into
unit, not into the answer. - Sources differ → the tolerance covers them.
Write only the question bank and its images
quiz-only-data · archetype:quiz · error
- Change only
src/quiz.jsonand add image files tosrc/images/.index.html,src/main.ts,e2e/quiz.e2e.ts, config as generated (keep-the-preset). - Bank cannot say it → "Where I had to guess", never code around the runtime.
Write in your own words
quiz-own-words · archetype:quiz · warning
- Take facts, never sentences: Wikipedia is CC BY-SA (copying needs attribution and relicenses).
infoandexplanation: new, shorter, plainer, for the app's school year. Sources insources(third-party-licence).
Options a learner could believe
quiz-plausible-options · archetype:quiz, archetype:explainer · warning
- Wrong options are real things of the same kind (a river for a river), with true background.
- Options alike in length and form. No "Alle genannten", "Keine davon" or jokes. Three or four options.
Keep the ids
quiz-stable-ids · archetype:quiz · warning
- Short, telling
id("grand-canyon"); keep it when the text changes (shared links#frage-<id>). - New question, new id; never reuse a removed one.
The start page explains the app
start-page-explains · archetype:interactive · hint
- The static start page says what learners train, for whom, and how to begin.
Told in skills/archetypes/lernapps-interactive-design/SKILL.md; judged by the rubric item in review/archetypes/interactive.md.
Store only through the preset's storage
storage-through-wrapper · archetype:explainer, archetype:interactive, archetype:quiz · error
- Only
createStoragefrom@lernapps/tooling/storage, named after the app's id in the catalog (own prefixlernapps:<id>:, ruleown-data-only; works when storage is blocked). - At most 100 kB under the prefix (keys and values, 2 bytes per UTF-16 unit). Beyond,
savereturns false and the app keeps working. - A setting of the learner that holds for every app or every app of the archetype:
createSettings("<id>", "<archetype>"), saved only where the learner chose it ("app","archetype"or"all"); the app's own goes first. - Keep the learning state, not growing histories.
- What only a reload must not lose, such as an answer being written, lasts while the tab is open:
createStorage("<id>", { type: "sessionStorage" })(sessionStorage, same prefix and limit). - Never
localStorage,sessionStorage, IndexedDB or cookies directly.
Told in skills/tooling/lernapps-cli/references/code-rules.md; checked by the lint rule lint/rules/storage-through-wrapper.ts.
TypeScript only, strict
strict-typescript · archetype:explainer, archetype:interactive, archetype:quiz · error
- Every source file is TypeScript; no JavaScript files.
- Never
any: useunknownand narrow it, or write the type. - Type the creator's data; validate it at build time.
Told in skills/tooling/lernapps-cli/references/code-rules.md.
Every page has exercises
topic-has-exercises · archetype:explainer · error
- Every page has at least one exercise that practises what the page explains, with solution or feedback; best in a last section "Übung".
- Except a recap page (
recap, format 2): it repeats one or several prerequisites the app does not practise and has no exercise.
Told in skills/archetypes/lernapps-explainer-design/references/rules.md; judged by the rubric item in review/archetypes/explainer.md.
Browser globals only once mounted
vue-component-browser-globals · archetype:explainer, archetype:interactive · error
window,document,localStorageetc. only inonMountedor later unmount hooks (server render has none).
Told in skills/archetypes/lernapps-explainer/references/components.md; checked by the lint rule lint/rules/vue-component-browser-globals.ts.
An exercise component has its logic module
vue-component-exercise-contract · archetype:explainer · error
- Emits
answer→src/components/<Name>.tswith pure, deterministicgenerate(seed, props),check(task, answer),solution(task),wrong(task),reason(task, answer, props, lang); property test passes. - Emits no
answered(the old contract): the explainer draws "Prüfen" and checks; a component draws none. - Block lists
exampleswith at least oneacceptedand onerejected,{ answer, seed? }in the shape ofcheck(no seed: seeds 1–50), incl. another correct answer where the text allows. - Declares prop
seed: number, showsgenerate(seed, props). The explainer gives the seed, shows "Aufgabe Nr.", "Neue Aufgabe", keeps?<id>=<n>: never draw a seed or offer "next" inside. - Also exports
describe(task, props, lang)→{ task, solution }(restricted Markdown, task exactly as shown) andabout = { task, answer, correct, mistakes }(texts by language). The tutor reads only these (the tutor page, no-JS text). - Any exercise may carry
examples: { accepted, rejected };generated: expressions ofgivenandanswer, per seed (e.g.reverse(answer)). - With
template,params,mistakesandshow(all four or none, rulevue-component-tutor-table):checkaccepts the solution and rejects each mistake's answer,paramsgives the same names for every task, each placeholder oftemplateis one of them.
Told in skills/archetypes/lernapps-explainer/references/components.md.
Imports only from the allowed packages
vue-component-imports · archetype:explainer, archetype:interactive · error
- Only
vue,@lernapps/app-templates,@lernapps/tooling/storage,i18n,a11y, own folder. Types from anywhere. - Interactive: also the app's
src/files and itsdependencies.
Told in skills/archetypes/lernapps-explainer/references/components.md; checked by the lint rule lint/rules/vue-component-imports.ts.
No code or HTML from strings
vue-component-no-html-injection · archetype:explainer, archetype:interactive · error
- No
eval,new Function,innerHTML,v-html: the template renders.
Told in skills/archetypes/lernapps-explainer/references/components.md; checked by the lint rule lint/rules/vue-component-no-html-injection.ts.
No network
vue-component-no-network · archetype:explainer, archetype:interactive · error
- No request, no URL import: props or bundle.
Told in skills/archetypes/lernapps-explainer/references/components.md; checked by the lint rule lint/rules/vue-component-no-network.ts.
Every component block has its nojs text
vue-component-nojs · archetype:explainer · error
- Every non-exercise
vue-componentblock:nojsin every language (exercise: fromdescribe): what it shows and does, with content; same meaning without JS. - Schema requires it;
lernapps checkfinds empty or hidden ones (explainer-readable-without-js).
Told in skills/archetypes/lernapps-explainer/references/components.md.
Props as the component declares them
vue-component-props-valid · archetype:explainer · error
defineProps<{ … }>()with types; each block passes exactly the declared props, of their types.
Told in skills/archetypes/lernapps-explainer/references/components.md.
Within 20 kB
vue-component-size · archetype:explainer · error
- Own code max 20 kB gzip. More → split, or a new block: write it into the retrospective.
Told in skills/archetypes/lernapps-explainer/references/components.md.
A test per component
vue-component-tested · archetype:explainer · error
src/components/<Name>.test.tsper component, testing its logic: other right answers the text allows, typical wrong ones with reasons, edge cases. Run bylernapps check.
Told in skills/archetypes/lernapps-explainer/references/components.md.
An exercise component declares its exercise for the tutor
vue-component-tutor-table · archetype:explainer · hint
- The logic module also exports
template(props, lang): the task once,{name}for each input;params(task, props, lang): the inputs by name ({ G: 1260, p: 15 }), numbers or texts, the same names for every task;mistakes(task, props): perabout.mistakes, in order, the answer it gives,undefinedwhere none;show(answer, task, props, lang): an answer as text, short ("C", "3 Kästchen"). - The tutor page then has the task once, the mistakes as F1, F2 … and a table of every number (inputs, solution, each mistake), like
generated. Without them: each number'sdescribeas far as 64 kB allow, and the build's hint names the block. - Example:
node_modules/@lernapps/app-templates/explainer/src/components/ProzentFeld.ts, the template's.
Told in skills/archetypes/lernapps-explainer/references/components.md.