Legal Document Assistant: A Skill for Contract Review and Document Drafting in Agents

前言

When using general-purpose large models in environments like Cursor or Claude Code to handle contracts or agreements, the common issue is not “can it write,” but that the workflow is unstable: trigger conditions are vague, review dimensions are arbitrary, and outputs lack risk grading and disclaimer boundaries. You can勉强 rely on long prompts, but you have to repeat the constraints in every conversation, and it’s easy to miss compliance notes such as “not legal advice” or “does not represent clients in litigation.”

Below is a community Skill on SkillHub called “Legal Document Assistant” (@user_70c2f807/legal-doc-assistant, version 1.0.0). It uses a standard SKILL.md to define the role, capability boundaries, execution steps, and output format in the Agent skills directory. After installation, the Agent automatically selects it according to the documentation, with no additional API key required (tag requires_api_key=false).

这是什么

“Legal Document Assistant” is a Skill for assisting with legal documents for small and medium-sized enterprises and individuals. It is maintained by the community publisher user_70c2f807, categorized on SkillHub as professional, and sourced from community. Its positioning is to provide workflow guidance for contract review, drafting common legal documents, and basic legal consultation, while explicitly not replacing licensed attorneys: it does not cover courtroom defense, litigation representation, tax filing, or the execution of administrative approvals.

Official page: SkillHub — Legal Document Assistant. Package coordinates: @user_70c2f807/legal-doc-assistant.

核心功能

The following capabilities come from the body of this Skill’s SKILL.md; after installation, the Agent executes according to the documentation.

Triggers and boundaries

  • Applies when users mention scenarios such as contract review, writing contracts, liability waivers, labor disputes, intellectual property, privacy policies, user agreements, legal risks, etc.
  • Does not apply to: courtroom defense/litigation representation, tax filing, administrative approval processes, etc. (the documentation requires referral to an attorney, accountant, or relevant departments).

Main capabilities

  1. Contract review: dimensions include party qualifications, rights and obligations, payment and breach, intellectual property, dispute resolution, term and termination, and hidden clauses.
  2. Drafting legal documents: types include labor contracts/service agreements, NDAs, service or outsourcing contracts, partnership/shareholder agreements, leases, user agreements and privacy policies, disclaimers, non-compete restrictions, etc.
  3. Plain-language explanations of legal clauses and common consultation (labor, contracts, IP, consumer rights, etc.).
  4. Generating user agreements/privacy policies, providing business legal risk reminders, templates for demand letters/attorney letters, and labor and offboarding-related documents.

Execution workflow (four steps in the documentation)

  1. Clarify the need: review, drafting, or consultation; industry and jurisdiction; user role; whether complexity exceeds the scope of AI assistance.
  2. Analyze or draft: review clause by clause and provide revision suggestions, or produce a first draft after confirming clauses, or provide consultation advice by citing legal provisions.
  3. Output and recommendations: a structured report or draft, items to confirm, risk levels, and whether attorney involvement is needed.
  4. Risk warnings: explain limitations, situations requiring an attorney, important time limits (such as the one-year labor arbitration period), and evidence preservation recommendations.

The output template defined in the Skill includes sections such as “basic situation, risk level, list of risk points, revision suggestions, legal references, action recommendations, and disclaimer notice,” and emphasizes plain-language explanations, risk grading, actionable suggestions, and a conservative stance.

安装与启用

Before installation, SkillHub CLI must be available on your machine. For checking and installation methods, see the SkillHub installation documentation:

command -v skillhub && skillhub --version

If it is not installed, you can run a full installation (CLI + default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

When installing this Skill, --dir must point to the current Agent’s skills directory; otherwise, if it is installed to the default ./skills/, it may not be recognized. Common paths provided by the official documentation are as follows:

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

In Cursor, you can run:

skillhub install @user_70c2f807/legal-doc-assistant --dir ~/.cursor/skills/

You can also let the Agent follow the same installation documentation: first read https://skillhub.cn/install/skillhub.md, then install @user_70c2f807/legal-doc-assistant. After installation, restart or refresh skill loading as required by your client. This Skill does not require configuring an API key.

典型用法

Usage is natural-language conversation; the “Quick Start” section in the Skill documentation can be used as a reference for reproduction.

Contract review

User: “Help me check whether this contract has any problems.”

According to the Skill, the Agent will ask the user to provide the full contract text and review it from dimensions including parties and qualifications, rights and obligations, payment, breach, intellectual property, dispute resolution, term and termination, and hidden traps. It will also follow up with questions such as which side you are on, the contract type, and the risks you are most concerned about.

Document drafting

User: “Help me write a confidentiality agreement.”

The Agent will confirm the contract type, the signing parties, core clauses, and the interests to be protected, then generate a first draft according to the document types listed in the Skill, and mark the parts that require manual customization.

Legal consultation

After the user describes a labor dispute or breach situation, the Agent will collect facts, roles, and progress according to the Skill, provide an analysis of the legal relationship, risks, and steps, and explain when it is necessary to consult a licensed attorney.

适用场景与注意

Who it’s for

  • SME legal staff, entrepreneurs, and product managers (for privacy policies/user agreements) who need to quickly perform initial contract screening, template drafting, or plain-language clause explanations inside an Agent.
  • Users who want outputs with risk grading and disclaimer statements instead of a one-off long prompt.

Limitations and cautions

  1. The documentation repeatedly emphasizes: it is not a licensed attorney and does not constitute formal legal advice; criminal matters, large-amount disputes, etc. require a professional attorney.
  2. Laws vary by region; users need to specify the applicable jurisdiction; legal provisions and policies may lag, and major decisions should be manually reviewed.
  3. SkillHub page metadata (as of crawl time): rating 100000, downloads 2562; after installation, behavior is based on the local SKILL.md.
  4. It does not help circumvent laws or draft illegal documents; information involving others’ privacy should not be disclosed externally.

结尾

“Legal Document Assistant” writes contract review dimensions, document types, a four-step execution workflow, and a unified output structure into SKILL.md, making it suitable for everyday legal document assistance in clients that already support Skills. For installation and details, see the official SkillHub page: https://www.skillhub.cn/skills/user_70c2f807/legal-doc-assistant, and the API endpoint: https://api.skillhub.cn/user_70c2f807/legal-doc-assistant.

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

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

Xiaoye