.claude/skills/generate-tex/SKILL.md
Generate a LaTeX writeup for strategy $ARGUMENTS from the locked spec. ## Prerequisites Verify spec is locked: ```bash git tag -l "spec-$ARGUMENTS-*" ``` If no tag exists, STOP and tell the user: "Spec is not locked. Run: git tag -a spec-$ARGUMENTS-v1 -m 'Locked'" ## Step 1: Generate tex/note.tex Read: - strategies/$ARGUMENTS/spec/SPEC.md - strategies/$ARGUMENTS/spec/spec.yaml - strategies/$ARGUMENTS/synth/formula.md - strategies/$ARGUMENTS/synth/strategy.md Write strategies/$ARGUMENTS/tex/
npx skillsauth add rockandrolla13/quant-research-workflow .claude/skills/generate-texInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate a LaTeX writeup for strategy $ARGUMENTS from the locked spec.
Verify spec is locked:
git tag -l "spec-$ARGUMENTS-*"
If no tag exists, STOP and tell the user: "Spec is not locked. Run: git tag -a spec-$ARGUMENTS-v1 -m 'Locked'"
Read:
Write strategies/$ARGUMENTS/tex/note.tex with these sections:
CRITICAL: Results section must be COMMENTED OUT:
% \section{Results}
% UNCOMMENT ONLY AFTER HOLDOUT EVALUATION.
% This section must remain empty until the single-touch holdout run.
Use standard article class, amsmath, amssymb, booktabs, hyperref. Write refs.bib if the source PDF had references.
cd strategies/$ARGUMENTS/tex && pdflatex -interaction=nonstopmode note.tex
If compilation fails, fix the LaTeX errors and retry.
.venv-extract/bin/python tools/call_gemini.py --mode verify-tex \
--tex strategies/$ARGUMENTS/tex/note.tex \
--output strategies/$ARGUMENTS/tex/review_tex.md
Read review_tex.md. Fix any FAIL items. Re-verify if needed.
Tell the user the LaTeX document is ready and whether it compiled cleanly.
tools
Review the spec for strategy $ARGUMENTS by calling Gemini, then fix any issues. ## Step 1: Validate gate first ```bash .venv-extract/bin/python tools/validate_spec.py strategies/$ARGUMENTS/spec/spec.yaml ``` If this fails, fix spec.yaml until it passes. Do not call Gemini on an invalid spec. ## Step 2: Call Gemini ```bash .venv-extract/bin/python tools/call_gemini.py --mode review \ --spec strategies/$ARGUMENTS/spec/spec.yaml \ --formula strategies/$ARGUMENTS/synth/formula.md \ --outp
development
Review Codex's implementation of strategy $ARGUMENTS against the locked spec. ## Step 1: Load the contract Read strategies/$ARGUMENTS/spec/spec.yaml — this is the source of truth. ## Step 2: Check function signatures For each module in spec.yaml modules[]: - Open strategies/$ARGUMENTS/repo/src/$ARGUMENTS/{module.filename} - Verify every function signature matches spec.yaml EXACTLY - Flag any missing functions, wrong argument names, wrong types, wrong defaults ## Step 3: Check test coverage
tools
Process a PDF through the full extraction → synthesis → spec → review pipeline. $ARGUMENTS is the strategy_id. The PDF must already be at strategies/$ARGUMENTS/input/source.pdf --- ## Stage 1: Extract (two-pass) Run: ```bash ./tools/run-extract.sh python tools/ingest.py strategies/$ARGUMENTS/input/source.pdf --strategy-id $ARGUMENTS ``` This produces: - `extract/raw.md` — raw OCR/layout extraction (pass 1) - `artifacts/01-extraction.md` — tagged structured extraction (pass 2) Verify both f
tools
Show the pipeline status for strategy $ARGUMENTS. ```bash .venv-extract/bin/python tools/update_state.py strategies/$ARGUMENTS --status ``` If the status script doesn't exist yet, check manually: 1. **extract:** Does strategies/$ARGUMENTS/extract/raw.md exist and have content? 2. **synth:** Do strategies/$ARGUMENTS/synth/strategy.md and formula.md exist? 3. **spec:** Does strategies/$ARGUMENTS/spec/spec.yaml exist? Run validate_spec.py on it. 4. **review:** Does strategies/$ARGUMENTS/spec/rev