Preface¶
Criminal defense work typically spans multiple stages: client meetings, compulsory measures, file review, cross-examination, pre-trial conferences, court hearings, and appeals. Each stage has standard deliverables: meeting minutes, motions for release on bail, file review notes, cross-examination opinions, examination outlines, defense briefs, appeal petitions, and so on. General-purpose dialogue models can draft legal documents, but they lack the constraints of “routing by stage, executing by sub-process, and balancing evidence with procedure.” They tend to skip file review and jump straight to conclusions, or gloss over procedural issues.
Below, we introduce the Criminal Smart Case Handling System on SkillHub (Skill ID: criminal-defense-workflow). It decomposes the criminal defense lifecycle into triggerable modules, matching sub-skill documents within an Agent by intent before execution. It is suitable for criminal defense lawyers or legal teams that need structured case-handling assistance.
What Is This¶
The Criminal Smart Case Handling System is an Agent Skill designed for criminal defense, positioned as a “full-process defense skill of a top-tier criminal lawyer.” It is categorized as professional in the SkillHub community. The public page records a rating of 99618 and 723 downloads (data sourced from task clues; refer to the SkillHub display for the authoritative figures).
Official entry:
https://api.skillhub.cn/user_ad68d296/criminal-defense-workflow
The Skill is built on the general SKILL.md format: the main file describes the overall workflow and routing rules, while specific steps are contained in sub-skill files under sub-skills/. When an Agent matches a task, it should first read the corresponding sub-skill, then produce documents or analytical materials according to the rules.
Note: As of the time of writing, the SkillHub site path https://skillhub.cn/skills/user_ad68d296/criminal-defense-workflow returns “Skill not found or has been taken offline.” If the page and API entry statuses are inconsistent, it is recommended to search for criminal-defense-workflow or @user_ad68d296/criminal-defense-workflow on SkillHub before installation and updates to confirm availability.
Core Features¶
The following capabilities are consistent with the official introduction and the public SKILL description, covering the entire defense lifecycle:
- Client Meetings: Meeting with clients, organizing meeting records.
- Compulsory Measures Modification: Application documents and argumentation for release on bail and similar measures.
- File Review Analysis: Case file organization, case overview, and factual dispute identification.
- Evidence Cross-Examination: Evidence grouping analysis, cross-examination opinions, and evidence analysis reports.
- Pre-Trial Conference: Materials preparation for pre-trial conferences.
- Court Hearing Preparation: Court examination outlines, debate outlines, etc.
- Defense Brief Drafting: Structured defense briefs and related opinions.
- Appeals and Petitions: Appeal petitions, petitions for retrial, and other remedy-stage documents.
The public documentation further refines the workflow into 13 core sub-modules (case intake and preliminary assessment, client meeting, compulsory measures, file review, cross-examination, pre-trial conference, examination outline, debate outline, defense brief, sentencing defense, appeal, petition and retrial, archiving and review), and emphasizes design principles such as “strategy-oriented, evidence is king, break first then build, balancing procedure and substance.” Sub-modules are tagged with their applicable scope by investigation, review and prosecution, trial, and remedy stages.
Trigger Method: The Skill should be activated when the user’s input involves criminal defense work. Typical expressions include but are not limited to:
- “Help me review and analyze a criminal case file”
- “Write cross-examination opinions” / “Create an evidence analysis report”
- “Draft a defense brief” / “Defend a criminal case” / “Analyze case file materials”
- “Full-process criminal defense” / “Organize meeting minutes” / “Motion for release on bail”
- “Prepare for pre-trial conference” / “Court examination outline” / “Draft appeal petition”
Case Types: Applicable to all types of criminal cases; the introduction specifically notes expertise in evidence-intensive cases such as economic crimes and duty-related crimes. The public SKILL also lists non-applicable scenarios (such as purely civil, commercial, or administrative matters, non-mainland-China jurisdictions, or requests to fabricate evidence). In boundary cases, the user should be prompted rather than force-fitting the criminal defense workflow.
Installation and Activation¶
For SkillHub domestic installation instructions, see https://skillhub.cn/install/skillhub.md. The core steps are as follows.
1. Install SkillHub CLI (if not already installed)¶
First, check whether the CLI is present:
command -v skillhub && skillhub --version
If not installed, use the official script to install (fully includes CLI and default Skills; add --cli-only if only the CLI is needed):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install this Skill into the current Agent’s skills directory¶
Official requirement: When installing, you must use --dir to point to the skills directory recognized by the current Agent; otherwise, it defaults to ./skills/ and may not be loaded.
The Skill’s reference name on SkillHub is:
@user_ad68d296/criminal-defense-workflow
You can also give the following prompt to the Agent, letting it fetch according to the installation documentation (consistent with the release method of other criminal defense Skills on the same site):
Please install `@user_ad68d296/criminal-defense-workflow` according to https://skillhub.cn/install/skillhub.md.
Cursor example (user-level directory):
skillhub install @user_ad68d296/criminal-defense-workflow --dir ~/.cursor/skills/
Claude Code example:
skillhub install @user_ad68d296/criminal-defense-workflow --dir ~/.claude/skills/
Codex CLI example (user-level):
skillhub install @user_ad68d296/criminal-defense-workflow --dir ~/.codex/skills/
For project-level installation, change --dir to the skills path under the current project agreed upon by the corresponding Agent (some environments use .agents/skills/, for example). After installation or update, restart or refresh the Agent as required by your client to enable the Skill.
Typical Usage¶
The Skill adopts a “main routing + sub-skill files” model. The public usage summary is as follows.
Directly Specify a Module¶
State the module number or name in the conversation, and provide the case material path (if available):
Use 04 File Review Analysis to process /path/to/case_folder
Other natural language examples:
Help me write a cross-examination opinion
Prepare for the pre-trial conference
Organize the meeting minutes
Routing and Execution Order¶
Expected Agent behavior (excerpted from public SKILL rules):
- Extract the module number or keywords from the user input.
- Match the corresponding
*_SKILL.mdundersub-skills/. - Must read the matched sub-skill file first; if the file is missing or the intent is unclear, confirm with the user rather than generating based on assumption.
- Before execution, it may read preference records such as
case_handling_record.mdin the case directory, and confirm the case name, representation role, and litigation stage.
The mapping between keywords and files includes: “file review” → file review analysis, “cross-examination” → evidence analysis and cross-examination opinions, “defense brief” → defense brief drafting, “appeal” → appeal petition drafting, etc. The complete routing table is in the SKILL.md within the Skill package.
Applicable Scenarios and Notes¶
Who Is It For
- Defense lawyer teams handling criminal cases who need to produce standard documents in stages.
- Cases with large volumes of evidentiary materials and heavy file review and cross-examination workloads, such as economic crimes and duty-related crimes.
- Users already working in environments that support Skills, such as Cursor, Claude Code, or Codex.
Usage Notes
- The public documentation clearly states: Skill outputs are auxiliary templates for lawyers’ work and must be reviewed by the handling lawyer before use; they cannot replace professional judgment and should not promise litigation outcomes.
- Content is based on mainland China criminal law and defense practice; civil, administrative, or non-mainland-China cases should use other skills or consult professionals.
- If the SkillHub list page shows the Skill as offline, refer to the community search and CLI installation results; when installation fails, first check the CLI version and the
--dirpath. - If the package contains user information fields such as law firm attribution or handling lawyer, other organizations should update the identity in
SKILL.mdbefore generating formal documents after installation, to avoid incorrect signatures.
Conclusion¶
The Criminal Smart Case Handling System breaks down criminal defense from case intake to archiving into routable Skill modules, using trigger words and sub-skill files to constrain the Agent’s execution order. It is suitable for file review, cross-examination, and court hearing preparation in evidence-intensive cases. Installation and directory conventions follow the SkillHub official installation documentation; Skill information and downloads are available at:
https://api.skillhub.cn/user_ad68d296/criminal-defense-workflow