本文へスキップ
Skillpedia
リサーチ20k · #10381

lumen-citations

できること

このスキルは、法律文書をレビューするツール Lumen で、AI が文書の一節を引用する方法を説明します。すべての主張を出典に結びつける必要がある弁護士や法務チーム向けです。

使う場面

  • ✓AI が契約書や他の文書について主張を書き、その出典を示す必要があるとき。
  • ✓Lumen のレビューで、引用が見つからないと表示されたとき。
  • ✓各引用が、文書の言葉と一字一句一致している必要があるとき。

スキルのリンク

https://github.com/kortix-ai/suna/blob/dev/apps/white-label/lumen/agent-kit/skills/lumen-citations/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/kortix-ai/suna/blob/dev/apps/white-label/lumen/agent-kit/skills/lumen-citations/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“責任の上限について私の質問に答えてください。その根拠となる正確な条項を引用してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

AI は検索で段落を見つけ、文脈の中で読み、根拠となる正確な言葉をコピーして、完了前に引用チェックを実行します。不一致があれば、先に修正します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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" }
  • a is the paragraph anchor: p<page>.<n>. Take it from lumen read or lumen search. Never compute it.
  • quote is 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 like p3.12.
よくある質問

引用が失敗する原因は何ですか?

文書に存在しない引用、またはアンカーとは別の段落にある引用は、チェックに失敗します。

引用はどのくらいの長さにすべきですか?

主張を証明する言葉だけを引用し、通常は 8 から 40 語程度、300 文字を超えないようにします。

AI が段落番号を作り出すことはありますか?

いいえ。アンカーは読み取りや検索の出力から取り、計算で作らないようスキルは指示しています。

詳細

作者による元の説明

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

人気

GitHubのスター
20k
ランキング
#10381
ライセンス
—
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル