backward-traceability

The backward-traceability skill provides a framework to link numeric values in LaTeX documents to specific lines of code. It uses LaTeX hypertarget and hyperlink commands to enable navigation from paper results to source code and supports compile-time evaluation of derived values.

781
Installs
4
Use cases
5/10
Quality

Is backward-traceability safe to install?

Review the source first

Review the source first: our audit of backward-traceability's source files found 2 shell commands, 0 external URLs, file reads and writes (high risk). Every command and URL listed appears verbatim in the skill's source. The skill executes Python scripts that read and process local LaTeX and code files, and it writes output files like report.json and results.txt.

How we audit skills: our security review methodology.

Who is this skill for?

Researchers and data scientists who need to ensure reproducibility and data integrity in academic or technical papers.

What can you do with it?

  • Linking numeric results in a PDF to the code that generated them
  • Verifying cross-reference integrity between paper text and code output
  • Automating the evaluation of derived numeric values during LaTeX compilation
  • Creating clickable code appendices for research papers

How good is this skill?

Quality score: 5/10. The skill provides clear, actionable instructions and specific scripts for maintaining traceability. The documentation is well-structured and follows a logical workflow.

What does the skill file contain?

SKILL.md
# 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 v...

Frequently asked questions

How does the skill link a number in the paper to the code?

The skill uses the LaTeX \hypertarget command in the code output and the \hyperlink command in the paper text to create a clickable reference.

Can the skill handle derived values?

Yes, the skill uses the \num{formula, explanation} command to evaluate derived values at compile time.

What does the verification script check?

The verification script checks for mismatches between values in the paper text and the code output, and identifies orphan references or unreferenced numeric values.

Data sourced from lingzhi227/agent-research-skills on GitHub. Install counts from skills.sh. The summary and security audit are derived from the skill's source files: every command and URL listed appears verbatim in the source.

Related skills