Phase 2I-3: Compilation Skill Definition#
Note
Path update needed if rerun (2026-03-25, Phase 2I-3). This prompt was deprecated and superseded by the current prompt_2I-3. The AHA doc path below has moved to the compiler directory.
Note
200K-token execution prompt. Copy-paste everything below the horizontal rule into a new Claude Code session.
Prerequisite: Phase 2I-2 (PoR field testing) must have
completed. The testing report at
source/matheology/vv/jub/oov2/llog/2I-por-field-testing.rst
tells you which fields have content and which are stubs.
/clear /compact /effort max
You are executing Phase 2I-3 of the JUB OOv2 matheology project: defining the ``/compile-matheology`` skill for Claude Code. The skill will compile PoR source files into audience-specific downstream pages using the extraction matrix from the AHA design document.
This session produces a Claude Code skill definition file and a set of stub templates — no content compilation yet.
STEP 0 — READ ALL REQUIRED FILES (DO THIS FIRST)#
ax1_A1. AHA DESIGN DOC (Sections 12 and 14 especially): source/matheology/vv/jub/oov2/llog/aha-best-names-for-matheology-links.rst (New location: source/matheology/compiler/ww/5d-link-naming-matheology-aha.rst)
ax2_A2. PoR FIELD TESTING REPORT: source/matheology/vv/jub/oov2/llog/2I-por-field-testing.rst
ax3_A3. PET AXIOMS (current PoR format): source/matheology/pet/axioms.rst
ax4_A4. JUB AXIOMS (current PoR format): source/matheology/jub/axioms.rst
ax5_A5. EXISTING AXIOMS INDEX (to understand current aggregation): source/matheology/axioms/index.rst
ax6_A6. CLAUDE.md (for skill conventions): CLAUDE.md
ax7_A7. EXISTING PROMPTS INDEX (for format reference): source/matheology/vv/jub/oov2/prompts/index.rst
STEP 1 — DESIGN THE EXTRACTION MATRIX#
Build the full extraction matrix: a table mapping 45 PoR fields × 5 audience depths (expert, producer, easy, math, machine).
For each cell, specify one of the 8 extraction keywords from AHA Section 12:
x — include in full
brief — first sentence only
top3 — top 3 entries
top1 — single best entry
drop — omit entirely
stub — heading only, mark [stub]
ref — cross-reference link to PoR
rewrite — include, rewritten for audience
Guidelines for assignment:
Expert (default PoR): All fields
x(this IS the PoR)Producer (PoT):
xfor identity,brieffor technical,top3for sources,rewritefor intro,dropfor machineEasy (PoU):
rewritefor identity/intro,dropfor most technical,top1for sources,reffor operationalMath (formal):
xfor latex/logic/proof,dropfor sources/operational,reffor identityMachine (API):
xfor id/latex/netout/netin,dropfor prose, structured data for everything else
Present the matrix as an RST list-table and get my approval before proceeding.
STEP 2 — DEFINE THE SKILL#
Create a Claude Code skill definition. The skill should:
Accept arguments matching the 13 user decisions from AHA Section 14.2:
/compile-matheology [mode] [options] Modes: replace, append, archive, migrate Options: --output <folder> (default: matheology/axioms/) --models <list> (default: all) --depths <list> (default: all) --views <list> (default: all) --states <list> (default: all) --stubs yes|no (default: no) --version-increment <v|r|p> --archive-folder <path> --vvn <string> --stayc <code> --freeze-por yes|no (default: no)
For each mode, define the execution sequence:
REPLACE mode:
Read all PoR source files (pet/axioms.rst, jub/axioms.rst, jub/theorems.rst, jub/quest.rst)
For each element × depth × view combination: - Apply extraction matrix to select/transform fields - Generate an RST page with the element’s BEST Names label - Write to the output folder
Rebuild toctrees in affected index files
Run
make htmlto check
APPEND mode:
Read only NEW PoR elements (elements not yet in output)
Generate pages for new elements only
Add to existing toctrees
Check build
ARCHIVE mode:
Run REPLACE first
Copy output to
vv/{version}/(wasvv/compiled/— updated per DD-b12)Tag all labels with version suffix
Update version registry in AHA doc
Check build
MIGRATE mode:
Read old-format files
Transform labels per migration table
Update all cross-references
Check build
Stub policy: When
--stubs no, if a field/page would contain only stub content (per the testing report), the page is NOT generated and no toctree entry is created. This prevents empty pages.Output format: Each generated page follows this template:
.. _{label}: {title} ================== .. This page was generated by /compile-matheology on {date}. .. Source: {source_file} .. Do not edit manually. Re-run the skill to regenerate. {extracted fields per extraction matrix}
Write the skill definition to: source/matheology/vv/jub/oov2/llog/skill-compile-matheology.rst
This is an AHA-level specification document (not an executable script). It should be detailed enough that a future Claude session can implement it as an actual Claude Code skill.
STEP 3 — CREATE STUB TEMPLATES#
Create stub templates for the 5 audience depths at:
source/_templates/stubs/matheology-expert.rst
source/_templates/stubs/matheology-producer.rst
source/_templates/stubs/matheology-easy.rst
source/_templates/stubs/matheology-math.rst
source/_templates/stubs/matheology-machine.rst
Each stub contains:
A label placeholder:
.. _{label}:A title placeholder
The field headings appropriate for that depth (from the extraction matrix — only fields NOT marked
drop)Each field body marked
[stub --- content pending]A generation comment with date and source
STEP 4 — CHECK BUILD#
Run make html and confirm:
Zero new warnings from the skill definition file
The stub templates parse as valid RST
No broken cross-references
STEP 5 — APPEND TO DEBUG FILE#
APPEND a session entry to: source/matheology/vv/jub/oov2/llog/llog_2026m03d21_restructuring-phase1-prompts-reply-overviews-for-debugs.rst
With:
Verbatim prompt (this entire prompt, in a code-block)
The extraction matrix
List of all files created/modified
Build check result
CRITICAL RULES#
llog files are APPEND-ONLY.
NEVER delete content files.
NEVER abbreviate prompts in llogs.
The skill definition is a SPECIFICATION, not executable code. It documents what the skill should do so a future session can implement it.
LANGUAGE RULES: a. NEVER use bare “Jubilee” as standalone noun. b. NEVER use “the” for unproven superlatives.
TELES migration report (2026m04d04)
Mechanical identifier migration applied to this file. All axiom/theorem text references were migrated from short form (e.g., A15) to compound form (e.g., ax15_A15) as part of the matheology compound naming operation. Both forms refer to the same formal object. The old form survives as the suffix to ensure consistency with the oldest records; the new form adds a temporary-status prefix. Forward-facing pages use brief form (ax15) only. See TELES Axiom/Theorem Compound Naming — Execution Prompt for the complete mapping table and DD b12 — Legacy Naming for PET/JUB Axioms and Theorems for the permanent reference.