Legal Element Extraction 标志

Legal Element Extraction

社区
THUYRan
legal-element-extraction

当需要从案件描述、当事人陈述、聊天记录或媒体报道等非结构化文本中提取具有法律意义的事实时,触发此技能。常见触发情形包括但不限于:- 用户提供日常语言描述的案件情况,并要求提取法律事实 - 用户要求将口语化、带有情绪色彩的叙述转换为可用于法律分析的事实结构 - 用户要求区分案件叙述中的“客观事实”“主观判断”和“法律评价” - 用户要求将提取出的事实对应到特定法律关系的构成要件 - 用户要求整理案件时间线或生成事实梳理表 - 用户要求将日常语言转换为法律语言(例如,将“他一直拖着不还我钱”改写为“履行期限届满后未履行还款义务”)本技能的核心价值:将交织的生活叙述整理为可纳入法律推理的事实结构,为法律分析做好准备。

Add to TypingMind

概览

发布者THUYRan
代码仓库Legal-Skills-Chinese
技能名称legal-element-extraction
星标数
876
复刻数
97
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 THUYRan 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Legal Element Extraction AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/THUYRan/Legal-Skills-Chinese/tree/main/English/skills/legal-element-extraction
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/THUYRan/Legal-Skills-Chinese.git /tmp/Legal-Skills-Chinese
mkdir -p .claude/skills
cp -r /tmp/Legal-Skills-Chinese/English/skills/legal-element-extraction .claude/skills/legal-element-extraction
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Legal Element Extraction,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Legal Element Extraction。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Legal Element Extraction 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Chinese source (authoritative): ../../skills/legal-element-extraction/SKILL.md

Legal Element Extraction

Overview Table

ItemContent
Capability ID13
Capability NameLegal Element Extraction
Capability TypeFact structuring
Core FunctionExtract legally relevant facts from unstructured case narratives, classify them by type, and map them onto legal constitutive elements
InputEveryday-language case descriptions, party statements, chat logs, media reports, preliminarily organized case materials
OutputStructured legal-element checklist; legal-fact analysis table; legal-practice timeline
Related CapabilitiesLegal concept comprehension (identify legal elements); legal rule application (embed facts in rules); claim-basis analysis (map to claim elements)
Key PrinciplesObjectification; minimal units; typification; element correspondence

Legal Disclaimer

Important notices:

  1. This skill addresses "fact extraction and structuring" and does not produce legal conclusions. Extracted legal facts still require subsequent analysis under specific legal norms, claim bases, and evidence rules.
  2. Fact extraction depends on the completeness and truthfulness of the original narrative. Where there are serious information gaps, factual contradictions, or insufficient evidence, the extraction can only form a preliminary framework.
  3. Identification of "objective facts" is based on textual analysis and cannot replace evidence review and fact-finding. Where key facts are disputed, evidence-based adjudication is the principle.
  4. When converting everyday language into legal language, the conversion is only a preliminary judgment; concrete formulations should follow actual evidence and legal analysis.

I. Core Concepts

1.1 Three-Layer Fact Structure

Not all information in a case narrative has legal significance. Three layers must be penetrated:

Original narrative (life story)
    ↓  Extract and filter
Legally relevant facts (fact units with normative significance)
    ↓  Typify and map
Element facts (facts that can directly correspond to legal constitutive elements)
LayerFeaturesExample
Original narrativeColloquial, emotional, strongly narrative, loosely structured"He's been dragging his feet and won't pay me back; I'm so angry; this kind of person has no integrity at all"
Legally relevant factsDirectly related to legal judgment; emotion and evaluation removedLoan amount RMB 50,000; agreed repayment period 1 month; 3 months overdue unpaid; borrower deleted lender's WeChat
Element factsCan directly correspond to constitutive elements of a specific claim or defenseLoan agreement formed (contract formation element) → performance period expired (performance element) → loan not repaid (breach element)

1.2 Nine Categories of Fact Units

All legally relevant facts can be placed in the following nine categories:

Fact TypeCore QuestionTypical ContentLegal Significance
Subject factsWho?Actor, victim, contracting parties, agent, platform, third party, and their relationshipsDetermine attribution of rights and duties; assess party standing
Conduct factsWhat was done?Signing, payment, delivery, notice, refusal, disclosure, deletion, damage, forwarding, etc.Characterize conduct; assess whether it constitutes a juridical act or a real act
Time factsWhen?Time of contract formation, performance deadline, time of damage, time of notice, time of knowledge or constructive knowledgeDetermine limitation accrual, performance periods, exclusive periods
Place factsWhere?Place of contract formation, place of performance, place of damage, jurisdictional connecting factorsDetermine place of performance, court of jurisdiction, applicable law
Object factsDirected at what?Funds, goods, data, works, equipment, personality interests, private information, and other objectsDetermine the object of rights; identify what was harmed
Result factsWhat consequences arose?Non-performance, defective delivery, occurrence of damage, privacy breach, reputational harm, property decreaseAssess existence of damage; endpoint of causation
Causation factsIs there a link between conduct and result?Whether a given act caused a given result; what intervening factors existAssess establishment of liability; interruption of causation
Subjective factsWhat was the mental state?Intent, negligence, actual knowledge, constructive knowledge, failure of reasonable care, good faith / bad faithAssess fault elements; basis of attribution
Procedural factsWhat procedural steps were taken?Demand / notice (cuigao), negotiation, complaint, report to police, suit, performance of notice duties, raising objectionsAssess whether procedural conditions are met; whether limitation is interrupted

1.3 Four-Way Classification of Fact Attributes

Information in the same narrative must be distinguished by four attributes:

AttributeFeaturesIdentification MarkersHandling Method
Objective factsCan be described and proved by external evidenceStates concrete conduct, time, place, objectExtract directly; mark possible evidence sources
Subjective judgmentsParty's judgment based on personal feelings"I feel," "I think," "obviously," "definitely"Strip emotion; probe the objective facts behind it
Legal evaluationsAlready carry normative classification or liability judgment"Constitutes fraud," "amounts to breach," "acted in bad faith," "clearly unlawful"Reduce to the objective factual basis supporting that evaluation
Background informationNo direct link to legal judgmentParty personality, irrelevant antecedents and consequences, rhetorical descriptionExclude; retain only information necessary to aid understanding

Key principle: Evaluative expressions such as "deception," "bad faith," and "clearly unlawful" cannot be used directly as analytical premises; they must be further reduced to objective facts that norms can recognize.

II. Complete Workflow

Phase One: Deconstruction and Extraction

Step 1: Segment into Minimal Fact Units

Break everyday language, long sentences, compound sentences, emotional expressions, and conclusory descriptions in the case materials into several minimal fact units that can be independently identified and independently assessed.

Segmentation method:

  • Split compound narratives by sentence
  • Each fact unit should include: who (subject) + what was done (conduct) + when (time) + directed at what (object) + what resulted (result)
  • For fact units missing elements, mark "to be supplemented"

Example:

Original NarrativeMinimal Fact Units After Segmentation
"Last year I lent a friend fifty thousand yuan; he said then he'd definitely pay me back in a month. Three months later he still hadn't paid; every time I asked he said wait a bit longer; finally he deleted my WeChat."① Lender (I) and borrower (friend) reached a loan agreement ② Loan amount: RMB 50,000 ③ Agreed repayment period: 1 month ④ Actual overdue: 3 months unpaid ⑤ Lender made repeated demands ⑥ Borrower refused repayment (stalling) ⑦ Borrower deleted lender's WeChat (cut off contact)
Step 2: Typify and Classify Facts

Classify the segmented minimal fact units into the nine fact categories:

Output format:

markdown
### Structured Legal Element Checklist

#### Subject Facts
- [...]

#### Conduct Facts
- [...]

#### Time Facts
- [...]

#### Place Facts
- [...]

#### Object Facts
- [...]

#### Result Facts
- [...]

#### Causation Facts
- [...]

#### Subjective Facts
- [...]

#### Procedural Facts
- [...]
Step 3: Attribute Distinctions and Cleansing

