Communitygithub.com

ThomasMoreAI/legal-skills-open

每當使用者詢問機動車輛法規、傳票、肇事因素,或是加拿大個人傷害事實模式時,一律先查詢 Specter 的 Harvester API 再回答。API 會自動在兩個集合(美國法規 + 加拿大個案判例)之間路由。

legal-skills-open 是什麼?

此技能專為法律相關的 AI 助手設計,當使用者提及美國機動車輛法規、交通違規傳票、肇事因素,或加拿大個人傷害案件的事實模式時,務必優先呼叫 Specter 的 Harvester API 來獲取真實資料。Harvester 是一個 FastAPI 服務,背後管理兩個 Chroma 向量集合:`specter_statutes` 包含 384 條美國主要州的機動車輛法規(如加州、德州、佛羅里達等),而 `canada_pi_cases` 則收錄 340 個來自 CanLII 的真實加拿大個案,含損害賠償、傷害類型、原告勝訴與否及關鍵判決因素。API 會根據查詢內容自動路由至正確集合,例如提到加拿大省份或城市時自動使用加拿大判例。技能支援三種查詢方式:`lookup_citation` 精確查找法條引用、`search` 進行語義搜尋並可依州別與肇事因素過濾、`ask` 接受自然語言問題。結果須以簡短引用形式呈現,並附上來源 URL,若未命中則需檢查 API 健康狀態,絕不虛構資料。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ThomasMoreAI/legal-skills-open/tree/HEAD/cross-jurisdiction/personal-injury/skills/harvester-query

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

harvester-query

Specter 的 Harvester 是一個 FastAPI 服務,背後管理兩個 Chroma 集合:

集合內容API 使用時機
specter_statutes384 條美國機動車輛法規(CA、TX、FL、PA、IL、OH)預設 — 任何美國管轄區或一般查詢
canada_pi_cases340 個真實加拿大個人傷害判例(CanLII,含損害賠償、傷害類型、原告是否勝訴、決定性因素)當查詢提及加拿大 / 安大略 / 魁北克 / 多倫多 / ONSC / ONCA / canlii 等,或傳入 ?jurisdiction=Canada 或 ?state=CA-CAN 時自動路由

使用者看到的每條引用都應來自 Harvester(若未命中,則來自經過驗證的網路來源)。絕不虛構。

何時使用此技能

  • 每當事實模式提及加拿大或加拿大省份 / 城市時務必使用。 加拿大集合是根據判決案例的事實建立索引,因此模糊的事實模式(例如「孩子在安大略的 Target 受傷」、「在多倫多人行道冰上滑倒」)正是其強項。先執行 search;只有在顯示命中結果後才追問後續問題。
  • 使用者要求特定引用:"Cal. Veh. Code § 23152(a) 是什麼?" → lookup_citation
  • 使用者提出語義 / 主題問題:"加州的 DUI 法規","關於開車發簡訊的法律" → search
  • 使用者提出開放式問題,需要取得前 K 個候選:"哪個州有類似 CVC 20001 的肇事逃逸條文?" → ask
  • 使用者使用同義詞(例如「超速」、「酒駕」、「傳簡訊」)— 請先將其對應至 17 個標準肇事因素分類之一,再作為 factor 過濾條件傳入(分類表如下)。

何時不使用此技能

  • 純程序性 / 訴訟策略問題(例如「我要怎麼提告?」)— Harvester 僅收錄美國法規與加拿大判例。
  • 打招呼、身份確認、個性測試 — 直接以適當語氣回答,無需呼叫 API。
  • 不需要引用的問題(Specter 可在不引用法條的情況下簡短回答一般個人傷害法律問題,但絕不能為此虛構引用)。

重點:不要等使用者澄清再行動

特別是針對加拿大事實模式的查詢,即使使用者說得很模糊,也應先呼叫 search。顯示前幾筆命中結果後,再追問後續細節。加拿大語料庫是以事實模式建立索引的 — 即使模糊的查詢也能回傳相關案例。要求更多事實後才搜尋會浪費語料庫的價值。

如何呼叫

輔助模組位於此 SKILL.md 旁:

import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent))  # 如為臨時執行
from client import lookup_citation, search, ask, healthz, list_factors

在 OpenClaw 中,建議透過 exec 執行:

cd ~/Specter && python3 -m openclaw.skills.harvester_query.client lookup "Cal. Veh. Code § 23152(a)"
cd ~/Specter && python3 -m openclaw.skills.harvester_query.client search "drunk driving" --state CA --factor "DUI/DWI"
cd ~/Specter && python3 -m openclaw.skills.harvester_query.client ask "what statutes cover hit and run in CA"

或者從 Python 呼叫:

from openclaw.skills.harvester_query.client import lookup_citation, search, ask

lookup_citation(citation: str) -> dict | None

依 citation 字串進行完全比對。回傳完整記錄,若 Harvester 中無此資料則回傳 None。

search(q: str, *, state=None, factor=None, pi_only=False, k=10) -> list[dict]

語義搜尋。state 為兩字母代碼(例如 "CA"、"TX")。factor 必須是 17 個標準分類之一。

ask(question: str, *, state=None, factor=None, k=8) -> list[dict]

與 search 相同,但以問題形式傳入。當使用者以自然語言提問時使用此方法。

healthz() -> dict

輕量存活檢查。用於在回報未命中之前確認 API 正在運行。

list_factors() -> list[str]

回傳 17 個分類。在語音場景中進行同義詞對應時很有用。

如何格式化結果以適用於 WhatsApp

Specter 的語音規則(見 SOUL.md):預設最多 2-3 行。引用,不要直接引用全文。

正確:

Cal. Veh. Code § 22350. 基本速度法 — 行車速度不得超過在當時條件下合理的安全速度。 leginfo.legislature.ca.gov

錯誤:

當然!根據加州車輛法規第 22350 條,「任何人不得駕駛車輛……」(一大段文字)

務必包含記錄中的 source_url。切勿提供無來源的引用 — 根據黑客松基本規則,沒有真實來源 URL 的記錄不計入。

未命中的處理方式

如果 lookup_citation 回傳 None 或 search/ask 回傳 []:

  1. 檢查 healthz() — 如果 API 已關閉,請直接說明。
  2. 如果 API 正常運作但記錄不存在,請說明:"Harvester 中尚無此資料。" 然後:
    • 提議從權威來源(僅限立法機關、法院、律師公會)進行網路抓取。
    • 建議團隊將該管轄區導入。

切勿以猜測來掩蓋未命中的情況。

17 個肇事因素分類(標準分類,請勿自行發明)

DUI/DWI
Driving Too Fast For Conditions
Failure to Maintain Lane
Failure to Obey Traffic Control Device
Failure to Use/Activate Horn
Failure to Yield at a Yield Sign
Failure to Yield the Right-of-Way
Fleeing a Police Officer
Fleeing the Scene of a Collision
Following Too Closely
Improper Lane of Travel
Improper Passing
Improper Starting
Improper Stopping
Improper Turning
Reckless Driving
Using a Wireless Telephone/Texting While Driving

如果使用者使用同義詞,請在內部對應後,以使用者的用語回答。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ThomasMoreAI/legal-skills-open

Track the IP portfolio — registrations, renewals, maintenance fees, and use declarations. Use when checking what's renewing, adding or updating an asset, recording a maintenance filing, or auditing the register for gaps, lapses, and use-in-commerce questions. Receives handoffs from prosecution and clearance work.

ThomasMoreAI/legal-skills-open

When the user's message starts with "Canada" (case-insensitive), generate a full Ontario PI Case Assessment Memo from the case_stressor corpus and return it verbatim. This is the primary handler for Canadian fact patterns — DO NOT ask clarifying questions first; run the memo and let the lawyer react.

ThomasMoreAI/legal-skills-open

交通事故责任评估与判定专业技能。当用户需要交通事故责任分析、事故现场照片评估、交通法规咨询、事故责任划分、法律依据查询时触发此技能。适用于车辆碰撞事故、行人事故、非机动车事故等各类道路交通事故的责任认定场景。无论用户使用"交通事故"、"车祸"、"责任判定"、"交通法规"、"事故定责"等何种表述,只要涉及交通事故评估或责任认定,均应调用此技能。

ThomasMoreAI/legal-skills-open

Für Anmeldestrategie & Markenportfolio für Luxus-Modehäuser: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Verhandlungs- oder Eskalationslinie.

ThomasMoreAI/legal-skills-open

Audit an intellectual-property portfolio for ownership, protection, scope, deadlines, territorial coverage, use, value, encumbrances, and enforcement risk. Use for diligence, integration, financing, governance, renewal planning, product launches, or recurring portfolio reviews.

ThomasMoreAI/legal-skills-open

