← ClaudeAtlas

trace-file-lineagelisted

Trace the origin, ancestry, downstream impact, searchable text, and task/run history of files and artifacts in local workspaces. Use for questions about which code, notebook, data, editable document, configuration, command, or agent task produced an image, PDF, dataset, model, report, or other file; for stale-output and orphan investigations; for high-volume agent-run summaries; for W3C PROV, DVC, OpenLineage, or local code-graph interoperability; and for prospective file-producing task capture. Supports broad native text, Python/notebook and conservative JavaScript/TypeScript lineage, structured documents, optional local OCR, Git evidence, focused visualizations, and Obsidian export. Works with Codex, Claude Code, and other Agent Skills-compatible hosts without vendor APIs. Do not use as a file organizer or as proof of historical causality without captured evidence.
uczltw6/trace-file-lineage · ★ 14 · Data & Documents · score 75
Install: claude install-skill uczltw6/trace-file-lineage
# Trace File Lineage Keep all analysis local and non-destructive. Never execute scanned project code, follow external symlinks, expose secret contents, or move source files. ## Choose a workflow Use retrospective forensics when the artifact predates capture. Infer candidates, cite evidence, retain alternatives, and state uncertainty. Use prospective capture before a future file-producing command or agent task. A manual or hook boundary proves only observed co-change. The `run` wrapper may verify that its child command changed an artifact version; it still does not name an internal writer function. Set `LINEAGE` to `<skill-dir>/scripts/lineage.py` in the POSIX examples below. An installed package instead provides the `lineage` command (and the equivalent `python -m lineage_core`), which is preferable when available; in PowerShell use `py -3 $Lineage ...`. Do not assume Bash or a POSIX separator. Build filesystem paths with `pathlib`, pass child arguments as arrays, and never request shell interpolation. Query commands default to Markdown and accept `--format json` when you need to parse the result. `doctor` also defaults to a readable report; use `doctor --format json` for the complete machine-readable capability ledger. ## Two modes Manual: answer a question about an existing project. Most answers about files created before any capture existed are `candidate`, not `verified`; say so. Continuous: the user ran `lineage enable`, which wrote a required instruction into t