For each fact unit, assess its attribute:

  1. Is it an objective fact? Yes → retain and mark possible evidence sources; No → proceed
  2. Is it a subjective judgment? Yes → strip emotional words and probe the objective facts behind it; No → proceed
  3. Is it a legal evaluation? Yes → reduce to the objective factual basis supporting that evaluation; No → proceed
  4. Is it background information? Yes → exclude (unless necessary to understand the case)

Distinction examples:

Original ExpressionAttribute AssessmentCleansed Result
"He's been dragging his feet and won't pay me back"Subjective judgment + legal evaluationConduct fact: failed to perform after the performance period expired; procedural fact: creditor made repeated demands
"The seller clearly said it was new"Subjective judgment ("clearly")Conduct fact: seller represented that "the goods are brand new"; subjective fact: seller knew or ought to have known the goods were not brand new
"The platform leaked my information"Legal evaluation ("leaked")Conduct fact: platform provided the user's personal information to a third party; object fact: the user's personal information; result fact: information obtained by a third party
"This kind of person has no integrity at all"Subjective judgment + emotionBackground information → exclude

Phase Two: Mapping and Conversion

Step 4: Everyday Language → Legal Language Conversion

Rewrite cleansed objective facts into normative formulations meaningful for legal analysis:

Everyday LanguageLegal Language
"He's been dragging his feet and won't pay me back""After the debt performance period expired, the debtor failed to perform the repayment obligation"
"The seller clearly said it was new""The seller made a specific representation as to the quality of the subject matter (that it was brand new)"
"The platform leaked my information""The information processor provided personal information to a third party, and that provision was without the information subject's consent"
"Every time I asked he said wait a bit longer""The creditor made repeated demands; the debtor repeatedly promised to perform but never actually performed"
"He deleted my WeChat""The debtor refused to communicate with the creditor by deleting contact information"

Conversion principles:

  • Use neutral, objective normative wording
  • Retain concrete elements (amounts, times, quantities, etc.); do not blur them
  • For subjective states, use legal concepts such as "knew," "ought to have known," and "negligence," rather than evaluative terms such as "intent" or "bad faith" (unless adequately supported by facts)
Step 5: Map onto Legal Constitutive Elements

Around the concrete legal relationship and legal question, map extracted and converted facts onto a specific claim basis, liability structure, or defense ground.

Mapping method:

  1. Identify possible legal relationships involved (contract, tort, unjust enrichment, negotiorum gestio, etc.)
  2. List the constitutive elements of that legal relationship
  3. Map facts one by one onto each element
  4. Mark: elements satisfied / partially satisfied / elements lacking facts

Output format (element-mapping table):

markdown
### Element Mapping Analysis

**Legal relationship:** [e.g., loan contract relationship]
**Claim basis:** [e.g., Civil Code Art. 675 (claim for return of loan)]

| Constitutive Element | Corresponding Facts | Satisfaction Status | Notes |
|----------|----------|----------|------|
| Loan agreement | Parties agreed on a RMB 50,000 loan | ✅ Satisfied | Supported by chat logs / IOU |
| Delivery of funds | Lender transferred RMB 50,000 to borrower | ✅ Satisfied | Transfer records exist |
| Performance period expired | Agreed 1 month; already 3 months overdue | ✅ Satisfied | Agreement clear |
| Loan not returned | Borrower has returned no funds | ✅ Satisfied | Borrower admits / no repayment records |

Phase Three: Integrated Output

Step 6: Output Structured Deliverables

According to the user's needs, choose one or more of the following output forms:

Form A: Structured legal element checklist (for early materials organization)

  • List all legally relevant facts by the nine fact categories
  • Mark evidence sources for each fact (if stated)
  • Mark facts to be supplemented and disputed facts

Form B: Legal-fact analysis table (for professional legal analysis preparation)

  • Columns: original narrative → objectified fact → legal label → fact type → corresponding constitutive element → evidence source → dispute status

Form C: Legal-practice timeline (for complex case sorting)

  • Arrange important acts, event progress, and legal nodes in chronological order
  • Mark: time, actor, content of act, object involved, result of act, key evidence, legal significance

III. Output Format Templates

Template A: Structured Legal Element Checklist

markdown
## Legal Element Extraction Report