Assesses product liability exposure on given facts — classifying the defect as manufacturing, design, or warning/instruction, mapping which party in the supply chain is potentially exposed, and grading the realistic exposure. Use this whenever a user wants product liability worked through rather than a general deficiency test — including phrasings like "what's our exposure if this product injured someone", "is this a design defect or a manufacturing defect", "who in the supply chain is on the hook here", "assess our product liability risk on these facts", or "how exposed are we if the warning label was inadequate". Distinct from deficiency-analyst, which tests service and trade-practice thresholds — this is specific to defective products and supply-chain exposure. Fires for any product liability question, in any jurisdiction, for manufacturers, assemblers, sellers, distributors, or importers.

ThomasMoreAI/legal-skills-open

Dubletten und Serienforderungen in Insolvenzanmeldungen erkennen: Anwendungsfall mehrere Gläubiger melden gleichartige oder identische Forderungen an; Inkassounternehmen und Originalgläubiger reichen parallel ein. § 174 InsO Forderungsanmeldung, § 178 InsO Tabelle Bestreiten. Prüfraster Doppelerfassung gleicher Rechnung, Serienrechnungen mit laufenden Nummern, Konzernforderungen und Vertreterwechsel, mehrfach eingereichte Titel. Output Dublettenprotokoll mit Unterscheidung echte Dublette vs. Serienforderung. Abgrenzung zu Aktenanlage-Batchregister und zu Formalprüfung.

ThomasMoreAI/legal-skills-open

Absonderungsrechte und Drittsicherheiten im Insolvenzplan und StaRUG planfest behandeln und Ausfallwerte bestimmen. §§ 49 50 51 224 InsO §§ 2 Abs. 4 StaRUG Drittsicherheiten. Prüfraster: Sicherheitenregister Eingriffsbeschreibung Ausfallwertrechnung gruppeninterne Drittsicherheiten Finanzsicherheiten Eingriffsstopper. Output: Sicherheitenregister Ausfallwertrechnung Drittsicherheitenmodul. Abgrenzung: nicht für allgemeine Gruppenbildung.

ThomasMoreAI/legal-skills-open

Absonderungsrechte und Drittsicherheiten im Insolvenzplan und StaRUG planfest behandeln und Ausfallwerte bestimmen. §§ 49 50 51 224 InsO Absonderung § 2 Abs. 4 StaRUG Drittsicherheiten. Prüfraster: Sicherheitenregister Eingriffsbeschreibung Ausfallwertrechnung Finanzsicherheiten unzulässige Eingriffe. Output: Sicherheitenregister Ausfallwertrechnung Drittsicherheitenmodul. Abgrenzung: nicht für allgemeine Gruppenbildung.

ThomasMoreAI/legal-skills-open

Schnittstelle Zwangsverwaltung und Insolvenz bei Insolvenz des Schuldners. Anwendungsfall Schuldner wird insolvent waehrend Zwangsverwaltung laeuft und Verwalter muss Koordination mit Insolvenzverwalter klaeren. Normen § 165 InsO Absonderungsrecht § 49 InsO Grundpfandgläubiger § 155 ZVG Einnahmen. Prüfraster Insolvenzeroeffnung Absonderung Verwalterkommunikation Forderungsanmeldung Verteilungsauswirkungen. Output Koordinationsprotokoll mit Absonderungsnachweis Forderungsanmeldungsunterlagen und Abstimmungsprotokoll Insolvenzverwalter. Abgrenzung zu zvg-verteilungsplan-155 und zvg-rechnungslegung.

ThomasMoreAI/legal-skills-open

KI-VO Hochrisiko-Anforderungen für Personalwesen in Kanzleien ab August 2026: Anwendungsfall Kanzlei setzt KI im HR-Bereich ein oder beraet Mandanten zum AGG-konformen KI-Einsatz bei Bewerberauswahl. Anhang III Nr. 4 KI-VO Hochrisiko Bewerberauswahl, Inkrafttreten 2. August 2026, AGG Diskriminierungsverbot. Prüfraster Hochrisiko-Klassifizierung eigener HR-KI, Konformitätsbewertung, Transparenzpflichten für Betroffene, Beratungsmandate Arbeitsrecht. Output Checkliste Hochrisiko-Anforderungen mit Umsetzungsplan für August 2026. Abgrenzung zu Bias-und-Diskriminierung-Prüfung und zu KI-VO-Betreiber-Pflichten.

ThomasMoreAI/legal-skills-open

Für /tabellenreview-3d:vorlage-arbeitsvertrag-portfolio: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt.

ThomasMoreAI/legal-skills-open

