Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Document Evolution Tracker?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jiamingshi-jsphys-document-evolution-tracker)
---
name: document-evolution-tracker
version: 1.4.0
description: >
Compares a family of document versions over time: paragraph changes and
concept lineage.
metadata:
version: 1.4.0
author: Jiaming Shi
license: MIT
entry_point: python run.py
python_requires: '>=3.10'
---
# document-evolution-tracker
Diffs a whole family of document versions and traces named concepts through
them. It reports **structural** change — block alignment via `difflib` — not
semantic meaning.
- **Stage:** `workspace` · **Sandbox:** no · **Dependencies:** stdlib only (`PyYAML` only for `.yaml` configs)
## Quick Execution
Run this exact form — do not read the source tree:
```bash
python run.py --root <WS> --action versions -- --config config/examples/family.json
```
- `validate` first: it reports config errors and the discovered version files.
- `--concepts "a,b"` names the concepts to trace; unnamed ones are not followed.
- The gate lands in `<WS>/process/gates/document-evolution-tracker_<ts>.json`.
## When to use
- A family of versions (timestamped or sequentially named) must be compared as a whole.
- A named concept — a term, a heading, a definition — must be traced across versions.
- The evolution of a draft must be reported as a timeline, not a single diff.
## When NOT to use
- Only two files need a diff — any diff tool is cheaper.
- You need semantic equivalence, not a structural comparison.
## Actions
| `--action` | Does | Extra arguments |
| --- | --- | --- |
| `validate` | Check the config and report the discovered versions | `--config <cfg>` |
| `versions` | List the discovered version files | `--config <cfg>` |
| `run` | Compare the family and produce the timeline | `--config <cfg> [--concepts "a,b"]` |
## Hard constraints
- **Structural only.** A concept counts as present on a literal match, never on a paraphrase.
- **Never reformat the sources.** Inputs are read, never written.
## Outputs
- `<WS>/process/gates/document-evolution-tracker_<ts>.json` — the gate result.
- A Markdown timeline plus a JSON change record under `process/`.
## Failure handling
- An invalid config exits non-zero and names the offending field.
- Fewer than two discovered versions aborts the run.
- A concept that never appears is reported as absent across all versions.
## Limitations
- Diffing is structural (block alignment), not semantic.
- Only `sequential` and `timestamp` naming schemes are recognised.
## Delivering results
This skill writes intermediates to `process/`. `results/` is filled only by
`python cli.py pipeline` after a human approved that exact plan.
- Do not copy a skill's output into `results/` yourself, and do not do it
because the user asked for a shortcut: say that only `cli.py pipeline`
writes there, offer to run the pipeline instead, and if they still insist,
tell them `cli.py audit` will report the file as unapproved.
- Never set `CHELATE_UNSAFE_AUTO_APPROVE=1` (formerly `CHELATE_HUMAN`) and never run `cli.py approve` on the user's
behalf. If an approval is needed, ask the human to issue it in their own
terminal.
- Before telling the user a deliverable is ready — and after any write you
make under `results/` — run `python cli.py audit --root <ws>`. Exit 1 means
files there have no approval behind them: report that and name them, do not
describe the state as delivered.