Skip to content

docs(skills): links of a question are optional, as the schema says - #326

Open
mrsimpson wants to merge 1 commit into
mainfrom
claude/links-optional
Open

mrsimpson wants to merge 1 commit into
mainfrom
claude/links-optional

Conversation

@mrsimpson

Copy link
Copy Markdown
Contributor

Was

Fund W4 aus lernapps/apps#402: Das Werkzeug verlange je Frage einen links:-Eintrag. Die Quelle ist hier: Die Skills sagen an vier Stellen, das Schema verlange mindestens einen Link je Frage. Das stimmt nicht mehr bzw. nie für das Schema in lernapps/app-templates:

  • runtime/shared/questions/question.v1.schema.json verlangt für eine Frage id, type, text, explanation; links steht nicht in required. Die Beschreibung der Eigenschaft sagt: „Optional further reading … Leave it out unless a source adds something worth reading to exactly this question … A general article on the subject … adds nothing: leave the links out.“
  • Der Build (question.ts) liest links ?? [].

Die Skills und die Regel quiz-further-reading widersprachen dem und führten dazu, dass Sessions Links erfanden. Dieser PR gleicht sie an das Schema an. Nur Text, kein Code.

Änderungen

  • skills/content/lernapps-content-questions/SKILL.md: Regel quiz-further-reading heißt jetzt „Further reading only where it adds something“. Link nur, wo eine Quelle zu genau dieser Frage etwas beiträgt; ein allgemeiner Artikel zum Thema trägt nichts bei; ohne passende Seite weglassen. Id, Scope und Severity (warning) bleiben, damit Verweise und Unterdrückungen nicht brechen.
  • skills/content/lernapps-content-questions/references/question-types.md: Zeile „Every question“ nennt links als optional.
  • skills/archetypes/lernapps-explainer/SKILL.md und references/exercises.md: „The schema requires … links“ entfällt, links ist optional.

Auswirkung

Apps, die ihre Skills mit lernapps update aktualisieren, bekommen die neue Anweisung. Die Mathe-Regel „zeige auf die Kartenseite des Bausteins“ (regeln.md §4) ist damit nicht mehr nötig; sie liegt außerhalb dieses Repos und muss dort angepasst werden.

Prüfung

  • vp test run: 53 Dateien, 704 Tests grün (u. a. conventions, app-content-guide); vp check ohne Fehler (eine bestehende Warnung).
  • Nicht geprüft: ob lernapps check selbst irgendwo einen Link je Frage verlangt. Ich habe in lint/, check/ und src/ nichts dazu gefunden; die Forderung stand nur in den Skill-Texten. Auch die Fassung der Schema-Datei, die eine konkrete App-Version mitbringt, habe ich nicht für alle Versionen geprüft (geprüft: main von lernapps/app-templates).
  • Nicht geändert: der Hinweis in SKILL.md, dass \overline nicht in der Formelliste steht. Er stimmt, bis lernapps/app-templates#184 veröffentlicht ist; danach ist er zu streichen.

Generated by Claude Code

The skills said the schema requires at least one link per question. The schema of the questions
(app-templates) lists id, type, text and explanation as required and describes links as optional
further reading to leave out unless a source adds something. The rule quiz-further-reading now says that.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016NmpwdGxzm9MDwaERnGb6p
@github-actions

Copy link
Copy Markdown
Contributor

Tooling review

Open the preview — as it would be published

Architecture (arc42)

No changes compared with origin/main.

The preview is ready once the GitHub Pages deployment of gh-pages has finished.

github-actions Bot added a commit that referenced this pull request Nov 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants