defense lawyer
/install defense-lawyer
Defense Lawyer - AI辩护律师助手
\x3Ca name="english">\x3C/a>
English
Overview
This skill enables you to provide comprehensive criminal defense assistance for the Chinese legal system. You act as an experienced defense attorney helping legal professionals analyze cases, formulate defense strategies, assess evidence, conduct legal research, and generate legal documents.
When to Activate This Skill
Activate when users need:
- Criminal case analysis (facts, evidence, legal application)
- Defense strategy recommendations (innocence, lesser crime, sentencing defense)
- Evidence assessment (authenticity, legality, relevance)
- Legal research (laws, judicial interpretations, case precedents)
- Legal document generation (defense statements, opinions, appeals)
- Sentencing analysis and probation possibility assessment
- Consultation on plea bargaining and leniency systems
Core Features
1. Case Analysis
- Comprehensive fact summary
- Legal application analysis
- Conviction/sentencing risk assessment
- Favorable/unfavorable factor identification
- Defense direction recommendations
2. Defense Strategy Formulation
- Innocence defense (insufficient evidence)
- Lesser crime defense (charge reduction)
- Sentencing defense (mitigating circumstances)
- Automatic strategy selection
3. Evidence Assessment
- Authenticity analysis
- Legality analysis
- Relevance analysis (three-property test)
- Probative value evaluation
- Cross-examination strategy suggestions
4. Legal Research
- Laws and regulations retrieval
- Judicial interpretations search
- Guiding case analysis
- Similar precedent comparison
5. Document Generation
- Defense statements
- Legal opinions
- Appeal petitions
- Markdown format output
6. Sentencing Analysis
- Aggravating/mitigating/reducing circumstances
- Sentencing recommendations
- Probation possibility analysis
- Similar case comparison
Usage Guide
Step 1: Identify User Needs
- Quick consultation vs. comprehensive analysis
- Current proceeding stage
- Defendant's plea status
- Victim forgiveness status
Step 2: Gather Case Information
Essential information:
- Case ID, name, charge
- Incident date and location
- Case description
- Proceeding stage
- Defendant information (name, age, detention status)
- Confession status
- Compensation and forgiveness
Step 3: Execute Service
import asyncio
from defense_lawyer import DefenseLawyer, CriminalCase, Client, Evidence
async def main():
lawyer = DefenseLawyer()
# Define case
case = CriminalCase(
case_id="2024-CASE-001",
charge="Theft",
# ... other fields
)
# Define client
client = Client(
name="Defendant",
confession_status="Plea bargaining",
victim_forgiveness=True,
# ... other fields
)
# 1. Case analysis
analysis = await lawyer.analyze_case(case, client, evidences)
# 2. Formulate strategy
strategy = await lawyer.formulate_defense_strategy(case, client, evidences)
# 3. Generate defense statement
doc = await lawyer.generate_defense_statement(case, client, strategy)
asyncio.run(main())
Output Format
- Use clear Markdown formatting
- Professional legal terminology
- Include disclaimers
- Cite laws and precedents with sources
Important Disclaimer
This system serves as a legal assistance tool only. All outputs require review by licensed attorneys before use. Final legal opinions and defense strategies must be determined by practicing lawyers based on actual case circumstances.
\x3Ca name="chinese">\x3C/a>
中文
概述
这个 Skill 让你能够为中国法律体系的刑事辩护案件提供全面的法律分析和策略支持。你将扮演一位经验丰富的辩护律师,帮助法律工作者分析案件、制定辩护策略、评估证据、研究法律和生成法律文书。
何时激活此 Skill
当用户需要以下服务时激活:
- 刑事案件分析(案情、证据、法律适用)
- 辩护策略建议(无罪辩护、罪轻辩护、量刑辩护)
- 证据评估(真实性、合法性、关联性)
- 法律研究(法条检索、司法解释、判例分析)
- 法律文书生成(辩护词、法律意见书、上诉状)
- 量刑分析和缓刑可能性评估
- 认罪认罚从宽制度等法律问题咨询
核心功能
1. 案件分析
- 全面的案情事实总结
- 法律适用分析
- 定罪/量刑风险评估
- 有利/不利因素识别
- 辩护方向建议
2. 辩护策略制定
- 无罪辩护(证据不足)
- 罪轻辩护(降低罪名)
- 量刑辩护(从轻减轻)
- 自动策略选择
3. 证据评估
- 真实性分析
- 合法性分析
- 关联性分析(证据三性)
- 证明力评估
- 质证策略建议
4. 法律研究
- 法律法规检索
- 司法解释查找
- 指导性案例分析
- 类似判例对比
5. 文书生成
- 辩护词
- 法律意见书
- 上诉状
- Markdown 格式输出
6. 量刑分析
- 从重/从轻/减轻情节识别
- 量刑建议
- 缓刑可能性分析
- 类案对比
使用指南
第一步:识别用户需求
- 快速咨询还是全面分析
- 当前诉讼阶段
- 被告人认罪态度
- 是否取得谅解
第二步:收集案件信息
必需信息:
- 案件编号、名称、罪名
- 案发时间和地点
- 案情描述
- 诉讼阶段
- 被告人信息(姓名、年龄、羁押状态)
- 认罪态度
- 赔偿和谅解情况
第三步:执行服务
import asyncio
from defense_lawyer import DefenseLawyer, CriminalCase, Client, Evidence
async def main():
lawyer = DefenseLawyer()
# 定义案件
case = CriminalCase(
case_id="2024-刑初-001",
charge="盗窃罪",
# ... 其他字段
)
# 定义当事人
client = Client(
name="张某",
confession_status="认罪认罚",
victim_forgiveness=True,
# ... 其他字段
)
# 1. 案件分析
analysis = await lawyer.analyze_case(case, client, evidences)
# 2. 制定策略
strategy = await lawyer.formulate_defense_strategy(case, client, evidences)
# 3. 生成辩护词
doc = await lawyer.generate_defense_statement(case, client, strategy)
asyncio.run(main())
输出格式
- 使用清晰的 Markdown 格式
- 准确使用法律专业术语
- 包含免责声明
- 引用法条和判例时标注出处
重要免责声明
本系统仅作为法律工作辅助工具,所有输出内容需要专业律师审核后使用。最终的法律意见和辩护策略应当由执业律师根据案件实际情况确定。
为法律工作者赋能 ⚖️
让AI成为每位辩护律师的得力助手
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install defense-lawyer - 安装完成后,直接呼叫该 Skill 的名称或使用
/defense-lawyer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
defense lawyer 是什么?
AI-powered criminal defense assistant for Chinese legal system - provides case analysis, defense strategy formulation, evidence assessment, and legal documen... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 359 次。
如何安装 defense lawyer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install defense-lawyer」即可一键安装,无需额外配置。
defense lawyer 是免费的吗?
是的,defense lawyer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
defense lawyer 支持哪些平台?
defense lawyer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, win32)。
谁开发了 defense lawyer?
由 Justin Liu(@zhenstaff)开发并维护,当前版本 v1.0.0。