IMA Knowledge Base Legal Advisor: Utilizing RAG for Preliminary Legal Diagnosis and Action Strategies

Introduction

A common pain point when asking legal questions in an Agent is that the answers resemble “popular science legal education”: they lack a sense of the case-handling stages, statutes and cases are difficult to verify, and invalid statutes are not necessarily flagged. If you wish to obtain “traceable and verifiable” preliminary judgments in a conversation, rather than formal opinions replacing a lawyer, you can integrate Retrieval-Augmented Generation (RAG) legal knowledge bases and phased case-handling strategies into a Skill. Below is an introduction to the IMA Knowledge Base Legal Consultation Expert on SkillHub (Coordinate: @user_b463487e/tencent-ima-copilot-legal-consultation, current version 1.1.2).

What is this

The IMA Knowledge Base Legal Consultation Expert is an Agent Skill guided by the phased case-handling mindset of a senior lawyer and combined with RAG legal knowledge base retrieval. It is published by community user user_b463487e, sourced from the community, categorized as professional, and tagged with requires_api_key=false, meaning no additional API Key configuration is required to install this Skill.

It is designed for scenarios where, after a user describes a dispute or uploads materials, they receive a preliminary diagnosis of the legal issue and an action strategy. It is explicitly not intended for issuing formal legal opinion letters, drafting legal documents, or replacing lawyers in court appearances.

Core Features

The following capabilities are derived from the official SkillHub description and can be tailored for use as needed.

Triggering and Coverage Scenarios

The Skill is triggered when users describe legal disputes, consult on “what to do,” “can I sue,” or “will I go to jail,” or when cases involve non-payment of debts, being sued, litigation, rights protection, compensation, work injuries, traffic accidents, rental disputes, inheritance, divorce, contract disputes, consumer rights, corporate labor disputes, etc. It also triggers for analyses of contracts/torts/labor/family affairs/administration/corporate equity, or when legal files are uploaded.

Retrieval and Output Forms

  • Layered Deep Reading Strategy: Reads knowledge base content in layers of depth rather than performing a single shallow retrieval.
  • Multi-round Synonym Search: Expands retrieval with multi-round keywords to improve hit rates.
  • Structured Citation List: Output citations include validity status annotations to facilitate checking whether statutes are still valid.
  • Quick / Expert Dual Modes: Allows selection of analysis paths with varying depths based on the scenario.

Anti-hallucination Guarantees

Built-in mechanisms include: Absolute Traceability, Timeliness Verification, and a Hallucination Self-check List. The goal is to ensure statutory citations are traceable, case judgments are verified, and invalid statutes are automatically labeled.

Installation and Activation

The installation method provided on the SkillHub page instructs the AI assistant currently in use to pull the Skill according to the official installation instructions.

  1. Open the installation instruction document: https://skillhub.cn/install/skillhub.md.
  2. Follow the steps in the document to install the Skill with the coordinate @user_b463487e/tencent-ima-copilot-legal-consultation.

You can send the following prompt to an AI supporting SkillHub (such as Cursor, Claude Code, etc., subject to the installation document for details):

Please install `@user_b463487e/tencent-ima-copilot-legal-consultation` according to https://skillhub.cn/install/skillhub.md.

Official API Endpoint: https://api.skillhub.cn/user_b463487e/tencent-ima-copilot-legal-consultation
SkillHub Display Page: https://www.skillhub.cn/skills/user_b463487e/tencent-ima-copilot-legal-consultation

Typical Usage

The official materials do not provide fixed dialogue scripts; triggering methods are based on the scenarios in the description. After installing and enabling the Skill via the steps above, you can try the following types of input.

Verbal Description of Disputes (Triggers phased diagnosis and strategy):

The other party owes me 50,000 RMB for goods and hasn't paid for two years. I have WeChat chat records and transfer screenshots. Can I sue? What is the general process?

Risk and Procedural Questions:

I was laid off by the company but didn't sign a written termination agreement. Does this count as an illegal termination? How should I protect my rights?

Uploading Legal Files (The description indicates triggering when legal files are uploaded): Attach contracts, notice letters, judgment documents, etc., in the dialogue, and explain the points you want to confirm, such as the validity of clauses or the next steps in the procedure.

For more in-depth retrieval and citation lists, you can specify the use of Expert Mode in the same round of conversation; if time is tight and you only need direction, you can specify Quick Mode (specific behavior is subject to the conventions in the Skill’s SKILL.md).

Applicable Scenarios and Notes

Who it is for

  • Individuals or business staff who need to quickly sort out case details, procedural options, and rights protection paths.
  • Developers who wish to see verifiable citations and validity annotations in answers, and who want to reference its RAG and anti-hallucination design concepts when building their own legal Agents.

Limitations

  • The output is a preliminary diagnosis and strategy and cannot replace formal legal opinions issued by lawyers, court representation, or standard format legal documents.
  • SkillHub page statistics (as of data capture): Rating 100000, Downloads 4671; data changes with platform updates, please refer to SkillHub for the latest.

Usage Notes

  • Individual case facts vary greatly. The Skill’s conclusions should be treated as information organization prior to decision-making; for major matters, it is still recommended to consult a practicing lawyer.
  • When relying on knowledge bases and timeliness verification, critical statutes and cases should be independently double-checked against official texts.

Conclusion

The IMA Knowledge Base Legal Consultation Expert integrates “phased case-handling thinking + RAG legal knowledge base + traceability and timeliness verification” into an installable Skill, suitable for conducting preliminary diagnosis and action strategy sorting for legal issues in conversations. For installation and details, see SkillHub:
https://www.skillhub.cn/skills/user_b463487e/tencent-ima-copilot-legal-consultation

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye