Agent skill

Legal QA Extractor

by cat-xierluo in cat-xierluo/legal-skills

从律师与客户沟通记录中提取有价值的法律问答对,生成结构化知识库内容。本技能应在用户需要整理客户咨询记录、从对话中提取可复用法律知识、创建问答知识库、或准备内容营销素材时使用。支持严格客户信息脱敏处理。

CC-BY-NC-4.0Auto-check: notes

Install Legal QA Extractor

skills CLI
$ npx skills add cat-xierluo/legal-skills --skill legal-qa-extractor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cat-xierluo/legal-skills legal-qa-extractor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/legal-qa-extractor .claude/skills/legal-qa-extractor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
legal-qa-extractor
GitHub stars
720
Token cost
~1.1k tokens
SKILL.md length
180 words
Files
21 (incl. references, assets)
Skills in repo
62
Repo updated
First seen
Licence
CC-BY-NC-4.0

At a glance

从律师与客户沟通记录中提取有价值的法律问答对,生成结构化知识库内容。本技能应在用户需要整理客户咨询记录、从对话中提取可复用法律知识、创建问答知识库、或准备内容营销素材时使用。支持严格客户信息脱敏处理。

  • Works in 5 steps: 直接问答 - 客户明确提出问题,律师给出解答 → 追问回应 - 客户追问,律师进一步解释 → 风险提醒 - 律师主动提醒的风险点及应对建议 → …
  • SKILL.md covers 概述, 核心原则, 工作流程 and 质量标准, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Legal QA Extractor is an agent skill from cat-xierluo/legal-skills. 从律师与客户沟通记录中提取有价值的法律问答对,生成结构化知识库内容。本技能应在用户需要整理客户咨询记录、从对话中提取可复用法律知识、创建问答知识库、或准备内容营销素材时使用。支持严格客户信息脱敏处理。

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 25 other files, including reference files and assets (for example `CHANGELOG.md`, `assets/benchmarks/01-single-issue.md` and `assets/benchmarks/02-multi-issue-switching.md`).

Example prompts

  • “/legal-qa-extractor”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 直接问答 - 客户明确提出问题,律师给出解答
  2. 追问回应 - 客户追问,律师进一步解释
  3. 风险提醒 - 律师主动提醒的风险点及应对建议
  4. 操作指引 - 涉及流程、步骤、注意事项的问答
  5. 普遍关切 - 其他客户也可能遇到的同类问题

What it can do on your machine

Read from SKILL.md and the folder at commit db2c58c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Legal QA Extractor loads about 1.1k tokens when it runs, and up to ~6.5k if it reads all its reference files. Until then it costs about 30 tokens; SKILL.md has 180 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:112
    本技能支持通过 `config/.env` 文件自定义扫描行为:
  • NoteMentions a .env fileSKILL.md:116
    cp config/.env.example config/.env

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (CC-BY-NC-4.0) doesn't allow us to republish the file, so here is its outline and opening line. It has 180 words (~1,063 tokens).

name
legal-qa-extractor
homepage
https://github.com/cat-xierluo/legal-skills
author
杨卫薪律师(微信ywxlaw)
version
1.0.0
license
CC-BY-NC

Read the full SKILL.md on GitHub

Files

SKILL.md and 20 other files (references, assets) in skills/legal-qa-extractor of cat-xierluo/legal-skills.

  • SKILL.md
  • CHANGELOG.md
  • LICENSE.txt
  • archive/.gitkeep
  • assets/benchmarks/01-single-issue.md
  • assets/benchmarks/02-multi-issue-switching.md
  • assets/benchmarks/03-same-issue-repeated.md
  • assets/benchmarks/04-follow-up-questions.md
  • assets/benchmarks/05-proactive-risk-reminder.md
  • assets/benchmarks/06-admin-heavy.md
  • assets/benchmarks/07-incomplete-answer.md
  • assets/benchmarks/08-batch-mixed-directory.md
  • assets/benchmarks/README.md
  • config/.env.example
  • references/batch-processing-rules.md
  • references/benchmark-rubric.md
  • … and 5 more

Open the folder on GitHubat commit db2c58c

Compare with similar skills

Legal QA Extractor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Legal QA Extractor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Legal QA Extractor this skillcat-xierluo/legal-skills720—~1.1kAutomated safety check: NotesCC-BY-NC-4.0
Drama Script Entity Extractorchatfire-AI/huobao-drama16k—~491Automated safety check: PassCustom licence
Keyword Extractorsickn33/agentic-awesome-skills47k2 repos~1.1kAutomated safety check: PassMIT
Competitive Ads Extractornexu-io/open-design100k—~344Automated safety check: PassApache-2.0
Od Web Effect Extractornexu-io/open-design100k—~1.6kAutomated safety check: PassApache-2.0
Video Content Extractorsickn33/agentic-awesome-skills47k1 repos~1kAutomated safety check: PassMIT

