Apply IRAC (Issue, Rule, Application, Conclusion) method for structured legal analysis.

MITAuto-check passedLegal & Compliance

Install Law Irac

skills CLI
$ npx skills add asgard-ai-platform/skills --skill law-irac -a claude-code

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

GitHub CLI
$ gh skill install asgard-ai-platform/skills law-irac --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/asgard-ai-platform/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/law-irac .claude/skills/law-irac && 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
law-irac
GitHub stars
242
Token cost
~1.2k tokens
SKILL.md length
520 words
Files
3 (incl. references)
Skills in repo
207
Repo updated
First seen
Licence
MIT

At a glance

Apply IRAC (Issue, Rule, Application, Conclusion) method for structured legal analysis.

  • The user needs to analyze a legal question systematically
  • SKILL.md covers Overview, Framework, Output Format and Examples, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Write a legal memo

What it does

Law Irac is an agent skill from asgard-ai-platform/skills. Apply IRAC (Issue, Rule, Application, Conclusion) method for structured legal analysis. Use this skill when the user needs to analyze a legal question systematically, write a legal memo, evaluate whether a law applies to a situation, or structure a legal argument — even if they say 'does this law apply', 'analyze this legal issue', or 'write a legal analysis'.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `examples/sample_scenario.md` and `references/taiwan-legal-resources.md`).

It sits in Legal & Compliance, covering Legal research. The repository describes itself as: 301 open-source coding agent skills across 22 domains — methodology, judgment & gotchas packaged as Claude Agent Skills for the Asgard AI Platform. The licence is MIT.

When your agent uses it

  • The user needs to analyze a legal question systematically
  • Write a legal memo
  • Evaluate whether a law applies to a situation
  • Structure a legal argument — even if they say does this law apply

Example prompts

  • “does this law apply”
  • “analyze this legal issue”
  • “write a legal analysis”
  • “/law-irac”

What it can do on your machine

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

Law Irac loads about 1.2k tokens when it runs, and up to ~3.2k if it reads all its reference files. Until then it costs about 93 tokens; SKILL.md has 520 words of instructions outside code blocks.

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

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

The full file from asgard-ai-platform/skills at commit 4e7f4f8, republished under its MIT licence (© asgard-ai-platform). 520 words, ~1,233 tokens.

Download SKILL.mdSave it as .claude/skills/law-irac/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
law-irac
description
Apply IRAC (Issue, Rule, Application, Conclusion) method for structured legal analysis. Use this skill when the user needs to analyze a legal question systematically, write a legal memo, evaluate whether a law applies to a situation, or structure a legal argument — even if they say 'does this law apply', 'analyze this legal issue', or 'write a legal analysis'.
metadata.category
WP-20 法學院
metadata.tags
law, irac, legal-reasoning

Overview

IRAC is the standard method for structured legal reasoning: identify the legal Issue, state the applicable Rule, Apply the rule to the facts, and reach a Conclusion. It ensures analysis is systematic, complete, and logically rigorous.

Framework

IRON LAW: Issue First, Conclusion Last

NEVER state the conclusion before completing the analysis. IRAC works
BECAUSE it forces you to examine rules and apply them to facts before
reaching a conclusion. Starting with the conclusion and backfilling
the analysis is confirmation bias dressed in legal structure.
The Four Steps

I — Issue: Frame the specific legal question

  • State as a question: "Whether [specific legal question] given [key facts]"
  • Be precise — a vague issue leads to vague analysis
  • There may be multiple issues; address each separately

R — Rule: State the applicable law

  • Statute, regulation, case law, or legal principle
  • Include the specific elements/requirements of the rule
  • If the rule has a test (e.g., 4-factor test for fair use), state all factors

A — Application: Apply the rule to the specific facts

  • This is the core analytical work — match each element of the rule to the facts
  • Address each element/factor separately
  • Acknowledge ambiguity — where facts are unclear, note both possible interpretations
  • Use analogies to precedent cases where available

C — Conclusion: State the result

  • Answer the issue question directly
  • State the degree of confidence (clear, likely, arguable, unclear)
  • Note assumptions that the conclusion depends on

Output Format

markdown
# Legal Analysis: {Topic}

## Issue
Whether [legal question] given [key facts].

## Rule
[Applicable law/principle with specific elements]

## Application
### Element 1: [name]
[Analysis of how facts satisfy or fail this element]

### Element 2: [name]
[Analysis...]

## Conclusion
[Direct answer to the issue with confidence level]

Examples

Correct Application

Scenario: Does an employee's social media post constitute grounds for termination under Taiwan's Labor Standards Act?

Issue: Whether an employee's Facebook post criticizing company management constitutes a violation of the employment contract sufficient for termination under Article 12 of the Labor Standards Act.

Rule: Article 12, Subparagraph 4 of the LSA permits termination without notice when an employee "commits a serious breach of the employment contract or violates work rules to a serious degree." Courts apply a proportionality test: the breach must be so severe that the employment relationship cannot reasonably continue.