### I. Original Narrative Abstract
[Summarize the core content of the original narrative in 1–2 sentences]

### II. Structured Fact Extraction

#### Subject Facts
- [Fact 1]
- [Fact 2]

#### Conduct Facts
- [Fact 1]
- [Fact 2]

#### Time Facts
- [Fact 1]
- [Fact 2]

#### Place Facts
- [If any]

#### Object Facts
- [Fact 1]

#### Result Facts
- [Fact 1]

#### Causation Facts
- [Fact 1]

#### Subjective Facts
- [Fact 1]

#### Procedural Facts
- [Fact 1]

### III. Facts to Be Supplemented
[List facts missing from the original narrative but important for legal analysis]

### IV. Disputed Facts
[List facts that are contradictory in the narrative or require evidentiary confirmation]

### V. Information Excluded
[List content excluded as background information, subjective judgment, or legal evaluation]

Template B: Legal-Fact Analysis Table

markdown
| Original Narrative Text | Objectified Fact Formulation | Legal Label | Fact Type | Corresponding Constitutive Element | Evidence Source | Dispute Status |
|-------------|---------------|----------|----------|-------------|----------|----------|
| [...] | [...] | [...] | [...] | [...] | [...] | [...] |

Template C: Legal-Practice Timeline

markdown
| Time | Actor | Content of Act | Object Involved | Result of Act | Key Evidence | Legal Significance |
|------|----------|----------|----------|----------|----------|----------|
| [...] | [...] | [...] | [...] | [...] | [...] | [...] |

IV. Examples

Example 1: Structured Element Extraction

Input:

"Last year I lent a friend fifty thousand yuan; he said then he'd definitely pay me back in a month. Three months later he still hadn't paid; every time I asked he said wait a bit longer; finally he deleted my WeChat."

Output:

markdown
## Legal Element Extraction Report

### I. Original Narrative Abstract
Lender lent borrower RMB 50,000, agreed to be repaid in 1 month; 3 months overdue unpaid; borrower deleted lender's WeChat.

### II. Structured Fact Extraction

#### Subject Facts
- A loan relationship arose between the lender (narrator) and the borrower (friend)
- The parties are natural persons in a private lending relationship

#### Conduct Facts
- The parties reached agreement on a RMB 50,000 loan
- The lender delivered the loan to the borrower (amount RMB 50,000)
- The borrower promised to repay in 1 month
- The borrower failed to repay after the performance period expired
- The lender repeatedly demanded repayment from the borrower
- The borrower stalled by saying "wait a bit longer"
- The borrower deleted the lender's WeChat and cut off contact

#### Time Facts
- Time of loan: "last year" (specific date needs further confirmation)
- Agreed repayment period: 1 month
- Overdue period: 3 months
- Limitation accrual point: date the agreed repayment period expired (specific date needs confirmation)

