Agent skill

Tw Legal RAG

by aa0101181514 in aa0101181514/tw-legal-rag

Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law.

Custom licenceAuto-check passedLegal & Compliance

Install Tw Legal RAG

skills CLI
$ npx skills add aa0101181514/tw-legal-rag --skill tw-legal-rag -a claude-code

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

GitHub CLI
$ gh skill install aa0101181514/tw-legal-rag tw-legal-rag --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/aa0101181514/tw-legal-rag.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/tw-legal-rag .claude/skills/tw-legal-rag && 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
tw-legal-rag
GitHub stars
328
Token cost
~580 tokens
SKILL.md length
272 words
Files
2 (incl. scripts)
Skills in repo
1
Repo updated
First seen
Licence
Custom licence

At a glance

Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law.

  • Works in 5 steps: Cite ONLY ids listed in the bundle's… → Quote only text that appears verbatim in… → If the bundle is empty or retrieval… → …
  • The user asks about 台灣/臺灣 judgments
  • SKILL.md covers When to use, How to retrieve, Citation rules (non-negotiable) and Notes
  • Runs Python scripts from its folder; calls python3, python and pip

What it does

Tw Legal RAG is an agent skill from aa0101181514/tw-legal-rag. Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law. Use when the user asks about 台灣/臺灣 judgments, 判決, 法院見解, legal precedents, or wants case support for a legal argument. Wraps the twlegalrag CLI (pack subcommand); answers must cite only citationids present in the returned bundle.

Its SKILL.md is about 580 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/search_judgments.py`).

It sits in Legal & Compliance, covering Legal research, Citation management and Retrieval-augmented generation. It works with Model Context Protocol and Python. The repository describes itself as: 台灣法律 MCP 伺服器 + CLI(免費、免註冊、免 API key):2,250 萬筆裁判書、行政函釋、憲法法庭裁判,附引用查核。Free Taiwan legal MCP server for Claude/ChatGPT/Codex — bring your own LLM, retrieval-only.

When your agent uses it

  • The user asks about 台灣/臺灣 judgments
  • Legal precedents
  • Wants case support for a legal argument

Example prompts

  • “/tw-legal-rag”

Requirements

  • Python 3

Workflow steps

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

  1. Cite ONLY ids listed in the bundle's allowed_citations. Judgments in
  2. Quote only text that appears verbatim in a judgment's
  3. If the bundle is empty or retrieval fails, say so explicitly. Never
  4. A case number appearing in the bundle proves the judgment exists — it
  5. Follow the bundle's own verification_instructions field; it is part of

What it can do on your machine

Read from SKILL.md and the folder at commit c7aaee0. 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

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • python
    • pip

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

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    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

Tw Legal RAG loads about 580 tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 272 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~91
When it runs · the whole SKILL.md, loaded when a task matches
~580

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 passed

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); the scripts in this folder are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 272 words (~580 tokens).

“Any time the question involves Taiwan law and the answer would benefit from actual court judgments: legal questions in plain language, case-law research, checking whether a cited 字號 exists, or building an argument that needs precedent support. Retrieve FIRST, answer…”

— opening of SKILL.md by aa0101181514, Custom licence
name
tw-legal-rag

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (scripts) in skills/tw-legal-rag of aa0101181514/tw-legal-rag.

  • SKILL.md
  • scripts/search_judgments.py

Open the folder on GitHubat commit c7aaee0

Compare with similar skills

Tw Legal RAG 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.

Tw Legal RAG compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tw Legal RAG this skillaa0101181514/tw-legal-rag328—~580Automated safety check: PassCustom licence
Sciverseopendatalab/Sciverse-Agent-Tools120—~3kAutomated safety check: PassCustom licence
Arxiv MCP Serverblazickjp/arxiv-mcp-server3.2k—~353Automated safety check: PassApache-2.0
Setup MedsciAperivue/medsci-skills333—~960Automated safety check: PassMIT
Literature Review Toolsbrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~2.5kAutomated safety check: NotesCustom licence
Verified Researchsweetcornna/free-search-mcp126—~1.8kAutomated safety check: PassMIT

Similar skills

  • Sciverse

    opendatalab/Sciverse-Agent-Tools

    A skill your agent uses when the user needs academic paper retrieval — searching scientific literature by author/year/journal, finding paper chunks for RAG-style citations, or expanding original…

    120 GitHub stars~3k tokensUpdated 21 days ago
    AI & LLM EngineeringAuto-check passed
  • Arxiv MCP Server

    blazickjp/arxiv-mcp-server

    A skill your agent uses when finding, comparing, reading, or monitoring arXiv papers, including requests for abstracts, citation graphs, original LaTeX, section-level technical details, or…

    3.2k GitHub stars~353 tokensUpdated 3 days ago
    Research & ScienceAuto-check passed
  • Setup Medsci

    Aperivue/medsci-skills

    A skill your agent uses when a skill fails for a missing tool or the environment needs checking.

    333 GitHub stars~960 tokensUpdated 6 days ago
    Research & ScienceAuto-check passed
  • Literature Review Tools

    brycewang-stanford/Auto-Empirical-Research-Skills

    Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening…

    4.6k GitHub stars~2.5k tokensUpdated 6 days ago
    Research & ScienceAuto-check: notes
  • Verified Research

    sweetcornna/free-search-mcp

    Use with the free-search MCP tools whenever a web lookup must yield facts someone will rely on: dates, deadlines, prices, prizes, fees, rules, eligibility, schedules, versions, statistics, news, or…

    126 GitHub stars~1.8k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check passed
  • Droit Etrangers Asile

    lawve-ai/awesome-legal-skills

    Expertise complète en droit français des étrangers, de l'asile et de la nationalité — entrée et visas, séjour (CESEDA livre IV, AES, étranger malade, regroupement familial, métiers en tension)…

    847 GitHub stars~4.4k tokensUpdated 8 days ago
    Legal & ComplianceAuto-check passed

Questions about Tw Legal RAG

What does Tw Legal RAG do?

Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law. Tw Legal RAG is an agent skill from aa0101181514/tw-legal-rag. Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law.

When should I use Tw Legal RAG?

Tw Legal RAG fits situations like: the user asks about 台灣/臺灣 judgments; legal precedents; wants case support for a legal argument.

How do I install Tw Legal RAG in Claude Code?

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

How do I install Tw Legal RAG in Codex?

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

Can I use Tw Legal RAG 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 aa0101181514/tw-legal-rag --skill tw-legal-rag -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tw-legal-rag, .gemini/skills/tw-legal-rag, .github/skills/tw-legal-rag and .opencode/skills/tw-legal-rag in your project.

What does Tw Legal RAG need to run?

Going by SKILL.md and its folder, Tw Legal RAG needs Python for the scripts in its folder and the command-line tools its instructions call (python3, python and pip). Our summary lists: Python 3.

Does Tw Legal RAG access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Tw Legal RAG safe to install?

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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Tw Legal RAG use?

Tw Legal RAG has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Tw Legal RAG use?

About 580 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Tw Legal RAG?

Skills that share tags, products or a category with Tw Legal RAG: Sciverse (opendatalab/Sciverse-Agent-Tools, 120 stars), Arxiv MCP Server (blazickjp/arxiv-mcp-server, 3.2k stars), Setup Medsci (Aperivue/medsci-skills, 333 stars) and Literature Review Tools (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tw Legal RAG?

aa0101181514 (a GitHub user) maintains it in aa0101181514/tw-legal-rag, which has 328 GitHub stars. The repository was last updated on October 10, 2026.

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