원클릭으로
pretext-authoring
Write and revise PreTeXt documents using the official guide, with explicit guardrails for how PreTeXt differs from DoenetML.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Write and revise PreTeXt documents using the official guide, with explicit guardrails for how PreTeXt differs from DoenetML.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Rules for creating and editing changeset files in .changeset/ — which @doenet/* packages to list, packages that must never appear, one-directional propagation, the private-flag trap, and changeset file format. Use whenever adding or editing a .changeset/*.md file.
Get the DoenetML source behind a beta.doenet.org / doenet.org activityViewer link. The pages are a client-rendered SPA, so fetching the URL (WebFetch/curl) returns an empty shell — call the content JSON API instead. Use when asked to read, extract, or reference the DoenetML of a Doenet activity link.
Author DoenetML documentation under packages/docs-nextra/ within the Diátaxis framework (Tutorials, Guides/how-to, Reference, Concepts/explanation) — which section a page belongs in, the concept↔guide split pattern, MDX structure, example fences, the AttrPropDisplay machinery, prose vs example math, and the schema/index files that reference pages must keep in sync.
Write and revise DoenetML activities using docs-nextra patterns, with explicit guardrails for how DoenetML differs from PreTeXt.
| name | pretext-authoring |
| description | Write and revise PreTeXt documents using the official guide, with explicit guardrails for how PreTeXt differs from DoenetML. |
Use this skill when creating or editing PreTeXt source files (.ptx / XML) for books, articles, and static course materials.
docs/pretext-guide-summary.mddocs/tag-reference.mddocs/pretext-vs-doenetml-differences.mddocs/pretext-do-dont-checklist.mddocs/references/pretext.rng (schema reference; source of truth for element/attribute validity)docs/references/pretext-common.xsl (XSL processing/reference entry point)docs/sources.md (for canonical guide/source URLs)Before declaring that a particular usage is correct PreTeXt, check docs/references/pretext.rng and verify the claim against the schema.
<section>, <theorem>, <example>, <exercise>) over ad hoc formatting.docs/references/pretext.rng before asserting correctness.xml:id values on divisions and referenceable elements.<xref ref="..."/> for internal references rather than hardcoded labels/numbers.<xref> with a ref attribute; there is no standalone <ref> element for cross-references.<m> (inline) and <md> (display), with MathJax-compatible LaTeX.<shortdescription> and/or <description>).<statement>, optional <hint>, <answer>, <solution>).<answer> (authored exercise content) with DoenetML runtime answer validation. In PreTeXt, <answer> is not a live grading rule.$name, name="..." reactive data flow, <mathInput>, <award>, or live graph-interaction logic in PreTeXt source.xml:id + <xref ref="..."/>.<ref> as a cross-reference element in PreTeXt. Use <xref ref="..."/>.<shortdescription> and/or <description>.$name reactive references, <answer> scoring logic, or live graph manipulation into PreTeXt source.Use this as a minimal PreTeXt starting point for a short article with one section and one inline math expression.
<pretext>
<article xml:id="mini-article">
<title>Minimal PreTeXt Example</title>
<section xml:id="intro">
<title>Introduction</title>
<p>This is a minimal PreTeXt document with inline math <m>x+1</m>.</p>
</section>
</article>
</pretext>
When asked to author PreTeXt, provide:
xml:id values where needed.<xref ref="..."/> and the referenced xml:id exists.<m>/<md> rather than plain text.