#### Place Facts
- [Not mentioned; need to supplement: place of loan delivery, defendant's domicile, etc., for determining jurisdiction]

#### Object Facts
- Loan subject matter: RMB 50,000

#### Result Facts
- Borrower failed to return the loan within the agreed period
- Borrower and lender lost contact

#### Causation Facts
- Borrower's failure to perform repayment → lender's claim unrealized

#### Subjective Facts
- Borrower knew of the repayment obligation (had promised to repay)
- Borrower had capacity to perform but refused to perform (stalled repeatedly, then cut off contact)

#### Procedural Facts
- Lender made repeated demands (may interrupt limitation)
- No lawsuit or arbitration filed

### III. Facts to Be Supplemented
1. Specific date of the loan (affects limitation calculation)
2. Manner of loan delivery (cash / transfer; affects evidentiary strength)
3. Whether there is an IOU, acknowledgment of debt, or loan contract
4. Borrower's identity information (suit requires a clear defendant)
5. Whether the borrower has property leads (affects enforcement)

### IV. Disputed Facts
- Whether the borrower's deletion of WeChat constitutes evidence of bad faith in "evading debt" (must be assessed with other evidence)

### V. Information Excluded
- "I'm so angry" → subjective emotion; excluded
- "This kind of person has no integrity at all" → subjective evaluation; excluded

Example 2: Everyday Language → Legal Language Conversion

Input:

"I bought a computer on a secondhand platform; the seller said it was brand new and unopened; after I received it I found it was a refurbished machine. I asked him to take it back; he refused, and also deleted some of the earlier chat content."

Output:

markdown
## Everyday Language → Legal Language Conversion

| Original Expression | Attribute Assessment | Legal Language Conversion |
|----------|----------|-------------|
| "I bought a computer on a secondhand platform" | Objective fact | A sales contract relationship arose between buyer and seller (secondhand-platform seller); subject matter is one computer |
| "The seller said it was brand new and unopened" | Objective fact (seller's representation) | Seller made a specific representation to buyer as to quality of the subject matter: that it was brand new and unopened |
| "After I received it I found it was a refurbished machine" | Objective fact | The subject matter received by the buyer was a repaired machine, inconsistent with the seller's representation of "brand new and unopened" |
| "I asked him to take it back" | Objective fact (conduct) | Buyer asserted rescission of the contract and demanded return of the goods |
| "He refused" | Objective fact | Seller refused buyer's request to return the goods |
| "Deleted some of the earlier chat content" | Objective fact | Seller deleted some chat records between the parties (may involve destruction of evidence) |

### Preliminary Analysis of Possible Legal Relationships and Constitutive Elements

**Path One: Warranty against defects in a sales contract**
- Element 1: Sales contract formed → ✅ Parties agreed on the computer sale
- Element 2: Subject matter has a defect → ✅ Subject matter is a repaired machine rather than brand new; quality defect exists
- Element 3: Defect existed at contract formation → ❓ Need to prove repair occurred before delivery
- Element 4: Buyer notified within the inspection period → ❓ Need to prove buyer timely raised an objection
- Legal effects: Buyer may claim repair, replacement, return, price reduction, or damages (Civil Code Art. 582)

**Path Two: Fraud (rescission of contract)**
- Element 1: Seller made a false statement → ✅ "Brand new and unopened" was a false representation
- Element 2: Seller had fraudulent intent → ❓ Need to prove seller knew or ought to have known it was a repaired machine
- Element 3: Buyer fell into mistaken understanding because of the fraud → ✅ Buyer decided to purchase based on the "brand new" representation
- Element 4: Buyer made a manifestation of intent because of the mistaken understanding → ✅ Buyer agreed to purchase
- Legal effects: Buyer may request rescission of the contract and return of the price (Civil Code Art. 148)
- Exclusive period: within 1 year from knowing or ought to have known the ground for rescission

**Path Three: Consumer fraud (if the Consumer Rights and Interests Protection Law applies)**
- Need to confirm whether the seller is a business operator and whether the buyer purchased for living consumption needs
- If constituted, may claim "refund one and compensate three" (Consumer Rights and Interests Protection Law Art. 55)

Example 3: Legal-Fact Analysis Table

Input:

"Our company engaged Company B to develop an App; the contract provided for delivery in 3 months at a total price of RMB 300,000. After signing we paid RMB 100,000 as advance payment. When 3 months arrived Company B said it wasn't finished and needed another 2-month extension. We disagreed and demanded a refund. Company B said the advance had already been spent and couldn't be refunded. Later we discovered Company B had subcontracted the project to Company C, even though the contract expressly prohibited subcontracting."

Output:

markdown
## Legal-Fact Analysis Table

| Original Narrative Text | Objectified Fact Formulation | Legal Label | Fact Type | Corresponding Constitutive Element | Evidence Source | Dispute Status |
|-------------|---------------|----------|----------|-------------|----------|----------|
| "Our company engaged Company B to develop an App" | Company A (principal) and Company B (developer) entered a technology development contract; subject matter is App software development | Technology development contract formed | Subject / conduct / object | Contract formation element | Written contract | Undisputed |
| "The contract provided for delivery in 3 months at a total price of RMB 300,000" | Agreed performance period: 3 months; contract price: RMB 300,000 | Performance period / price clause | Time / object | Certainty of contract content | Written contract | Undisputed |
| "Paid RMB 100,000 as advance payment" | Principal paid developer RMB 100,000 as advance | Advance payment made | Conduct / object | Performance conduct | Transfer records | Undisputed |
| "When 3 months arrived Company B said it wasn't finished and needed another 2-month extension" | Developer failed to deliver results when the performance period expired and requested a 2-month extension | Delayed performance | Conduct / time / result | Breach element (non-performance) | Communication records | Undisputed |
| "We disagreed and demanded a refund" | Principal refused the extension request, asserted rescission, and demanded return of the advance | Manifestation of intent to rescind | Conduct / procedure | Exercise of rescission right | Communication records | Undisputed |
| "Company B said the advance had already been spent and couldn't be refunded" | Developer asserted the advance had been used for project expenses and refused to return it | Defense (partial performance / expenses incurred) | Conduct / result | Defense ground | Developer's statement | Disputed (needs verification) |
| "Company B subcontracted the project to Company C" | Developer, without the principal's consent, had Company C actually perform the development project | Unauthorized subcontracting | Conduct / subject | Breach element (violation of contractual no-subcontracting clause) | Fact discovery / evidence of Company C's involvement | Needs confirmation |
| "The contract expressly prohibited subcontracting" | Contract expressly provided that the developer may not subcontract the project to a third party | No-subcontracting clause | Conduct | Contractual obligation | Written contract | Undisputed |

V. Common Errors and Prevention

Error TypeError DescriptionConsequencesPreventive Measures
Treating evaluation as factDirectly taking legal evaluations such as "constitutes fraud" or "amounts to breach" as analytical premisesSkips fact review; conclusions lack factual foundationWhen encountering evaluative language, ask "what conduct led you to that conclusion?"
Treating emotion as factRetaining "I'm so angry" / "he's so terrible" as important informationSummary flooded with subjective emotion; objective facts submergedIdentify emotional words ("so," "at all," "obviously," "definitely"); strip them and probe for facts
Omitting key timesFailing to extract or mis-extracting time elementsErrors in calculating limitation periods, exclusive periods, performance deadlinesMark a time for every act; if uncertain, mark "to be confirmed"
Confusing different subjects' conductMixing A's conduct with B'sUnclear attribution of liability; wrong element mappingClearly mark the actor for each fact unit
Over-abstractionOver-generalizing concrete facts into "there is a dispute" / "a controversy arose"Loses concreteness of facts; cannot test elementsRetain concrete elements (amounts, times, quantities, specific acts)
Omitting procedural factsIgnoring demands, notices, objections, and similar procedural actsRisk that procedural elements are unmet is overlookedEspecially ask "was there a demand?" "was there notice?" "was an objection raised?"
Ignoring evidence leadsNot marking possible evidence sources when extracting factsCannot assess evidentiary strength in subsequent legal analysisFor each fact, try to mark possible forms of evidence

VI. Special Scenario Handling

6.1 Multi-Party Cases

  • Extract and classify each subject's conduct separately
  • Clearly mark legal relationships among subjects (contract counterparties, tortfeasor and victim, joint tortfeasors, etc.)
  • For different subjects' versions of the same fact, mark contradictions

6.2 Complex Timeline Cases

  • Prefer the timeline output format
  • Mark legal significance between time points (e.g., how many days after demand; when the exclusive period expires)
  • For original materials with disordered time narratives, sort by time first, then extract

6.3 Chat Logs / Fragmented Information

  • Extract turn by turn; preserve conversational context
  • Distinguish "who said what" from "what actually happened"
  • Note promises, admissions, apologies, and similar content in chats that may constitute party admissions

6.4 Media Reports / Third-Party Narratives

  • Identify information sources (party self-report, eyewitness, journalist inference)
  • Mark secondhand information as "to be verified"
  • Distinguish "confirmed facts" from "speculative statements" in the report

6.5 Case Narratives with Insufficient Evidence

  • Honestly mark elements that "lack factual support"
  • List key facts that need supplementation and possible forms of evidence
  • Do not invent facts because of missing information

6.6 Cases Involving Specialized Domains

  • For specialized terms (medicine, engineering, finance, etc.), retain the original wording while attempting to understand their legal significance
  • Where necessary, mark matters that "require expert appraisal"
  • Do not convert professional judgments directly into legal facts

VII. Quality Checklist

markdown
□ 1. Has the original narrative been segmented into minimal fact units?
□ 2. Has each fact unit clearly identified the actor?
□ 3. Have all facts been classified into the nine fact categories?
□ 4. Have objective facts, subjective judgments, legal evaluations, and background information been distinguished?
□ 5. Have legal evaluative expressions been reduced to an objective factual basis?
□ 6. Have subjective emotional words been stripped?
□ 7. Has everyday language been converted into legal language?
□ 8. Have extracted facts been mapped onto concrete legal constitutive elements?
□ 9. Have facts to be supplemented been listed?
□ 10. Have disputed facts been marked?
□ 11. Have possible evidence sources been marked for each fact?
□ 12. Have key time nodes been extracted (contract formation, performance period, occurrence of damage, time of knowledge, etc.)?
□ 13. Have procedural facts been extracted (demand, notice, objection, suit, etc.)?
□ 14. Does the output use a structured template format?

VIII. Related Skills

Related SkillRelationshipNotes
Legal concept comprehensionUpstreamUnderstanding constitutive elements of legal concepts is required to map facts accurately
Statutory retrievalUpstream / parallelRetrieve legal norms related to the case to determine the constitutive-element framework
Legal rule applicationDownstreamAfter fact extraction, embed facts in rules for legal application
Claim-basis analysisDownstreamMap extracted facts onto each element of a concrete claim
Legal reasoningDownstreamConduct legal argumentation on the basis of facts and rules
Evidence analysisParallel / downstreamReview and assess the evidentiary foundation of extracted facts

IX. Limitations and Risk Notices

  • Functional positioning: This skill solves "the problem of organizing facts before they enter legal analysis" and cannot replace a complete legal argumentation process. Extracted facts still require subsequent analysis under specific legal norms, claim bases, evidence rules, and methods of legal interpretation.
  • Information dependence: Extraction quality depends entirely on the completeness and truthfulness of the original narrative. Where there are serious information gaps, factual contradictions, disordered narrative sequence, or insufficient evidentiary materials, results can only form a preliminary framework.
  • Evidentiary boundary: This skill identifies "possible objective facts" based on textual analysis and cannot replace evidence review. Where key facts are disputed, evidence-based adjudication is the principle; facts must not be found solely from narrative content.
  • Conversion risk: When converting everyday language into legal language, the conversion is only a preliminary judgment and may be skewed by incomplete information. Concrete formulations should follow actual evidence and legal analysis.
  • Residual subjectivity: Although objective facts and subjective judgments must be distinguished, the judgment of "what is a key fact" itself still involves professional legal experience; different analysts may emphasize different points.
  • Currency: When time calculation is involved (limitation periods, exclusive periods), extracted date information may be incomplete or uncertain; mark "to be verified" and advise the user to confirm.

常见问题

Legal Element Extraction AI 技能有什么作用?

当需要从案件描述、当事人陈述、聊天记录或媒体报道等非结构化文本中提取具有法律意义的事实时,触发此技能。常见触发情形包括但不限于:- 用户提供日常语言描述的案件情况,并要求提取法律事实 - 用户要求将口语化、带有情绪色彩的叙述转换为可用于法律分析的事实结构 - 用户要求区分案件叙述中的“客观事实”“主观判断”和“法律评价” - 用户要求将提取出的事实对应到特定法律关系的构成要件 - 用户要求整理案件时间线或生成事实梳理表 - 用户要求将日常语言转换为法律语言(例如,将“他一直拖着不还我钱”改写为“履行期限届满后未履行还款义务”)本技能的核心价值:将交织的生活叙述整理为可纳入法律推理的事实结构,为法律分析做好准备。

为什么在 TypingMind 中使用 Legal Element Extraction?

因为您只需安装一次,就能搭配任何模型使用。Legal Element Extraction 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Legal Element Extraction?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/THUYRan/Legal-Skills-Chinese/tree/main/English/skills/legal-element-extraction。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Legal Element Extraction?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Legal Element Extraction 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Legal Element Extraction 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Legal Element Extraction AI 技能免费吗?

THUYRan 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