Agent skill

Analogical Reasoning

by THUYRan in THUYRan/Legal-Skills-Chinese

Trigger this skill when the AI agent must handle any of the following situations: 1.

No licenceAuto-check passedLegal & Compliance

Install Analogical Reasoning

skills CLI
$ npx skills add THUYRan/Legal-Skills-Chinese --skill analogical-reasoning -a claude-code

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

GitHub CLI
$ gh skill install THUYRan/Legal-Skills-Chinese analogical-reasoning --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/THUYRan/Legal-Skills-Chinese.git skills-src && mkdir -p .claude/skills && cp -r skills-src/English/skills/analogical-reasoning .claude/skills/analogical-reasoning && 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
analogical-reasoning
GitHub stars
874
Token cost
~14k tokens
SKILL.md length
5,460 words
Files
1
Skills in repo
71
Repo updated
First seen
Licence
None found

At a glance

Trigger this skill when the AI agent must handle any of the following situations: 1.

  • Works in 4 steps: Equality principle: Like situations… → Systemic coherence: The legal order… → Realization of normative purpose: If the… → …
  • This skill when the AI agent must handle any of the following situations: 1
  • SKILL.md covers I. Overview Table, II. Legal Disclaimer, III. Core Concepts and IV. Complete Workflow, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Analogical Reasoning is an agent skill from THUYRan/Legal-Skills-Chinese. Trigger this skill when the AI agent must handle any of the following situations: 1. The current case/issue has no direct, clear rule in positive law (a legal gap / lacuna); 2. Existing precedents, similar cases, or closely related legal norms must be used to derive a solution for the present issue; 3. The user expressly asks to "refer to," "apply by analogy," or "analogically apply" (参照 / 比照 / 类推适用) a particular norm or case; 4. Legal argumentation must rest on the principle that "like cases should be treated…

Its SKILL.md is about 14k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Legal & Compliance, covering Legal research.

When your agent uses it

  • This skill when the AI agent must handle any of the following situations: 1
  • Tasks that involve Legal research

Example prompts

  • “refer to,”
  • “apply by analogy,”
  • “analogically apply”
  • “/analogical-reasoning”

Workflow steps

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

  1. Equality principle: Like situations should be treated alike—a concrete expression of equality before the law
  2. Systemic coherence: The legal order should be internally coherent; like matters should not receive contradictory legal evaluations
  3. Realization of normative purpose: If the legislative purpose covers the target case, analogical application is a necessary means of…
  4. Legal certainty and predictability: Filling gaps by analogy is more predictable than pure judicial discretion

What it can do on your machine

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

    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

Analogical Reasoning loads about 14k tokens when it runs. Until then it costs about 257 tokens; SKILL.md has 5,460 words of instructions outside code blocks.

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

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); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 5,460 words (~13,967 tokens).

“Analogical Reasoning (类比推理) is a method of legal application whereby, when the case to be decided lacks a directly applicable legal norm, one seeks an existing norm or case that is similar in essential features, and analogically applies (类推适用) that…”

— opening of SKILL.md by THUYRan
name
analogical-reasoning

Read the full SKILL.md on GitHub

Files

Just SKILL.md in English/skills/analogical-reasoning of THUYRan/Legal-Skills-Chinese.

Open the folder on GitHubat commit c31ef1f

Compare with similar skills

Analogical Reasoning 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.

Analogical Reasoning compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Analogical Reasoning this skillTHUYRan/Legal-Skills-Chinese874—~14kAutomated safety check: PassNone
Tw Legal RAGaa0101181514/tw-legal-rag328—~580Automated safety check: PassCustom licence
Design Award SearchSeanJ1ang/design-judge-skills712—~3kAutomated safety check: PassApache-2.0
China Lawyer AnalystCSlawyer1985/china-lawyer-analyst196—~3.3kAutomated safety check: PassNone
Legal Issue ResearchGolden2002/legal-research-skill156—~6.8kAutomated safety check: PassMIT
Tax Law ResearchSerein-81/financial_rag148—~997Automated safety check: NotesNone

