Introduction¶
HR, compensation, and frontline business colleagues often delegate labor law, contract, and arbitration issues to R&D or efficiency tools for “calculation.” General conversational models can provide generic answers but struggle to align with local policy standards. It is also difficult to collect parameters such as payslips, bases, and time ranges before providing structured conclusions. Below is an introduction to the Legal Risk Evaluator (@org-uz7pqext/mayi-skill-0355) released by Ant Salary Stub on SkillHub: it is deployed as a standard Skill for agents like Cursor, guides parameter input during trigger scenarios, and performs compliance-oriented risk assessment and explanations based on built-in rules.
What is it¶
The Legal Risk Evaluator is an enterprise-facing Skill under the SkillHub Professional category. Current version 1.0.0, published by Ant Salary Stub. The official description is: A professional HR compensation management tool that ensures payslips are clear and transparent, and evaluates enterprise legal risks.
Skill coordinates and metadata (excerpted from the SkillHub scraped page) are as follows:
| Item | Value |
|---|---|
| Coordinate | @org-uz7pqext/mayi-skill-0355 |
| Source | enterprise |
| Tags | requires_api_key=false |
| Rating / Downloads / Installs | 100000 / 808 / 0 |
The skill package follows the general SKILL.md format. After installation, the Agent reads the trigger conditions and workflow defined in this file and can call scripts/main.py and references/rules.md within the package if necessary.
Core Functions¶
The following content is consistent with SKILL.md inside the package and is not abbreviated or rewritten.
Trigger Scenarios¶
When users ask about legal issues such as labor law provisions, contract law interpretation, labor arbitration, or legal risk, the Agent should enable this Skill.
Capability Overview¶
| Capability | Description |
|---|---|
| Parameter Input | Supports interactive input of required parameters |
| Intelligent Calculation | Automatically calculates based on the latest policies and regulations |
| Result Output | Generates structured results and explanations |
| Compliance Validation | Built-in compliance rule validation |
Relationship with Compensation Business¶
The skill description states that the risk scope includes payslip compliance risks. On the parameter side, it requires applicable region/city, salary amount or base/ratio, time range (month/year), etc., which aligns with compensation calculation and payroll compliance scenarios.
Policy Reference Scope¶
Policy sources listed in SKILL.md include: the State Taxation Administration, the Ministry of Human Resources and Social Security, announcements from local Human Resources and Social Security Bureaus/Tax Bureaus, and the Regulations on Housing Provident Fund. The references/rules.md inside the package is intended for the Agent or script side to reference.
Installation and Enablement¶
The official page requires installation of this skill according to the SkillHub Installation Instructions. Reproducible steps for common environments are provided below.
1. Install SkillHub CLI¶
Check if it is already installed:
command -v skillhub && skillhub --version
If not installed, you can use the official one-click script (full installation includes default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
2. Install Legal Risk Evaluator¶
Must use --dir to point to the current Agent’s skills directory; otherwise, the default ./skills/ might not be recognized. The slug provided on the official page is @org-uz7pqext/mayi-skill-0355 (requires the @ prefix).
In Cursor, the skills directory is ~/.cursor/skills/:
skillhub install @org-uz7pqext/mayi-skill-0355 --dir ~/.cursor/skills/
In Claude Code, the directory is ~/.claude/skills/:
skillhub install @org-uz7pqext/mayi-skill-0355 --dir ~/.claude/skills/
In Codex, it can be ~/.codex/skills/ or .agents/skills/ under the project (depending on your current Codex configuration):
skillhub install @org-uz7pqext/mayi-skill-0355 --dir ~/.codex/skills/
This skill is marked No API Key Required (requires_api_key=false). If the download from the enterprise source fails, you can first skillhub login or use the environment variable SKILLHUB_SECRET (Enterprise API Key); see CLI install --help for details.
After successful installation, the directory structure should be consistent with the skill description:
@org-uz7pqext/mayi-skill-0355/
├── SKILL.md
├── scripts/
│ └── main.py
└── references/
└── rules.md
After installing or updating a Skill, restart or refresh the session according to the conventions of the Agent you are using to load the new skill.
Typical Usage¶
Using in Agent Conversations¶
- Confirm that the skill is installed in the corresponding
skillsdirectory. - Ask questions related to labor law, contracts, arbitration, or enterprise legal risk in the conversation, and try to complete parameters such as region, amount, and time range.
- The Agent invokes this Skill according to the trigger scenario in
SKILL.mdand outputs a structured explanation; for numerical calculations, you can refer to the script within the package.
Directly Run Calculation Script¶
The skill package provides a command line entry point for local interactive execution of the process:
cd ~/.cursor/skills/@org-uz7pqext/mayi-skill-0355
python scripts/main.py
After inputting parameters according to the prompts, you will obtain a Result Report in a format similar to the following (field content is determined by runtime input and rules):
====================================
Legal Risk Evaluator Result Report
====================================
Basis: [Relevant policies and regulations]
Input Parameters: [Summary of user input]
Calculation Result: [Detailed calculation process]
Final Result: [Final value]
Explanation: [Interpretation and notes on the result]
====================================
Applicable Scenarios and Notes¶
Who is it for: Teams that need to standardize employment, compensation, payslip compliance, and legal risk issues for Agent processing; when scenarios align with the Ant Salary Stub product line, you can directly reuse their parameter design and rule reference methods.
Limitations:
SKILL.mdclearly states: Policy data is based on public regulations and is for reference only; calculation results do not constitute legal advice. Implementation must be based on the latest local policies, and professional institutions should be consulted.- The skill is of the agent_created type; specific calculation logic is based on
scripts/main.pyandreferences/rules.mdinside the package. Major compliance decisions should not rely solely on the model or script output. - The “install” count in SkillHub statistics may be lower than the download count; the validity is determined by whether the aforementioned structure appears in your local
skillsdirectory.
Conclusion¶
The Legal Risk Evaluator converges the process of ‘asking about legal risk → collecting parameters → calculating and explaining according to rules’ into an installable Skill, aligning it with payslip compliance scenarios. It can be pulled from SkillHub as v1.0.0 without requiring an extra API Key.
Official Skill page and API entry:
- https://www.skillhub.cn/skills/org-uz7pqext/mayi-skill-0355
- https://api.skillhub.cn/org-uz7pqext/mayi-skill-0355
Full text of installation instructions: https://skillhub.cn/install/skillhub.md