Legal Q&A Extraction Skill
Overview
Extract valuable legal question-answer pairs (client question + lawyer's answer) from lawyer-client communication records and generate structured knowledge base content. It is suitable for converting client consultations into reusable legal knowledge, which can be further organized into articles, cases, or learning materials.
Core Value: Extract Q&A content that can be reused by other clients, rather than the specific case details of a single client.
Core Principles
Client Information Protection
Strictly Prohibited from including the following in Q&A content:
- ❌ Client's real name
- ❌ Enterprise/institution name
- ❌ Specific address, contact information
- ❌ Any information that can identify an individual or enterprise
Desensitization Standards:
- ✅ Client's name → Use generics such as "the party", "client", "Party A/Party B"
- ✅ Enterprise name → Use generics such as "a certain company", "a certain enterprise", "the enterprise"
- ✅ Specific information → Blur into "a certain place", "a certain time", "relevant personnel", etc.
- ✅ Client's original words → Cite after desensitization: "The client asked..." instead of "Mr. Zhang said..."
Value Judgment of Q&A Pairs
The extracted Q&A pairs should meet at least one of the following conditions:
- Universality: Other clients may encounter similar problems
- Typicality: Represents common concerns in a certain type of legal scenario
- Educational Value: The lawyer's answer has popularization value or guiding significance
- Reusability: Can be independently written into an article or used as a knowledge base entry
Workflow
Step 1: Analyze Input Content
Obtain the communication record document and the user's specific requirements, and understand:
- The communication content and context in the document
- Which aspects the user wants to focus on
- Which Q&A pairs have reuse value
Step 2: Identify Valuable Q&A Pairs
Completely sort out the Q&A content in the document, and identify its value based on the following dimensions:
Q&A Identification Dimensions
- Direct Q&A - The client clearly raises a question, and the lawyer provides an answer
- Follow-up Response - The client follows up with a question, and the lawyer further explains
- Risk Reminder - Risks proactively reminded by the lawyer and corresponding suggestions
- Operation Guidelines - Q&A involving processes, steps, and precautions
- Common Concerns - Similar problems that other clients may encounter
Q&A Extraction Methods
- Semantic Analysis: Understand the client's real question and the lawyer's core viewpoints
- Logical Induction: Organize scattered conversations into independent Q&A pairs
- Value Evaluation: Judge whether the Q&A has universal applicability
- Standardized Expression: Convert colloquial expressions into standardized Q&A formats
Step 3: Generate Structured Report
Save the output file to the
same directory as the original document, with the file name:
{Original Document Name}_Legal Q&A Extraction_{YYYYMMDD}.md
See output-template.md for output format details.
Each Q&A pair includes the following parts:
- Question: The question raised by the client (standardized expression)
- Lawyer's Answer: The lawyer's core viewpoints and suggestions (300-500 words)
- Question Background (Optional): The context in which the question arose (200-300 words)
- Value Tags: Universality/Typicality/Educational Value/Reusability
- Applicable Scenarios: Under what circumstances readers would care about this Q&A
Step 4: Q&A Classification and Association
Provide the following analysis dimensions:
- Q&A Feature Analysis: Number of key Q&A pairs, number of regular Q&A pairs, value distribution
- Domain Classification: Classify by legal field or business scenario
- Association Analysis: Which Q&A pairs are related and can be combined into articles
Quality Standards
- Independence: Each Q&A pair can be understood independently without relying on the complete conversation context
- Universality: The Q&A content has reference value for other clients
- Completeness: Both the question and answer are clear and complete, without taking out of context
- Strict Desensitization: Strictly follow client information protection rules
- Reusability: The extracted Q&A can be directly used in articles, knowledge bases, or learning materials
Input Requirements
This skill accepts the following types of input:
- Document Path: The path of the communication record document provided by the user
- Pasted Content: Communication record content directly pasted by the user
- User Requirements: Which types of Q&A the user wants to focus on
Applicable Scenarios
- Organize client consultation records into reusable knowledge
- Extract content marketing materials from conversations
- Establish legal Q&A knowledge bases
- Prepare materials for popular legal articles
- Create client frequently asked questions lists