Tw Legal RAG
aa0101181514/tw-legal-rag
Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law.
A skill your agent uses when the user asks to find, read, or cite U.S.
$ npx skills add LegalQuants/lq-ai --skill case-law-research -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LegalQuants/lq-ai case-law-research --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/case-law-research .claude/skills/case-law-research && rm -rf skills-srcUse ~/.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/
Install the "case-law-research" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/case-law-research into .claude/skills/case-law-research/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "case-law-research", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LegalQuants/lq-ai/tree/main/skills/case-law-researchType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LegalQuants/lq-ai --skill case-law-research -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LegalQuants/lq-ai case-law-research --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/case-law-research .agents/skills/case-law-research && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "case-law-research" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/case-law-research into .agents/skills/case-law-research/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "case-law-research", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LegalQuants/lq-ai --skill case-law-research -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LegalQuants/lq-ai case-law-research --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/case-law-research .cursor/skills/case-law-research && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "case-law-research" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/case-law-research into .cursor/skills/case-law-research/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "case-law-research", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LegalQuants/lq-ai.git --path skills/case-law-research--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LegalQuants/lq-ai --skill case-law-research -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LegalQuants/lq-ai case-law-research --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/case-law-research .gemini/skills/case-law-research && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "case-law-research" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/case-law-research into .gemini/skills/case-law-research/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "case-law-research", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LegalQuants/lq-ai case-law-researchInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LegalQuants/lq-ai --skill case-law-research -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/case-law-research .github/skills/case-law-research && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "case-law-research" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/case-law-research into .github/skills/case-law-research/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "case-law-research", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LegalQuants/lq-ai --skill case-law-research -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LegalQuants/lq-ai case-law-research --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LegalQuants/lq-ai.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/case-law-research .opencode/skills/case-law-research && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "case-law-research" agent skill from https://github.com/LegalQuants/lq-ai/tree/main/skills/case-law-research into .opencode/skills/case-law-research/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "case-law-research", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
case-law-researchA skill your agent uses when the user asks to find, read, or cite U.S.
Case Law Research is an agent skill from LegalQuants/lq-ai. Use when the user asks to find, read, or cite U.S. case law on a question — locating controlling or persuasive decisions via CourtListener, reading the opinion text, and grounding any statement in what the source actually says.
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `examples/research-trail.md`).
It sits in Legal & Compliance, covering Legal research. The repository describes itself as: Open-source AI for legal teams. Bring your own keys, run it where you want, own your data. The licence is Apache-2.0.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d185a62. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Case Law Research loads about 2.4k tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 1,030 words of instructions outside code blocks.
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.
The automated check found no risky patterns in SKILL.md.
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.
The full file from LegalQuants/lq-ai at commit d185a62, republished under its Apache-2.0 licence (© LegalQuants). 1,030 words, ~2,360 tokens.
.claude/skills/case-law-research/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Conduct a structured search of U.S. case law via CourtListener, read the opinion text, and produce a grounded research report. Every statement in the report must be traceable to retrieved text — do not assert what a case holds unless you have read the relevant passage.
Apply when the user asks to locate, read, or cite court decisions on a legal question. Common triggers: finding controlling or persuasive authority, confirming whether authority exists, reading specific language from an opinion, assembling citations for a brief or memo.
Do not apply this skill when:
Required: the question input — the legal question or issue to research. If the user has not stated a question clearly, ask before searching.
Optional: the jurisdiction input — a court or jurisdiction to focus on (e.g., "9th Circuit", "New York Court of Appeals", "SCOTUS"). When provided, weight searches toward that jurisdiction. When absent, begin with a broad U.S. search and note which courts produced the most relevant results.
If the user's question is ambiguous (e.g., "case law on good faith") and the jurisdiction materially affects which results are relevant, ask one clarifying question before searching. Do not block on optional inputs.
This skill runs through the LQ.AI governed gateway. All CourtListener tool calls are tier-gated and audited; the "Sources consulted" panel (visible to the user after the run) shows the provenance trail.
Call search_case_law with a query derived from the user's question. Tips:
search_case_law returns a list of candidate clusters (cases). Each cluster includes a docket identifier and case metadata. Do not assert anything about the case yet — the search result is a pointer, not a full read.
For each promising candidate from Step 1, call get_cluster with the cluster identifier to retrieve the case metadata and the list of opinion documents within it. This confirms the court, date, parties, and which opinion(s) are available to read.
Select the opinion(s) most likely to contain the relevant passage (majority opinion first; concurrences or dissents only if the question specifically implicates them).
To read the full opinion text, call read_opinion with the opinion identifier from the cluster. For long opinions or targeted lookups, call find_in_case with search terms to locate the specific passage.
Ground every statement in retrieved text. Before citing a case for a proposition, locate the supporting passage. Quote or closely paraphrase the relevant excerpt in the report. Do not summarize from memory or from the search-result snippet alone.
If read_opinion or find_in_case returns no content or an error, record the gap explicitly in the report.
State the following clearly in every research report:
Produce the report in markdown with this structure:
# Case-Law Research: [short restatement of the question]
**Question:** [the user's research question]
**Jurisdiction searched:** [courts/jurisdictions covered by the search]
**Date of research:** [today's date]
## Authorities found
[For each case identified as relevant:]
### [Case Name], [Court], [Year] ([Citation if available])
**What was retrieved:** [one or two sentences stating what the opinion addresses, grounded in the text retrieved]
**Relevant passage:**
> [Quoted or closely paraphrased excerpt from read_opinion / find_in_case]
**How this bears on the question:** [one or two sentences connecting the retrieved text to the user's question — descriptive, not conclusory]
---
## Gaps and caveats
- **What was searched:** [query terms and jurisdiction filters used]
- **What was not found:** [authorities the user might expect that did not surface]
- **Jurisdiction notes:** [any mismatch between the user's requested jurisdiction and what was found]
- **Currency warning:** This skill is not a citator. Each case above should be Shepardized or KeyCited before reliance.
- **Coverage note:** CourtListener's corpus has gaps; absence of results does not mean no authority exists.
## Recommended next steps
- [e.g., validate each case's current status in a citator]
- [e.g., search secondary sources for doctrinal synthesis]
- [e.g., consult a jurisdiction-specific practitioner for application to the specific facts]If the search returns no relevant results, the "Authorities found" section should say so explicitly. Do not omit the section.
Keep the report as short as the results warrant. Do not pad. A one-case answer with an honest gaps section is correctly short.
get_cluster) rather than Step 1 if the user provides enough identification to locate the cluster directly. If the identification is incomplete, use search_case_law to locate the cluster first.find_in_case with targeted terms rather than reading the entire text, to locate the passage efficiently.© LegalQuants, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in skills/case-law-research of LegalQuants/lq-ai.
Open the folder on GitHubat commit d185a62
Case Law Research 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Case Law Research this skillLegalQuants/lq-ai | 150 | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Tw Legal RAGaa0101181514/tw-legal-rag | 328 | — | ~580 | Automated safety check: Pass | Custom licence | |
| Design Award SearchSeanJ1ang/design-judge-skills | 712 | — | ~3k | Automated safety check: Pass | Apache-2.0 | |
| China Lawyer AnalystCSlawyer1985/china-lawyer-analyst | 196 | — | ~3.3k | Automated safety check: Pass | None | |
| Billing And Litigation BudgetTHUYRan/Legal-Skills-Chinese | 874 | — | ~5k | Automated safety check: Pass | None | |
| Legal Issue ResearchGolden2002/legal-research-skill | 156 | — | ~6.8k | Automated safety check: Pass | MIT |
aa0101181514/tw-legal-rag
Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law.
SeanJ1ang/design-judge-skills
Find and verify award-winning designs in the same or adjacent functional category through eight explicit relevance dimensions: problem and user, core function, sensing technology, intervention…
CSlawyer1985/china-lawyer-analyst
通过中国法律视角分析事件,运用成文法解释、指导案例参照、请求权基础分析等方法, 理解权利义务、评估责任风险、识别法律依据并推荐合规策略。
THUYRan/Legal-Skills-Chinese
A skill your agent uses when the user needs to track or manage attorney hours, expert fees, and investigation costs; control litigation spend; or prepare timesheets or expense statements for clients.
Golden2002/legal-research-skill
中国法律全领域系统性检索专家. An agent skill from Golden2002/legal-research-skill.
Serein-81/financial_rag
Searches current Chinese tax laws, rates and policy changes with Tavily web search, prioritizing government sources and flagging outdated or conflicting results.
LegalQuants/lq-ai
A skill your agent uses when the user provides a client alert, regulatory bulletin, law firm memo, or similar legal update and wants the time-sensitive action items, deadlines, and obligations…
LegalQuants/lq-ai
A skill your agent uses when the user has a piece of legal-jargon-heavy text and wants it rewritten in plain language for a specified non-legal audience.
LegalQuants/lq-ai
A skill your agent uses when the user has a contract loaded and asks a specific question about it — what a clause means, where something is addressed, whether a term is unusual, how a provision…
LegalQuants/lq-ai
A skill your agent uses when the user wants to compare the same handful of terms across N contracts side-by-side in a grid — what is the term, survival period, carveouts, and governing law in each…
LegalQuants/lq-ai
A skill your agent uses when the user provides a Data Processing Agreement, Data Processing Addendum, or HIPAA Business Associate Agreement and asks whether it contains the terms required under the…
LegalQuants/lq-ai
A skill your agent uses when the user has typed a short or vague prompt and the system is configured to expand prompts before submission, or when the user explicitly invokes "Enhance Prompt" or asks…
Categories
A skill your agent uses when the user asks to find, read, or cite U.S. Case Law Research is an agent skill from LegalQuants/lq-ai.S.
Case Law Research fits situations like: the user asks to find; tasks that involve Legal research.
Run `npx skills add LegalQuants/lq-ai --skill case-law-research -a claude-code`. Or copy the skill folder (skills/case-law-research in LegalQuants/lq-ai) into .claude/skills/case-law-research in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LegalQuants/lq-ai --skill case-law-research -a codex`. Or copy the skill folder (skills/case-law-research in LegalQuants/lq-ai) into .agents/skills/case-law-research in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LegalQuants/lq-ai --skill case-law-research -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/case-law-research, .gemini/skills/case-law-research, .github/skills/case-law-research and .opencode/skills/case-law-research in your project.
SKILL.md names no scripts, command-line tools or credentials: Case Law Research is instructions for the agent only.
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.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Case Law Research is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Case Law Research: Tw Legal RAG (aa0101181514/tw-legal-rag, 328 stars), Design Award Search (SeanJ1ang/design-judge-skills, 712 stars), China Lawyer Analyst (CSlawyer1985/china-lawyer-analyst, 196 stars) and Billing And Litigation Budget (THUYRan/Legal-Skills-Chinese, 874 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LegalQuants (a GitHub organization) maintains it in LegalQuants/lq-ai, which has 150 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 11, 2026.
Source: LegalQuants/lq-ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.