Use while the work runs, from its start, when its result is one someone will rely on (research, an investigation, a review, a comparison, a write-up) and its facts will come from files, web pages, command output or what people said; when asked to keep, save or track sources; or when a long chat is about to state numbers, dates, names or quotes it met earlier.
4 stars
0 votes
0 copies
0 views
Added November 29, 2026
ai-agentspythongo
Security analysis
B84/100
mediumUses curl or wget to download content
criticalDownloads and executes remote scripts — classic supply chain attack
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 Keep Sources?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ydmitry-keep-sources)
---
name: keep-sources
description: Use while the work runs, from its start, when its result is one someone will rely on (research, an investigation, a review, a comparison, a write-up) and its facts will come from files, web pages, command output or what people said; when asked to keep, save or track sources; or when a long chat is about to state numbers, dates, names or quotes it met earlier.
---
# keep-sources
The fact you recall at the end of a long chat is not the fact you read at its start. The context gets summarised, a number drifts, and the page it came from is no longer in front of you.
**So each fact the final text may state is saved when you meet it,** with the words that carry it and the place they stand. The text is later written from these rows, and `check-sources` reads it against them.
## The folder
**One folder for one piece of work:** `sources/<short-name>/` beside where the text will be written, or any folder you can write to when the work has no project folder. Tell the user its path once. Below it is `FOLDER`.
It holds `ledger.jsonl`, one row for each fact, and `snapshots/`, copies of sources that will not stay.
## When to add a row
Add a row when you read something the final text may state as a fact: a number, a date, a name, a limit, a decision, a cause, who said what. **Add it then,** before the next step, while the source is in front of you.
No row for every line you read, and none for what any reader of the subject already knows.
## A source that stays: a file
```
python3 ${CLAUDE_SKILL_DIR}/scripts/sources.py add FOLDER --source src/billing/retry.py --quote "MAX_RETRIES = 5" --says "A failed charge is retried 5 times."
```
- **`--quote` is copied from the file,** 40 words at most: the words that carry the number, the name or the condition. The script finds them in the file and records the lines. It refuses a quote that is not there word for word.
- **`--says` is the fact in plain words.** A number in it is the quote's, never one you recall: the script refuses a number the quote does not hold.
- **`--calc "600 s is 10 minutes"`** goes with a number that follows by arithmetic, or that stands in the quote as a word.
## A source that will not stay: a page, an output, a message
Save it first, then quote from the saved copy.
```
curl -s https://example.com/pricing | python3 ${CLAUDE_SKILL_DIR}/scripts/sources.py snap FOLDER pricing-page --origin "https://example.com/pricing"
make test 2>&1 | python3 ${CLAUDE_SKILL_DIR}/scripts/sources.py snap FOLDER test-run-1 --origin "make test, before the fix"
python3 ${CLAUDE_SKILL_DIR}/scripts/sources.py snap FOLDER lead-on-deadline --origin "the user, in this chat" --text "We cannot ship after the 14th."
python3 ${CLAUDE_SKILL_DIR}/scripts/sources.py add FOLDER --source FOLDER/snapshots/test-run-1.txt --quote "3 failed, 212 passed" --says "Before the fix 3 of 215 tests failed." --calc "3 + 212 = 215"
```
**Save what you actually read.** When a tool gave you its own summary of a page and not the page, save that summary and say so in `--origin` ("a fetch tool's summary of https://..."). The row then shows the fact is second-hand.
A snapshot is a record: the script will not overwrite one with other text. A second run of a command gets a new name.
## What a screen showed: a screenshot
A state of a screen cannot be quoted: a chart at a moment, a button that is greyed out, an error dialog. **Save the screenshot with what it shows, where it was taken and when.** The picture cannot say that itself, so the script refuses one without it.
```
python3 ${CLAUDE_SKILL_DIR}/scripts/sources.py snap FOLDER errors-1405 --image /tmp/shot.png --origin "the errors dashboard on staging, 2026-11-28 14:05, after the deploy"
```
- **Take it of the thing itself,** with the part the fact is about in view. A picture that only looks related proves nothing.
- **What can be read as text is saved as text too.** A number on a dashboard goes into a row with its quote; the screenshot shows that it stood there.
- `list` shows the saved pictures, and `check` lists one that was changed or removed.
## Use the rows
- **Write from the rows.** Before the text states a number, a date or a name, run `python3 ${CLAUDE_SKILL_DIR}/scripts/sources.py list FOLDER` and take it from there.
- **After the context was summarised,** run `list` before anything else. The summary is a retelling; the rows are the record.
- **When a fact turns out wrong, or its source changed,** run `drop FOLDER s04 --why "the config was edited"` and add the new row. A dropped row stays in the file.
- **Before the text is handed over,** run `check FOLDER` until its last line starts with `OK`. It looks every quote up again.
- **Then see that the facts carry their pointers:** `python3 ${CLAUDE_SKILL_DIR}/scripts/sources.py pointers FOLDER TEXT`. For each row whose fact the text states, it looks in that section for the row's web address or file name, and lists a fact without one as `WARN no-pointer`, with the address to add. A source with no address, such as what someone said, asks for none.
## What a clean check does not show
A last line that starts with `OK` means each quote stands in its source and no number crept into `says`. It does not show that `says` is **true to its quote,** that the source is right, or that the text states only facts that have a row. A second reader settles the first and the last: `check-sources`.
## Private material
A snapshot can hold what should not leave the machine: command output, a page behind a login, a message. **The folder is working material.** Do not commit, publish or attach it unless the user asks.
## With the other skills
**This skill owns the record of where each fact came from.** `check-sources` reads the finished text against it, and the rule in `skimmable-writing` that a claim carries its check is easy to meet from a row. Each works without the others.