Application: The post criticized management's decision to cut overtime pay, using strong language but no false statements. Courts have held that employee speech on matters of working conditions receives higher protection. The proportionality test likely fails — criticism of company policy, even if intemperate, is generally not severe enough to justify termination unless it reveals confidential information or constitutes defamation.

Conclusion: Likely not grounds for lawful termination. Confidence: Moderate — depends on specific language used and whether any confidential information was disclosed ✓

Show full SKILL.md (157 more words)Show less
Incorrect Application
  • "The employee posted something bad on Facebook, so they should be fired. Here's why..." → Conclusion first, then backfilling analysis. Violates Iron Law: issue first, conclusion last.

Gotchas

  • Multiple issues require separate IRAC analyses: Don't combine three legal questions into one analysis. Each issue gets its own I-R-A-C.
  • Rule statement must be specific: "The law says you can't do that" is not a rule statement. Cite the specific statute, article, or legal principle with its elements.
  • Application is where the work is: Students and practitioners spend too little time on Application and too much on Rule. The rule is usually clear — how it applies to ambiguous facts is the challenge.
  • Counter-arguments strengthen analysis: Address the strongest counter-argument in the Application section. One-sided analysis is weak analysis.
  • This is educational methodology, not legal advice: IRAC is a reasoning framework. Actual legal conclusions require a licensed attorney with jurisdiction-specific expertise.

References

  • For Taiwan legal research resources, see references/taiwan-legal-resources.md

© asgard-ai-platform, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in law-irac of asgard-ai-platform/skills.

  • SKILL.md
  • examples/sample_scenario.md
  • references/taiwan-legal-resources.md

Open the folder on GitHubat commit 4e7f4f8

Compare with similar skills

Law Irac 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.

Law Irac compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Law Irac this skillasgard-ai-platform/skills242—~1.2kAutomated safety check: PassMIT
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
Billing And Litigation BudgetTHUYRan/Legal-Skills-Chinese874—~5kAutomated safety check: PassNone
Legal Issue ResearchGolden2002/legal-research-skill156—~6.8kAutomated safety check: PassMIT

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

More from asgard-ai-platform/skills

All 207 skills in this repo
  • Algo Ecom Bm25

    asgard-ai-platform/skills

    Implement BM25 ranking function for e-commerce product search relevance scoring.

    242 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Mfg Cpk

    asgard-ai-platform/skills

    Calculate Cpk process capability index to assess whether a process meets specification requirements.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Price Elasticity

    asgard-ai-platform/skills

    Calculate price elasticity of demand to quantify how price changes affect sales volume.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Bayesian

    asgard-ai-platform/skills

    Apply Bayesian averaging to rank items by combining observed ratings with prior expectations.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Elo

    asgard-ai-platform/skills

    Implement Elo rating system to rank items or players from pairwise comparison outcomes.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Wilson

    asgard-ai-platform/skills

    Calculate Wilson Score confidence intervals for ranking items by positive proportion with sample size correction.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed

Questions about Law Irac

What does Law Irac do?

Apply IRAC (Issue, Rule, Application, Conclusion) method for structured legal analysis. Law Irac is an agent skill from asgard-ai-platform/skills. Apply IRAC (Issue, Rule, Application, Conclusion) method for structured legal analysis.

When should I use Law Irac?

Law Irac fits situations like: the user needs to analyze a legal question systematically; write a legal memo; evaluate whether a law applies to a situation; structure a legal argument — even if they say does this law apply.

How do I install Law Irac in Claude Code?

Run `npx skills add asgard-ai-platform/skills --skill law-irac -a claude-code`. Or copy the skill folder (law-irac in asgard-ai-platform/skills) into .claude/skills/law-irac in your project. Claude Code loads it when a task matches its description.

How do I install Law Irac in Codex?

Run `npx skills add asgard-ai-platform/skills --skill law-irac -a codex`. Or copy the skill folder (law-irac in asgard-ai-platform/skills) into .agents/skills/law-irac in your project. Codex loads it when a task matches its description.

Can I use Law Irac 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 asgard-ai-platform/skills --skill law-irac -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/law-irac, .gemini/skills/law-irac, .github/skills/law-irac and .opencode/skills/law-irac in your project.

What does Law Irac need to run?

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

Does Law Irac 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 Law Irac 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 Law Irac use?

Law Irac is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Law Irac use?

About 1.2k tokens (SKILL.md is roughly 4.9k 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 1.9k tokens, read only when the agent opens those files.

What are the alternatives to Law Irac?

Skills that share tags, products or a category with Law Irac: 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.

Who maintains Law Irac?

asgard-ai-platform (a GitHub organization) maintains it in asgard-ai-platform/skills, which has 242 GitHub stars. The repository holds 207 skills in this directory. The repository was last updated on June 6, 2026.

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