
zhihe-legal-research
连接智合AI法律大模型平台进行法律研究。本技能应在用户需要进行法律问题研究、查找法律法规、检索类似案例、或获取法律研究报告时使用。需要智合AI平台会员账号。
- Installs
- 118
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/cat-xierluo/legal-skills --skill zhihe-legal-research- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads zhihe-legal-research automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
智合法律研究
连接智合AI法律大模型平台,提供专业的法律调研分析服务。
⚠️ 异步任务处理机制
法律研究是异步长任务(3-10分钟)。采用用户主动查询机制,兼容所有 AI Agent 平台(Claude Code、OpenClaw 等):
用户提交 → 获得任务 ID → 用户稍后主动查询 → 获取结果并归档
核心原则:
- 不在每次消息前自动检查结果——避免旧结果污染当前对话
- 仅在用户主动询问研究结果时才查询状态和结果
- 每次查询完毕后立即归档——确保状态干净,不留残留数据
工作流程
步骤 1:检查登录状态
./scripts/auth.sh check
is_vip: true→ 已登录,继续code: 401→ 需要登录(执行步骤 2)
步骤 2:登录(如需)
# 发送验证码(如果已保存手机号,可省略手机号参数)
./scripts/auth.sh send-code [手机号]
# 验证登录(自动保存 Token 和手机号)
./scripts/auth.sh verify <手机号> <6位验证码>
自动重登流程:如果 config 中已保存 LEGAL_RESEARCH_PHONE,token 失效时可直接执行 ./scripts/auth.sh send-code(无需传入手机号),系统自动使用保存的手机号发送验证码。用户只需提供验证码即可完成重登。
步骤 3:提交法律问题
# 提交问题
./scripts/research.sh submit "<用户的法律问题>"
提交成功后,记录 task_id 并告知用户:
✅ 您的法律问题已提交,后台正在进行调研分析。 ⏱️ 预计需要 3-4 分钟完成。 📋 任务 ID:
{task_id}👉 请在约 4 分钟后回复"查看结果"或"研究结果好了吗"来获取分析报告。
步骤 4:查询结果(仅当用户主动询问时)
触发条件: 用户主动询问研究结果(如"查看结果"、"结果出来了吗"等)。
如果用户提供了 task_id,直接查询;如果未提供,先查历史获取最近任务:
# 如果没有 task_id,先查历史
./scripts/research.sh history 1 3
然后查询状态:
# 查询状态
./scripts/research.sh status <task_id>
根据状态处理:
| 状态 | 处理方式 |
|---|---|
completed | 获取结果 → 获取报告 → 归档 → 展示给用户 |
running | 告知用户继续等待 1-2 分钟后再查询 |
pending | 告知用户仍在排队中,稍后再查 |
failed | 告知用户失败原因,建议重新提交 |
timeout | 告知用户超时,建议简化问题重试 |
当状态为 completed 时,依次执行:
# 1. 获取文字结果
./scripts/research.sh result <task_id>
# 2. 获取报告下载链接
./scripts/research.sh report <task_id>
# 3. 自动归档(下载报告到 archive/ 目录,含 Markdown 转换)
./scripts/research.sh archive <task_id>
归档完成后,展示研究结果和报告链接给用户。
Claude Code 增强模式(可选)
仅在 Claude Code 环境下可用。 提供更好的异步体验,无需用户手动查询。
提交任务后,使用 Bash 工具的 run_in_background: true 启动后台监控:
command: "./scripts/monitor.sh monitor <task_id> 600 30"
run_in_background: true
timeout: 600000
关键注意事项:
- timeout 必须设为 600000(10分钟),否则默认 2 分钟会超时
- 后台监控完成后会自动收到通知,此时展示结果给用户
- 监控脚本会自动归档到
archive/目录
OpenClaw 环境不支持此增强模式,请使用标准流程(步骤 1-4)。
常用命令
认证
| 命令 | 用途 |
|---|---|
./scripts/auth.sh check | 检查登录状态 |
./scripts/auth.sh send-code [phone] | 发送验证码(省略手机号时使用已保存的号码) |
./scripts/auth.sh verify <phone> <code> | 验证登录(自动保存 Token 和手机号) |
./scripts/auth.sh logout | 清除凭证 |
研究操作
| 命令 | 用途 |
|---|---|
./scripts/research.sh submit "<query>" | 提交问题 |
./scripts/research.sh status <task_id> | 查询状态 |
./scripts/research.sh result <task_id> | 获取结果 |
./scripts/research.sh report <task_id> | 获取报告链接 |
./scripts/research.sh archive <task_id> | 归档研究结果 |
./scripts/research.sh history [page] [size] | 查看历史任务 |
监控管理(仅 Claude Code 增强模式)
| 命令 | 用途 |
|---|---|
./scripts/monitor.sh monitor <task_id> [timeout] [interval] | 阻塞监控 |
./scripts/monitor.sh status | 查看监控状态 |
./scripts/monitor.sh results | 获取已完成待通知的结果 |
./scripts/monitor.sh clear <task_id> | 标记为已通知 |
状态处理
| 状态 | 说明 | 处理 |
|---|---|---|
pending | 排队中 | 告知用户等待 |
running | 处理中 | 告知用户继续等待 |
completed | 已完成 | 获取结果 → 归档 → 通知用户 |
failed | 失败 | 通知用户失败原因 |
timeout | 超时 | 通知用户超时 |
配置
所有配置文件自包含在 skill 内部:assets/
| 文件 | 用途 |
|---|---|
.env | Token 和手机号配置(已加入 .gitignore) |
pending.json | 待处理任务 |
completed.json | 已完成待通知 |
notified.json | 已通知历史 |
注意:assets/.env 已加入 .gitignore,敏感信息不会被提交到 git。
配置示例见 assets/.env.example
归档功能
自动归档
任务完成时自动归档:归档时会自动下载报告并保存到 archive/ 目录。
归档命名格式:YYMMDD 主题_法律研究报告
示例:
archive/
├── 260326 美术作品著作权侵权纠纷_法律研究报告/
│ ├── result.md # 研究结果摘要(Markdown)
│ ├── report.docx # 详细报告(自动下载)
│ ├── report.md # 报告 Markdown 版本(需安装 pandoc)
│ └── media/ # 报告中的图片(如有)
└── 260310 劳动合同解除赔偿_法律研究报告/
└── result.md
手动归档
# 归档研究结果(自动下载报告并转换为 Markdown)
./scripts/research.sh archive <task_id>
# 列出所有归档
./scripts/research.sh list-archive
Markdown 转换依赖
归档时会自动尝试将 docx 报告转换为 Markdown:
- 依赖:需要安装 pandoc
- 格式:使用 GitHub Flavored Markdown (GFM),保留原始层级结构
- 图片:自动提取到
media/子目录
# macOS 安装 pandoc
brew install pandoc
详细文档
- API 参考文档 - 完整 API 说明
- 交互示例 - 各种场景的完整流程
注意事项
- 会员要求:需要智合AI平台会员,非会员引导至 https://www.zhiexa.com
- Token 有效期:72 小时,过期需重新登录
- 频率限制:每分钟仅可提交 1 个问题,同时只能有 1 个进行中任务
- 报告链接:有效期 7 天,过期后重新调用接口会自动刷新
- 隐私保护:手机号仅用于鉴权,展示时脱敏
- 跨平台兼容:核心流程仅依赖 bash 脚本,兼容所有 Agent 平台(Claude Code、OpenClaw)
FAQ
What does the zhihe-legal-research skill do?
连接智合AI法律大模型平台进行法律研究。本技能应在用户需要进行法律问题研究、查找法律法规、检索类似案例、或获取法律研究报告时使用。需要智合AI平台会员账号。
How do I install zhihe-legal-research?
Run npx skills add https://github.com/cat-xierluo/legal-skills --skill zhihe-legal-research in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/zhihe-legal-research/ (personal) or .claude/skills/zhihe-legal-research/ (project).
Which AI agents can use zhihe-legal-research?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is zhihe-legal-research safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains zhihe-legal-research?
It is published by cat-xierluo in cat-xierluo/legal-skills. It has 118 recorded installs.
More from cat-xierluo/legal-skills
multi-search
cat-xierluo/legal-skills
智能多主题深度研究工具,支持任意材料输入,使用独立研究 Agent进行并行深度检索并生成系统化研究文档。本技能应在用户需要深度研究多个相关课题、进行系统性信息检索、整合多角度分析时使用。
douyin-batch-download
cat-xierluo/legal-skills
抖音视频批量下载工具 - 基于 F2 框架实现高效、增量的视频下载功能。支持单个/批量博主下载,自动 Cookie 管理,差量更新机制。本技能应在用户需要批量下载特定博主视频、服务器部署自动化下载、或定期更新视频库时使用。
litigation-analysis
cat-xierluo/legal-skills
判决书深度分析。本技能应在用户需要读懂一份判决书、拆解法院事实认定与裁判理由、解释判决主文或提炼文内疑点时使用。不要用于起诉状与证据初评、庭审笔录复盘、多材料综合研判或完整上诉再审决策;这些任务使用 legal-case-analysis。
md2word
cat-xierluo/legal-skills
Markdown转Word文档技能。将Markdown文档转换为符合中文排版标准的专业格式Word文档,支持多种预设格式。适用于正式文档、论文、报告等需要规范排版的文档转换。
funasr-transcribe
cat-xierluo/legal-skills
使用本地 FunASR 服务将音频或视频文件转录为带时间戳的 Markdown 文件,支持 mp4、mov、mp3、wav、m4a 等常见格式。本技能应在用户需要语音转文字、会议记录、视频字幕、播客转录时使用。
legal-proposal-generator
cat-xierluo/legal-skills
根据案件材料或沟通记录生成诉讼方案、非诉方案、建议书、咨询报告、结案汇报等法律服务文档;对外方案可直接生成带设计版式、可编辑的 Word(C/D/E/F 四款封面,可选团队与律所附页)。用户需要法律服务文档或设计版 Word 方案时使用。
Popular business & finance skills
sales-enablement
coreyhaines31/marketingskills
When the user wants to create sales collateral, pitch decks, one-pagers, objection handling docs, or demo scripts. Also use when the user mentions 'sales deck,' 'pitch deck,' 'one-pager,' 'leave-behind,' 'objection handling,' 'deal-specific ROI analysis,' 'demo script,' 'talk track,' 'sales playbook,' 'proposal template,' 'buyer persona card,' 'battle card,' 'battlecard,' 'competitive one-pager,' 'win-loss analysis,' 'why are we losing deals,' 'loss reasons,' 'how do I respond to this objection,' 'prospect just said,' 'help my sales team,' 'sales materials,' or 'what should I give my sales reps,' 'cold call script,' or 'voicemail script.' Use this for any document or asset that helps a sales team close deals. For public competitor comparison pages, see competitors. For running buyer interviews or churn research, see customer-research. For marketing website copy, see copywriting. For cold outreach emails, see cold-email. For the offer being sold (bonuses, guarantees, pricing structure),
revops
coreyhaines31/marketingskills
When the user wants help with revenue operations, lead lifecycle management, or marketing-to-sales handoff processes. Also use when the user mentions 'RevOps,' 'revenue operations,' 'lead scoring,' 'outbound pipeline stages,' 'lead routing,' 'MQL,' 'SQL,' 'pipeline stages,' 'deal desk,' 'CRM automation,' 'marketing-to-sales handoff,' 'data hygiene,' 'leads aren't getting to sales,' 'pipeline management,' 'lead qualification,' or 'when should marketing hand off to sales.' Use this for anything involving the systems and processes that connect marketing to revenue. For cold outreach emails, see cold-email. For email drip campaigns, see emails. For pricing decisions, see pricing.
sales-funnel-blueprint
autonnel/autonnel-skills
Turn an offer into a concrete multi-step sales funnel spec - page-by-page structure, price ladder, copy outline and the metrics each step must hit. Use when asked to build a sales funnel, marketing funnel, landing page flow, lead magnet funnel, webinar funnel, tripwire or VSL funnel, when planning a product launch page flow, or when someone asks "what pages do I need" for selling something online.
pricing
coreyhaines31/marketingskills
When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' 'should I offer a free plan,' 'pricing page teardown,' 'pricing page audit,' 'is my pricing page AI-readable,' or 'can AI read my pricing.' Use this whenever someone is figuring out what to charge, how to structure their plans, or wants to audit a pricing page (for humans and for the AI agents that shortlist tools). For in-app upgrade screens, see paywalls. For offer construction (bonuses, guarantees, value framing, naming) on services/courses/coaching/high-ticket B2B, see offers.
cross-border-ecommerce
nexscope-ai/ecommerce-skills
Cross-border e-commerce expansion advisor. Scores target markets on 8 weighted dimensions (market size, ecommerce penetration, competition, regulatory complexity, logistics infrastructure, payment ecosystem, cultural distance, IP protection), compares 5 fulfillment models with cost and transit data, provides country-by-country tax/duty compliance guides (EU VAT/IOSS, UK VAT, US sales tax, CA GST, AU GST, JP consumption tax), maps local payment preferences by market, and builds a phased expansion roadmap. No API key required.
pricing-strategy
coreyhaines31/marketingskills
When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' or 'should I offer a free plan.' Use this whenever someone is figuring out what to charge or how to structure their plans. For in-app upgrade screens, see paywall-upgrade-cro.