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): x for identity, brief for technical, top3 for sources, rewrite for intro, drop for machine

  • Easy (PoU): rewrite for identity/intro, drop for most technical, top1 for sources, ref for operational

  • Math (formal): x for latex/logic/proof, drop for sources/operational, ref for identity

  • Machine (API): x for id/latex/netout/netin, drop for 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:

  1. 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)
    
  2. For each mode, define the execution sequence:

    REPLACE mode:

    1. Read all PoR source files (pet/axioms.rst, jub/axioms.rst, jub/theorems.rst, jub/quest.rst)

    2. 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

    3. Rebuild toctrees in affected index files

    4. Run make html to check

    APPEND mode:

    1. Read only NEW PoR elements (elements not yet in output)

    2. Generate pages for new elements only

    3. Add to existing toctrees

    4. Check build

    ARCHIVE mode:

    1. Run REPLACE first

    2. Copy output to vv/{version}/ (was vv/compiled/ — updated per DD-b12)

    3. Tag all labels with version suffix

    4. Update version registry in AHA doc

    5. Check build

    MIGRATE mode:

    1. Read old-format files

    2. Transform labels per migration table

    3. Update all cross-references

    4. Check build

  3. 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.

  4. 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:

  1. A label placeholder: .. _{label}:

  2. A title placeholder

  3. The field headings appropriate for that depth (from the extraction matrix — only fields NOT marked drop)

  4. Each field body marked [stub --- content pending]

  5. A generation comment with date and source

STEP 4 — CHECK BUILD#

Run make html and confirm:

  1. Zero new warnings from the skill definition file

  2. The stub templates parse as valid RST

  3. 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:

  1. Verbatim prompt (this entire prompt, in a code-block)

  2. The extraction matrix

  3. List of all files created/modified

  4. Build check result

CRITICAL RULES#

  1. llog files are APPEND-ONLY.

  2. NEVER delete content files.

  3. NEVER abbreviate prompts in llogs.

  4. The skill definition is a SPECIFICATION, not executable code. It documents what the skill should do so a future session can implement it.

  5. 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.