Similar skills

  • 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.

    328 GitHub stars~580 tokensUpdated 2 days ago
    Legal & ComplianceAuto-check passed
  • Design Award Search

    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…

    712 GitHub stars~3k tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • China Lawyer Analyst

    CSlawyer1985/china-lawyer-analyst

    通过中国法律视角分析事件,运用成文法解释、指导案例参照、请求权基础分析等方法, 理解权利义务、评估责任风险、识别法律依据并推荐合规策略。

    196 GitHub stars~3.3k tokensUpdated 8 mo ago
    Legal & ComplianceAuto-check passed
  • Legal Issue Research

    Golden2002/legal-research-skill

    中国法律全领域系统性检索专家. An agent skill from Golden2002/legal-research-skill.

    156 GitHub stars~6.8k tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • Tax Law Research

    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.

    148 GitHub stars~997 tokensUpdated 4 mo ago
    Legal & ComplianceAuto-check: notes
  • Case Law Research

    LegalQuants/lq-ai

    A skill your agent uses when the user asks to find, read, or cite U.S.

    150 GitHub stars~2.4k tokensUpdated today
    Legal & ComplianceAuto-check passed

More from THUYRan/Legal-Skills-Chinese

All 71 skills in this repo
  • Billing And Litigation Budget

    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.

    874 GitHub stars~5k tokensUpdated 1 mo ago
    Auto-check passed
  • Case Lifecycle Planning

    THUYRan/Legal-Skills-Chinese

    Case full-lifecycle planning skill. An agent skill from THUYRan/Legal-Skills-Chinese.

    874 GitHub stars~1k tokensUpdated 1 mo ago
    Auto-check passed
  • Legal Abductive Reasoning

    THUYRan/Legal-Skills-Chinese

    Legal abductive reasoning skill for generating and evaluating the most reasonable explanatory hypotheses when evidence is incomplete or facts are ambiguous.

    874 GitHub stars~4k tokensUpdated 1 mo ago
    Auto-check passed
  • Teleological Interpretation

    THUYRan/Legal-Skills-Chinese

    Teleological interpretation skill (目的解释). An agent skill from THUYRan/Legal-Skills-Chinese.

    874 GitHub stars~4.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Trial Scheduling And Deadline Monitoring

    THUYRan/Legal-Skills-Chinese

    A skill your agent uses when the user needs to track or be reminded of hearing schedules, enforcement schedules, evidence-submission deadlines, appeal deadlines, service deadlines, preservation…

    874 GitHub stars~2k tokensUpdated 1 mo ago
    Auto-check passed
  • Argument Chain Construction

    THUYRan/Legal-Skills-Chinese

    Trigger this skill when an AI agent needs to organize legal reasoning results into a complete, internally consistent, and persuasive argumentative structure.

    874 GitHub stars~17k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Analogical Reasoning

What does Analogical Reasoning do?

Trigger this skill when the AI agent must handle any of the following situations: 1. Analogical Reasoning is an agent skill from THUYRan/Legal-Skills-Chinese. Trigger this skill when the AI agent must handle any of the following situations: 1.

When should I use Analogical Reasoning?

Analogical Reasoning fits situations like: this skill when the AI agent must handle any of the following situations: 1; tasks that involve Legal research.

How do I install Analogical Reasoning in Claude Code?

Run `npx skills add THUYRan/Legal-Skills-Chinese --skill analogical-reasoning -a claude-code`. Or copy the skill folder (English/skills/analogical-reasoning in THUYRan/Legal-Skills-Chinese) into .claude/skills/analogical-reasoning in your project. Claude Code loads it when a task matches its description.

How do I install Analogical Reasoning in Codex?

Run `npx skills add THUYRan/Legal-Skills-Chinese --skill analogical-reasoning -a codex`. Or copy the skill folder (English/skills/analogical-reasoning in THUYRan/Legal-Skills-Chinese) into .agents/skills/analogical-reasoning in your project. Codex loads it when a task matches its description.

Can I use Analogical Reasoning 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 THUYRan/Legal-Skills-Chinese --skill analogical-reasoning -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/analogical-reasoning, .gemini/skills/analogical-reasoning, .github/skills/analogical-reasoning and .opencode/skills/analogical-reasoning in your project.

What does Analogical Reasoning need to run?

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

Does Analogical Reasoning 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 Analogical Reasoning 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. Review the folder before installing.

What licence does Analogical Reasoning use?

No licence was found for Analogical Reasoning or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Analogical Reasoning use?

About 14k tokens (SKILL.md is roughly 56k 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 Analogical Reasoning?

Skills that share tags, products or a category with Analogical Reasoning: 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 Legal Issue Research (Golden2002/legal-research-skill, 156 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Analogical Reasoning?

THUYRan (a GitHub user) maintains it in THUYRan/Legal-Skills-Chinese, which has 874 GitHub stars. The repository holds 71 skills in this directory. The repository was last updated on August 22, 2026.

Source: THUYRan/Legal-Skills-Chinese on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.