Similar skills

  • Drama Script Entity Extractor

    chatfire-AI/huobao-drama

    Rules for pulling characters, scenes and key props out of a short-drama episode script and saving them without duplicates, written in Chinese.

    16k GitHub stars~491 tokensUpdated 5 days ago
    Media & CreativeAuto-check passed
  • Keyword Extractor

    sickn33/agentic-awesome-skills

    Extracts up to 50 highly relevant SEO keywords from text. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~1.1k tokens
    Auto-check passed
  • Competitive Ads Extractor

    nexu-io/open-design

    Extract and analyze competitors' ads from ad libraries to understand messaging and creative approaches that resonate.

    100k GitHub stars~344 tokensUpdated yesterday
    Auto-check passed
  • Od Web Effect Extractor

    nexu-io/open-design

    Extract visual effects, animation systems, Canvas/WebGL/Shader behavior, and interaction details from a reference website, then rebuild them as an editable OpenDesign web artifact.

    100k GitHub stars~1.6k tokensUpdated yesterday
    Game DevelopmentAuto-check passed
  • Video Content Extractor

    sickn33/agentic-awesome-skills

    Extract key frames from MP4 videos at configurable intervals, run Tesseract OCR, and generate structured Markdown reports with video metadata and timestamped text transcripts.

    47k GitHub starsUsed in 1 repo~1k tokens
    Documents & OfficeAuto-check passed
  • Metadata Extractor

    jeremylongshore/tons-of-skills-marketplace

    Process metadata extractor operations. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~562 tokensUpdated yesterday
    Data & AnalyticsAuto-check passed

More from cat-xierluo/legal-skills

All 62 skills in this repo
  • Elements-Style Complaint Generator

    cat-xierluo/legal-skills

    Converts a lawyer's ordinary complaint or a described case into the Supreme People's Court's elements-style Word template, with layout checks on the result.

    721 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check: notes
  • Lecture Performance Review

    cat-xierluo/legal-skills

    Analyzes raw lecture transcripts for verbal tics, pacing, time use and promise follow-through, with optional slide-by-slide comparison and cross-session tracking.

    721 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • De-AI Polish for Chinese Articles

    cat-xierluo/legal-skills

    Detects and rewrites machine-sounding patterns in the body text of Chinese articles while keeping the author's facts, headings and legal terms intact.

    721 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • GitHub Star Manager

    cat-xierluo/legal-skills

    Finds GitHub projects mentioned in articles or screenshots and stars them, tracks updates to your starred repos, and builds an HTML dashboard to browse them.

    721 GitHub stars~2k tokensUpdated yesterday
    Auto-check: notes
  • Legal Harness Initializer

    cat-xierluo/legal-skills

    Sets up or incrementally updates AGENTS.md and CLAUDE.md for legal professionals, with a minimal safety baseline and a check that a new session loads and follows the rules.

    721 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Moot Court Simulation Builder

    cat-xierluo/legal-skills

    Chinese-language skill that organizes a case file into a multi-role mock trial with judge, parties and clerk, producing a transcript, issue review and a to-strengthen list.

    721 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed

Questions about Legal QA Extractor

What does Legal QA Extractor do?

从律师与客户沟通记录中提取有价值的法律问答对,生成结构化知识库内容。本技能应在用户需要整理客户咨询记录、从对话中提取可复用法律知识、创建问答知识库、或准备内容营销素材时使用。支持严格客户信息脱敏处理。. Legal QA Extractor is an agent skill from cat-xierluo/legal-skills.

How do I install Legal QA Extractor in Claude Code?

Run `npx skills add cat-xierluo/legal-skills --skill legal-qa-extractor -a claude-code`. Or copy the skill folder (skills/legal-qa-extractor in cat-xierluo/legal-skills) into .claude/skills/legal-qa-extractor in your project. Claude Code loads it when a task matches its description.

How do I install Legal QA Extractor in Codex?

Run `npx skills add cat-xierluo/legal-skills --skill legal-qa-extractor -a codex`. Or copy the skill folder (skills/legal-qa-extractor in cat-xierluo/legal-skills) into .agents/skills/legal-qa-extractor in your project. Codex loads it when a task matches its description.

Can I use Legal QA Extractor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cat-xierluo/legal-skills --skill legal-qa-extractor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/legal-qa-extractor, .gemini/skills/legal-qa-extractor, .github/skills/legal-qa-extractor and .opencode/skills/legal-qa-extractor in your project.

What does Legal QA Extractor need to run?

SKILL.md names no scripts, command-line tools or credentials: Legal QA Extractor is instructions for the agent only.

Does Legal QA Extractor access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Legal QA Extractor safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Legal QA Extractor use?

Legal QA Extractor is published under the CC-BY-NC-4.0 licence (declared in SKILL.md).

How many tokens does Legal QA Extractor use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.5k tokens, read only when the agent opens those files.

What are the alternatives to Legal QA Extractor?

Skills that share tags, products or a category with Legal QA Extractor: Drama Script Entity Extractor (chatfire-AI/huobao-drama, 16k stars), Keyword Extractor (sickn33/agentic-awesome-skills, 47k stars), Competitive Ads Extractor (nexu-io/open-design, 100k stars) and Od Web Effect Extractor (nexu-io/open-design, 100k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Legal QA Extractor?

cat-xierluo (a GitHub user) maintains it in cat-xierluo/legal-skills, which has 720 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 10, 2026.

Source: cat-xierluo/legal-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.