lumen-citations
What it does
This skill explains how the AI should cite a document passage in Lumen, a tool for reviewing legal documents. It is for lawyers and legal teams who need every claim linked to its source.
When to use it
- ✓When the AI writes a claim about a contract or other document and must cite its source.
- ✓When a citation shows as not found in a Lumen review.
- ✓When you need each quote to match the document word for word.
Skill link
https://github.com/kortix-ai/suna/blob/dev/apps/white-label/lumen/agent-kit/skills/lumen-citations/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Answer my question about the liability cap and cite the exact clause it comes from.”
5 new skills a week. 1 minute to read.
How it works
The AI finds the paragraph with a search, reads it in context, copies the exact words it relies on, and runs a citation check before finishing. Any mismatch is corrected first.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Citations
Lumen shows every citation to a lawyer next to the source passage, and checks it against the source before the lawyer sees it. A citation that fails the check is shown as "Citation not found". Get it right the first time.
The object
{ "doc_id": "<id from lumen docs>", "a": "p3.12", "quote": "verbatim text from that paragraph" }
ais the paragraph anchor:p<page>.<n>. Take it fromlumen readorlumen search. Never compute it.quoteis copied character for character from ONE paragraph: at most 300 characters, no "..." inside, no paraphrase, case kept.- Quote the words that prove the claim, not the whole paragraph. 8 to 40 words is right.
Get anchors
lumen search --matter <matter_dir> --query "limitation of liability capped" # hits: doc_id, a, snippet
lumen read --doc <doc_id> --anchor p3.12 --context 1 # the paragraph and its neighbours
lumen read --doc <doc_id> # the whole document
Check before you finish
echo '{"citations": [{"doc_id": "...", "a": "p3.12", "quote": "..."}]}' | lumen cite check
| Code | Meaning | Fix |
|---|---|---|
not_found |
The quote is not in the document | Copy the exact words from lumen read output |
wrong_anchor |
The quote is in another paragraph (fixed_anchor) |
Use fixed_anchor |
too_long |
Over 300 characters | Quote fewer words |
unknown_doc |
No such document | Use a doc_id from lumen docs |
lumen result write runs the same check on every citation in a result and refuses the file until each passes.
In chat answers
Write each citation as a Markdown link after the claim:
[1](/cite?d=<doc_id>&a=p3.12&q=<url-encoded quote>). lumen cite check prints this link as link for every citation that passes: paste it, do not encode a quote by hand. A bare [1] with no link is not a citation, and Lumen marks the answer as unchecked. Number them in order. Lumen shows each link as a numbered chip that opens the quoted paragraph. Outside the links, name a document by its filename, never by its doc_id.
Examples
Good:
{"doc_id": "k17", "a": "p2.9", "quote": "Neither party's liability under or in connection with this Agreement"}- exact words, one paragraph.{"doc_id": "k17", "a": "p1.4", "quote": "renews automatically for successive periods of one (1) year"}.{"doc_id": "k22", "a": "p1.6", "quote": "the Customer is entitled to service credits"}.
Bad:
"quote": "liability is unlimited"- a paraphrase. The document says "shall be limited or capped in amount"."quote": "shall not exceed ... twelve (12) months"- an ellipsis inside a quote."a": "3.12"- not an anchor. Anchors look likep3.12.
FAQ
What makes a citation fail?
A quote that is not in the document, or one that sits in a different paragraph than its anchor, fails the check.
How long should a quote be?
Quote only the words that prove the claim, usually about 8 to 40 words and never more than 300 characters.
Does the AI make up paragraph numbers?
No. The skill says to take anchors from the read or search output and never compute them.
Details
Original description by the author
How Lumen cites a document - the citation object, how to get anchors, quote rules and `lumen cite check`. Load before writing any claim about a document.
repo: kortix-ai/suna
Popularity
- GitHub stars
- 20k
- Ranking position
- #10381
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
claude-code
20kLets your agent hand a coding, review, or planning task to Anthropic's Claude Code CLI and capture the result so it can be checked.
codex-cli
20kLets your agent hand a coding or review task to OpenAI's Codex CLI and capture the result, so a second model can check the work.
commit-dis
20kLets your agent save only the changes made in this chat as one commit on your current Git branch, without pushing or creating a new branch.
composio
20kHelps your agent use Composio to connect apps like Gmail, Slack, GitHub, and Notion, for your own agent or for a product you build.
Similar skills
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
notcrawl
394kLets your agent search a saved copy of your Notion workspace, look up pages and databases, and export pages to Markdown files.
knowledge-entities
394kHelps your agent identify people, companies, and projects, then write sourced profile pages for them in your Knowledge vault.