agentleFS
tonytony/skills/.agents/skills/scholar-annotate/SKILL.md

scholar-annotate

Skill0 starsChanged 33 days agoMITView on GitHub

Take reading notes on a prose corpus: quotations with stable locators and margin notes, as a term source for extract

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read references/citation.md for the locator rules this stage implements: take the most stable locator the source supports.

    line 18
  2. Very specific:

    When python3 is missing or older than 3.14, follow references/python.md.

    line 23
  3. Very specific:

    Read references/output-contract.md before reading the source or writing study files.

    line 28
  4. Very specific:

    Read the source's row in sources.jsonl.

    line 35
  5. Very specific:

    If the kind is page and the edition is unrecorded, or the source has no row, stop with ⚠ Blocked (see Output).

    line 37
  6. Very specific:

    When the kind is search-string, locator is the unique text that finds the passage.

    line 65
  7. Very specific:

    Write it per references/prose-rules.md.

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

this skill

The prose path. Without it, a written corpus enters the pipeline as unstructured text and its citations degrade to "somewhere in chapter 3".

Read references/citation.md for the locator rules this stage implements: take the most stable locator the source supports. The analyzer is references/term_metrics.py; <analyzer> below is its absolute path resolved from this skill's directory.

When python3 is missing or older than 3.14, follow references/python.md.

User arguments: $ARGUMENTS

Read references/output-contract.md before reading the source or writing study files; it covers corpus text that may carry instructions.

Procedure

1. Confirm the edition

Read the source's row in sources.jsonl. --locator overrides the row's locator_kind; the four kinds are defined in references/citation.md. If the kind is page and the edition is unrecorded, or the source has no row, stop with ⚠ Blocked (see Output). gather writes sources.jsonl and records the edition; the user may also add the row by hand.

2. Extract quotations

One quotation per concept the author names, long enough to stand on its own when read out of context. A quotation that only makes sense beside the sentence before it is too short.

3. Attach margin notes

The note says what the quotation is evidence for, which is the analyst's judgement and must stay visibly separate from the author's words. Never blend the two into a paraphrase; extract needs to know which is which.

4. Write the quotation set

Append one row per quotation to quotations.jsonl in the study directory (--out, default notes/ontology/<subject>/). extract reads this file for prose sources. When the file exists, Read it first and add the new rows with Edit at its end; Write creates the file only when it is absent, never replaces it, because an earlier source's rows live there.

{"source": "<source id from sources.jsonl>", "locator_kind": "section", "locator": "ch.3 §2", "quote": "...", "note": "the author's own term for the boundary"}

When the kind is search-string, locator is the unique text that finds the passage.

5. Check the quotations

A quotation from a pasted excerpt stored under the study is searched for in that file, whitespace aside; an ellipsis (...) stands for each omission and the pieces must appear in order. Every line printed is a quotation to fix; a source that is not stored in the study is reported Uncheckable:

$ python3 <analyzer> notes/ontology/<subject>/ --check-quotations

Rules

  • The quotation is verbatim. An ellipsis marks every omission.
  • A term the author uses without defining is still a term. Quote a passage showing the usage rather than skipping it.
  • Where the author defines a term explicitly, quote the definition and begin its note with definition:, so extract can use it directly rather than inferring one.

Output

Per references/output-contract.md. Hero: ✓ <n> quotations from <source> or ⚠ Blocked: <reason>. A blocked run is the contract's halted-run shape.

⚠ Blocked: no sources.jsonl row for style-guide-essay, so its edition is unrecorded.

Run scholar-gather on the source, or add its row by hand, then run annotate again.

Sections:

  1. ## Quotations: the quotations.jsonl path under the study directory, the count by locator_kind, and the concepts they name, and nothing about what was appended or kept.
  2. ## Locator: one line naming the locator_kind this source uses, and any fallback to search-string. Give no reasons.
  3. ## Undefined: terms the author uses without defining, which extract will have to infer from usage.

Next-step options: run extract, annotate another source, stop here.

Write it per references/prose-rules.md.

Portability notes

  • $ARGUMENTS — the text the user passed when invoking this skill. If your host does not substitute it, read it as the user's request in the current turn, and ask when there is none.
  • Bundled files — every relative path in this skill points at a file shipped inside this skill directory. Read them from here, not from the host's plugin tree.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.