legalskill-legal-consultation

Analyzes legal questions through a five-phase workflow with RAG retrieval and anti-hallucination verification.

11|2|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/legalskill/legalskill --skill legalskill-legal-consultation-legalskill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: legalskill-legal-consultation
Source: https://github.com/legalskill/legalskill/tree/main/skill/legalskill-legal-consultation
Command: npx skills add https://github.com/legalskill/legalskill --skill legalskill-legal-consultation-legalskill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Legal questions often get shallow or hallucinated AI answers with fabricated statutes and case citations. This Skill enforces a disciplined five-phase consultation workflow—fact gathering before legal research, multi-round RAG retrieval from curated legal knowledge bases, and a mandatory 41-item anti-hallucination checklist—so every cited statute and case is traceable to a real retrieval hit. ## Core Features & Use Cases - Five-Phase Consultation Workflow: User profiling, environment detection, scenario classification across eight legal domains (contracts, torts, family, labor, criminal, administrative, corporate, IP), tiered retrieval, and stepwise action plans. - Adaptive Retrieval Routing: Automatically detects IMA native, MCP-bridged, or standalone environments, selects the correct knowledge base identifiers, and falls back to web search only when RAG is unavailable. - Complexity-Based Routing: Classifies matters as simple, standard, or deep, scaling search rounds from 2 to 7+ with tiered reading (full text, abstract, title-only) and optional cross-validation of statute currency and regional judicial standards. - Anti-Hallucination Enforcement: Every statute citation carries a validity status label (current, repealed, amended, pending verification), and outputs pass a 41-item verification checklist before delivery. - Use Case: A user asks "my landlord won't return my deposit and the lease was verbal—can I sue?" The Skill gathers facts, retrieves the Civil Code provisions and similar cases from the knowledge base, compares facts against statutory elements, and outputs a structured opinion with tiered citations and a stepwise action plan. ## Quick Start Describe your legal situation in plain language, such as "my employer fired me citing performance but I never signed the evaluation policy—can I claim 2N compensation?", and the Skill will run its full consultation workflow.

Frequently Asked Questions about legalskill-legal-consultation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does AI legal consultation with RAG knowledge bases work?

The Skill first gathers case facts through targeted questioning, then runs multi-round retrieval against curated legal knowledge bases for statutes and precedents. Results are tiered by relevance, cross-checked against a 41-item anti-hallucination checklist, and output as a structured opinion with traceable citations.

How do I get a legal analysis of a labor dispute or contract issue?

Describe your situation in plain language, such as unpaid wages or a breached contract. The Skill classifies the matter into one of eight legal domains, collects key facts, retrieves applicable statutes and similar cases, and produces a stepwise action plan with risk warnings.

Does this legal consultation skill work outside the ima.copilot environment?

Yes. It detects IMA native environments via environment variables, falls back to an ima-mcp bridge when available, and otherwise uses standard RAG search or web search. Knowledge base identifiers are selected automatically per environment from the kb-profiles reference.

Can AI legal analysis replace advice from a licensed lawyer?

No. The output is a preliminary legal research reference, not a formal legal opinion. Every response includes a disclaimer, AI-generation risk notice, and statute validity labels, and users are directed to consult a licensed attorney before taking substantive legal action.

Why does the skill refuse to search before gathering case facts?

The workflow enforces a fact-first principle: retrieval and conclusions are blocked until the factual picture is confirmed with the user. This prevents premature conclusions, misapplied statutes, and hallucinated analysis based on incomplete information.