← Back to Skills Marketplace
tobewin

China Legal Query

by ToBeWin · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
745
Downloads
0
Stars
2
Active Installs
3
Versions
Install in OpenClaw
/install china-legal-query
Description
中国法律法规查询工具。Use when user needs to search Chinese laws, regulations, judicial interpretations. Supports criminal law, civil law, labor law, contract law, inte...
README (SKILL.md)

中国法律法规查询工具

查询中国法律法规、司法解释、案例判决。

功能特点

  • ⚖️ 法律条文: 刑法、民法、劳动法、合同法等
  • 📋 司法解释: 最高法院、最高检察院解释
  • 📚 案例参考: 裁判文书、典型案例
  • 🔍 智能搜索: 关键词、法条号、主题搜索
  • 🌐 官方来源: 国家法律法规数据库
  • 🇨🇳 中国法律: 专注中国法律体系

⚠️ 免责声明

本工具仅供参考,不构成法律建议。 不同AI模型能力不同,查询结果可能有差异。 重要法律事务请咨询专业律师。 法律条文以官方发布为准。

支持的法律类型

类别 法律名称 说明
宪法 中华人民共和国宪法 根本大法
刑法 中华人民共和国刑法 犯罪与刑罚
民法 中华人民共和国民法典 民事关系
婚姻法 民法典婚姻家庭编 结婚、离婚、财产
劳动法 中华人民共和国劳动法 劳动关系
合同法 民法典合同编 合同订立、履行
知识产权 专利法、商标法、著作权法 知识产权保护
消费者权益 消费者权益保护法 消费者保护
公司法 中华人民共和国公司法 公司治理
税法 个人所得税法、企业所得税法 税收
环保法 环境保护法 环境保护
交通法 道路交通安全法 交通安全

使用方式

User: "查询劳动法关于加班的规定"
Agent: 搜索相关法律条文并展示

User: "民法典第1024条是什么"
Agent: 查询具体法条内容

User: "关于知识产权保护的法律有哪些"
Agent: 列出相关法律法规

查询流程

用户提问
    ↓
1. 识别法律领域
    ↓
2. 搜索官方数据库
    ↓
3. 提取相关条文
    ↓
4. AI解读分析
    ↓
5. 输出查询结果

Python代码

import os
import re

class LegalQueryEngine:
    def __init__(self):
        self.sources = {
            'web_search': '使用web-search查询法律条文',
            'ai_knowledge': '使用AI模型法律知识库'
        }
    
    def search_law(self, keyword, law_type=None):
        """搜索法律条文"""
        # 使用web-search查询
        # 或使用AI模型知识库
        results = []
        return results
    
    def get_article(self, law_name, article_num):
        """获取具体法条"""
        # 使用AI模型知识库
        return {
            'law': law_name,
            'article': article_num,
            'content': '...',
            'source': 'AI知识库'
        }
    
    def analyze_query(self, user_query):
        """分析用户查询意图"""
        return {
            'domain': '劳动法',
            'keywords': ['加班', '工时'],
            'search_strategy': 'ai_knowledge'
        }

注意事项

  • 法律条文以官方数据库为准
  • AI解读仅供参考
  • 条文可能有更新,以最新版本为准
  • 复杂法律问题请咨询专业律师
Usage Guidance
This skill appears coherent and does not request credentials, so it's not asking for unnecessary access. Two practical cautions: (1) SKILL.md is high-level and does not list concrete official URLs or APIs—make sure the agent's browsing/search settings will fetch authoritative government/legal sources rather than relying on model memory. (2) The skill may use curl or python at runtime to fetch web pages; if you care about privacy or network egress, confirm the agent's browsing policy or test in a controlled environment. For any important legal decisions, verify results against official publications or consult a qualified lawyer.
Capability Analysis
Type: OpenClaw Skill Name: china-legal-query Version: 1.0.2 The skill bundle is a boilerplate implementation for a Chinese legal query tool. The Python code provided in SKILL.md consists of placeholder methods with no functional logic, network requests, or sensitive data access. There are no indicators of malicious intent, prompt injection, or suspicious behavior.
Capability Assessment
Purpose & Capability
Name/description (Chinese law query) align with required binaries (python3 and curl) and the SKILL.md content. The sample Python code and references to web searches are plausible for a search/lookup tool and do not request unrelated capabilities.
Instruction Scope
SKILL.md stays within the stated purpose (identify domain, search databases, extract law text, analyze). It is somewhat high-level/vague about exact data sources (says 'official database' and 'web-search' but gives no concrete URLs or API endpoints), which means the runtime behavior depends on the agent's browsing/search implementation and could yield non-official sources or model-generated summaries if not constrained.
Install Mechanism
No install spec or archive downloads; instruction-only skill has minimal filesystem footprint. This is low-risk from an installation perspective.
Credentials
No environment variables, credentials, or config paths are requested. The skill does not ask for unrelated secrets or broad system credentials.
Persistence & Privilege
The skill uses default privileges (not always:true) and does not request to modify other skills or system-wide settings. Autonomous invocation is allowed by platform default but not excessive here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install china-legal-query
  3. After installation, invoke the skill by name or use /china-legal-query
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
修复数据来源:移除无法访问的网站,改用web-search和AI知识库
v1.0.1
扩展法律覆盖:添加婚姻法、消费者权益、公司法、税法、环保法、交通法等12类法律
v1.0.0
中国法律法规查询工具:支持刑法/民法/劳动法/合同法/知识产权法,AI解读
Metadata
Slug china-legal-query
Version 1.0.2
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 3
Frequently Asked Questions

What is China Legal Query?

中国法律法规查询工具。Use when user needs to search Chinese laws, regulations, judicial interpretations. Supports criminal law, civil law, labor law, contract law, inte... It is an AI Agent Skill for Claude Code / OpenClaw, with 745 downloads so far.

How do I install China Legal Query?

Run "/install china-legal-query" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is China Legal Query free?

Yes, China Legal Query is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does China Legal Query support?

China Legal Query is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created China Legal Query?

It is built and maintained by ToBeWin (@tobewin); the current version is v1.0.2.

💬 Comments