Legal KB Search
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_b096d7e1/legalkb.
About this skill
Problem to Solve
Legal provisions are scattered across different areas of law. When checking whether a clause applies, engineers often open statutes manually and compare clause numbers and context. The practical gap is not legal interpretation alone, but a scriptable, reusable search entry point: can you locate clauses by keyword and receive citable text, source, and category?
How It Works
legalkb turns legal retrieval into a text pipeline:
- Full-text search: search_law.py searches across 33+ laws, including the Civil Code, administrative law, social law, economic law, criminal law, procedural law, and constitution-related rules.
- Structured output: results include clause number, context snippet, and source annotation, emitted as UTF-8 plain text for downstream processing.
- Local fallback: if a configured directory exists, it can also search local PDF/DOCX files to cover gaps in the online dataset.
- No-result handling: when nothing is found, it states the coverage limit and suggests adding web_search.
Boundaries
This skill is useful for locating statutory text and recalling fragments, not for providing formal legal advice. Quality depends on the underlying just-laws data and its update frequency; for time-sensitive questions or judicial interpretations, verify against the original and current version.
Use Cases
- Engineering checks whether a user agreement includes personal information processing clauses
- Legal review locates Civil Code contract provisions for breach-of-contract clauses
- Data compliance retrieves work safety and labor obligations during an incident review
- Product review locates minor-protection provisions in minor-facing feature descriptions
Best For
- Compliance-focused product managers who need to map feature clauses to legal provisions
- Legal assistants handling customer complaints who search infringement or contract liability clauses
- Operations leads drafting internal policies who need citations from labor and safety laws
- Backend engineers building legal Q&A agents who need clause retrieval in their pipeline
Related Skills
Provides Bazi, Liu Yao, Qimen, Meihua, and date-selection guidance from classical references, with plain-language explanations and actionable suggestions.
Extracts core themes and hierarchical relationships from documents, reports, web pages, and images into editable mind maps.
Parse WeChat favorites exports, classify them with keywords or LLM discovery, and export to Obsidian, Notion, or IMA.
Enter a video URL or local file and automatically download, transcribe, and analyze it into structured outputs such as summaries, quotes, chapters, subtitles, mind maps, and share cards.