Z-Lawyer - Criminal Defense Thinking: AI-Assisted Skills for the Full Criminal Defense Process

Foreword

In criminal defense, handling similar cases often requires completing fact sorting, procedural review, and assessments of charges and sentencing within a short timeframe, ultimately culminating in defense opinions and trial outlines. Relying solely on generic LLM conversations often leads to missing procedural milestones, and the taxonomy of charges may not align with practical standards. The following is an introduction to the community Skill “Z律-刑事辩护思维” (Z-Law - Criminal Defense Mindset) on SkillHub, which links information collection to document template generation into a reusable case-handling assistance chain.

What is this

“Z律-刑事辩护思维” is an AI-powered case assistance Skill designed for Chinese criminal defense lawyers. Its coordinates are @user_0323e0dc/criminal-defense-mindset. The current version is 3.2.1, the source is community, the category is professional, and it is maintained by the publisher user_0323e0dc. The page indicates requires_api_key=false, meaning no separate API Key configuration is needed after installation.

The official description positions it as: A criminal defense assistant with the “Progressive Analysis Engine of Procedure and Substance” as its technical core and the “Panoramic Map of 15 Crime Categories” as its knowledge base. It covers the entire workflow, including case information collection, dual-axis analysis (procedure and substance), breakthrough point focus, sentencing calculation, and the generation of document and trial templates.

Skill Details Page: https://www.skillhub.cn/skills/user_0323e0dc/criminal-defense-mindset
API Coordinates Page: https://api.skillhub.cn/user_0323e0dc/criminal-defense-mindset

Core Functions

The following capabilities are derived from the official description and are listed in the order of case handling workflow.

  1. Case Information Collection: Structurally collects facts and material key points related to the case during conversation, laying the foundation for subsequent analysis.
  2. Dual-Axis Analysis of Procedure and Substance: Under the “Progressive Analysis Engine of Procedure and Substance,” it advances along two lines: procedural legality and substantive elements, avoiding discussions that focus solely on charges while ignoring procedure.
  3. Breakthrough Focus: After the dual-axis analysis, it converges defensible and questionable points of contention into a few key breakthrough points to facilitate strategy formulation.
  4. Sentencing Calculation: Once charges and circumstances are clear, it assists in calculation and reasoning frameworks at the sentencing level (specific rules depend on the knowledge base within the Skill).
  5. Document and Trial Template Generation: Outputs defense documents and trial-related templates based on the aforementioned analysis, reducing the time spent starting from a blank document.

The knowledge side emphasizes a Panoramic Map of 15 Crime Categories, used to align systematic retrieval and analysis of common crimes rather than scattered Q&A.

Installation and Activation

For the SkillHub installation process, please refer to the official documentation: https://skillhub.cn/install/skillhub.md

1. Install SkillHub CLI (if not already installed)

First, check if the CLI is already present:

command -v skillhub && skillhub --version

If not installed, you can execute the full installation (CLI + Default Skills) as officially recommended:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install this Skill to the current Agent’s skills directory

During installation, you must use --dir to point to the skills directory recognized by your current client; otherwise, it defaults to ./skills/ which might not be loaded by the Agent. Common paths are as follows (excerpted from SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Example installation command (replace <skills directory> with the actual path in your environment):

skillhub install @user_0323e0dc/criminal-defense-mindset --dir <skills directory>

If you ask the AI to install it via conversation, the prompt provided by the SkillHub page is:

Please install `@user_0323e0dc/criminal-defense-mindset` according to https://skillhub.cn/install/skillhub.md.

After installation is complete, restart or refresh the Agent as required by your client to ensure the new Skill is loaded.

Typical Usage

The official page does not provide fixed conversation scripts; usage should revolve around the workflow described in the introduction to facilitate reproduction within the Agent:

  1. Define the role and case boundaries (client, stage, known file key points), and request Information Collection following the Skill’s process.
  2. Request the initiation of Dual-Axis Analysis of Procedure and Substance, listing procedural issues and points of contention on substantive elements separately.
  3. Based on the analysis results, ask the Agent to Focus on Breakthrough Points (e.g., exclusion of illegal evidence, characterization of charges, status of accomplices, determination of circumstances, etc., depending on the case).
  4. When sentencing defense is required, clarify the charges and circumstances, and request Sentencing Calculation and Reasoning Framework.
  5. Finally, specify the document type (Defense Opinion, Cross-examination Outline, Trial Questioning Outline, etc.), generate a draft Document or Trial Template, and have the lawyer review, modify, and finalize it.

Throughout the process, this Skill should be viewed as an auxiliary tool: facts and legal conclusions must be verified by a licensed lawyer and must not replace professional judgment.

Use Cases and Notes

Who is it for?

  • Lawyers and criminal defense teams handling criminal cases in mainland China who wish to complete procedural review, substantive analysis, and document drafting within a single workflow.
  • Users already working in clients that support SkillHub skills (such as Cursor, Claude Code, Codex) and are willing to manage skill directories using skillhub install.

Usage Notes

  • Categorized as professional, the content is geared towards criminal defense practice; non-lawyer users should not treat the output as legal advice.
  • Sourced from the community, updates and liability lie with the publisher user_0323e0dc; for major cases, cross-verification should be based on official laws, judicial interpretations, and local judicial practices.
  • “No API Key required” merely indicates that the Skill metadata does not require an additional key; the underlying functionality still depends on the LLM and account capabilities of the Agent you are using.
  • SkillHub scraped data (as of the time of writing) shows a rating of approximately 100000 and about 1808 downloads; page statistics will change, so please refer to SkillHub’s real-time display.

Conclusion

“Z律-刑事辩护思维” consolidates the high-frequency tasks of criminal defense—“Collecting Information — Dual-Axis Analysis — Finding Breakthroughs — Calculating Sentencing — Generating Templates”—into a single Skill chain. It serves as a suitable workflow foundation for a conversational case-handling assistant. For installation and coordinates, please refer to SkillHub:

  • https://www.skillhub.cn/skills/user_0323e0dc/criminal-defense-mindset
  • https://api.skillhub.cn/user_0323e0dc/criminal-defense-mindset
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye