← ClaudeAtlas

backward-traceabilitylisted

Make every number in the final PDF traceable to the exact code line that produced it. Uses \hypertarget/\hyperlink LaTeX commands and \num{formula} evaluated at compile time. Use for reproducibility and data integrity verification.
sergeeey/Claude-cod-top-2026 · ★ 5 · AI & Automation · score 73
Install: claude install-skill sergeeey/Claude-cod-top-2026
# Backward Traceability Make every number in the final PDF hyperlink back to the exact code line that produced it. ## Input - `$0` — Paper project directory containing code and LaTeX files ## References - Traceability patterns and LaTeX commands: `~/.claude/skills/backward-traceability/references/traceability-patterns.md` ## Scripts ### Scan hypertarget/hyperlink references ```bash python ~/.claude/skills/backward-traceability/scripts/ref_numeric_values.py \ --scan paper/main.tex --output report.json ``` Reports: all hypertargets, hyperlinks, orphan references, unreferenced numeric values. ### Verify cross-reference integrity ```bash python ~/.claude/skills/backward-traceability/scripts/ref_numeric_values.py \ --verify paper/main.tex --code-output results.txt ``` Cross-checks values between paper text and code output. Reports mismatches. ## Workflow ### Step 1: Tag Code Outputs For every numeric value produced by experiment code, add hypertarget tags: ```python # In experiment code output: print(f"\\hypertarget{{R1a}}{{45.3}}") # Mean accuracy print(f"\\hypertarget{{R1b}}{{2.1}}") # Std deviation ``` Label format: `{prefix}{line_number}{letter}` where letter = a, b, c... for multiple values on same line. ### Step 2: Reference in Paper Text Use `\hyperlink` to create clickable references in the paper: ```latex Our method achieves \hyperlink{R1a}{45.3}\% accuracy ($\pm$\hyperlink{R1b}{2.1}). ``` ### Step 3: Use \num for Computed Values For values derived