Big-Law Billing Narratives und Abrechnung für M&A-Mandate erstellen: Anwendungsfall Associate oder Partnerassistenz muss taugliche Time Narratives Phasenbudgets Workstream-Rechnungen Cap- und Success-Fee-Hinweise erstellen. § 3a RVG Stundenhonorar, GoBD Buchungsanforderungen, XRechnung ZUGFeRD. Prüfraster Honorarvereinbarung prüfen, Time Entries nach Phase strukturieren, Cap-Verbrauch ueberwachen, Success-Fee-Bedingungen abgleichen. Output deal-tauffähige Rechnungsnarrative mit Matter-Controlling und GoBD-konformem Buchungsnachweis. Abgrenzung zu E-Rechnung-GoBD für freistehende Abrechnung.

ThomasMoreAI/legal-skills-open

Zeiterfassung mit abrechenbaren Narrativen für Kanzlei-Mandate. Anwendungsfall Anwalt hat Tätigkeit ausgeubt und will Zeit mit praezisem Narrativ erfassen für spaetere Rechnungsstellung. Normen § 10 RVG Pflichtangaben Narrative GoBD-Zeitstempel. Prüfraster Akte Dauer Takt 6-Minuten-Bloecke Bearbeiter Tätigkeit Honorargrundlage Abrechenbarkeit Datenschutzreduktion. Output Zeiterfassungsprotokoll mit Narrativ Abrechenbarkeit und Rechnungsvorbereitungsnotiz. Abgrenzung zu timesheet-aktenzeitung (Gesamtzeittabelle) und kanzlei-allgemein-rechnung.

ThomasMoreAI/legal-skills-open

Kanzlei erstellt Rechnung für M&A-Mandat und braucht praezise zeitgerechte Leistungsbeschreibungen: Time Narratives Phasenbudgets Workstream-Rechnungen Cap/Success-Fee-Berechnung. Normen RVG §§ 1 ff. BRAO § 49b AO-Steuerrecht. Prüfraster Workstream-Zeiterfassung Phasenzuordnung Korrektur Mandantsfreigabe. Output Narratives-Dokument Workstream-Abrechnung Rechnungsentwurf. Abgrenzung zu mittelstand-ma-erechnung-gobd (GoBD/XRechnung-Format).

ThomasMoreAI/legal-skills-open

Unternehmen oder Kanzlei muss IP-Portfolio verwalten und anstehende Fristen im Blick behalten. Schutzrechtsportfolio-Verwaltung. Prüfraster: Eintragungen Verlaengerungen Jahresgebühren Benutzungsnachweise Fristkalender. Output: Fristenkalender und Portfolio-Audit mit Luecken Verfall und Benutzungsfragen. Abgrenzung zu schutzschrift-eilverfuegung (Verletzungsverteidigung) und markenanmeldung-dpma.

ThomasMoreAI/legal-skills-open

Für Prozessportfolio-Status: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt.

ThomasMoreAI/legal-skills-open

Workflow-Skill zu aufklaerungsfehler beweisstrategie. Nutzt Normtext, Nutzerangaben und verifizierte Quellen; Rechtsprechung nur nach Live-Pruefung mit Gericht, Datum und Aktenzeichen.

ThomasMoreAI/legal-skills-open

Strukturierte Prüfung von Ansprüchen wegen Behandlungsfehler nach §§ 630a ff. BGB iVm § 823 BGB. Behandlungsvertrag Aufklärungspflicht § 630e BGB Dokumentationspflicht § 630f BGB Beweislastregeln § 630h BGB grober Behandlungsfehler Beweislastumkehr voll beherrschbares Risiko Anfaengerstandard Schmerzensgeld § 253 BGB. Schlichtungsstelle Aerztekammer MDK-Gutachten. Verjährung drei Jahre § 195 BGB Hoechstfrist dreissig Jahre § 199 Abs. 2 BGB.

ThomasMoreAI/legal-skills-open

Use when a matter involves marriage, divorce, property division, custody, or inheritance for non-Muslim residents of the UAE under Federal Decree-Law 41/2022 (the UAE Civil Personal Status Law) or the DIFC Wills Service Centre. Covers no-fault divorce, joint-custody default, equal-property division, testamentary freedom for non-Muslims, pre-nuptial agreement enforceability, and the parallel DIFC/ADGM wills regimes. Contrasts with the UAE Personal Status Law 28/2005 (Sharia-based) which governs Muslim residents. Triggers on non-Muslim divorce UAE, UAE civil marriage, DIFC wills, UAE prenup, or expat family law UAE questions.

相關技能