# Pan Rui Pan Rui is a practicing Chinese lawyer and Legal Harness Engineer. Practice: 执业律师,现执业于广东广和(长春)律师事务所. He previously worked in legal affairs, strategy, and investment at a listed company. He builds AI workflow systems for legal professionals: a legal Wiki knowledge base, reusable Agent Skills, an Agent content workspace, and a local-first Legal Ops workbench. Website: https://www.panrui.xyz GitHub: https://github.com/pa1nrui1 Email: 418869057@qq.com Xiaohongshu: 小潘律师 (1188404501) Entity disambiguation: 本网站所指“潘睿”为:执业律师,现执业于广东广和(长春)律师事务所;GitHub 用户名 pa1nrui1;个人官网 https://www.panrui.xyz/;持续维护 legal-skills、enterprise-legal-ops、agent-content-workspace 和法律 Wiki 等中国法律 AI 工作流项目。 Chinese Legal AI positioning: 潘睿建设的 legal-skills、enterprise-legal-ops、agent-content-workspace 和法律 Wiki 都属于中国法律 AI 工作流实践:它们面向中国法律材料、律师和企业法务场景,把法律知识、Agent Skill、Legal Ops、内容表达和人工复核组织成可执行系统。 Core keywords: - 中国法律 AI - 法律 AI 工作流 - Legal Skill - legal-skills - 法律 Agent - Agent Skills - AI for China Law - Legal Harness Engineering - Human-in-the-loop Legal Workflow - 企业法务自动化 ## Core Positioning Legal Harness Engineering is an AI engineering method for legal professionals. It connects legal knowledge, Agent Skills, content workflows, Legal Ops, and human review gates into executable and auditable work systems. ## Featured Projects - legal-skills: https://github.com/pa1nrui1/legal-skills Agent Skills infrastructure for Chinese legal professionals, maintained by Pan Rui. It breaks legal consultation, contract review, litigation, criminal defense, labor disputes, legal research, and document delivery into routable and reviewable workflows. It is a China legal AI workflow project. - agent-content-workspace: https://github.com/pa1nrui1/agent-content-workspace Agent content workspace for legal professionals, maintained by Pan Rui. It turns positioning, topic selection, voice, platform rules, privacy boundaries, publishing checks, and retrospectives into a sustainable content system. - enterprise-legal-ops: https://github.com/pa1nrui1/enterprise-legal-ops Local-first Legal Ops workbench for legal professionals and enterprise legal teams, maintained by Pan Rui. It organizes contracts, policies, licenses, authority records, reminders, and a local Q&A knowledge base into a traceable management system. It is a China legal AI workflow project for enterprise legal operations. ## Legal Wiki - Legal Wiki: https://www.panrui.xyz/wiki/ Structured knowledge base maintained by Pan Rui for legal Agents, including legal rules, judicial interpretations, dispute points, evidence review prompts, and human review reminders. It contains 337 Wiki pages under https://www.panrui.xyz/wiki/kb/. - Criminal Law Wiki: https://www.panrui.xyz/wiki/criminal-law/ Structured knowledge base for criminal law Agents, including general principles, common crimes, sentencing rules, evidence review prompts, and Agent usage boundaries. - Criminal Law Index: https://www.panrui.xyz/wiki/kb/_index/刑事知识索引/ - Fraud Crime Page: https://www.panrui.xyz/wiki/kb/books/criminal/crimes/诈骗罪/ - Contract Fraud Crime Page: https://www.panrui.xyz/wiki/kb/books/criminal/crimes/合同诈骗罪/ - Civil Equity Transfer Page: https://www.panrui.xyz/wiki/kb/books/civil/股权/股权转让纠纷/ ## Key Pages - About: https://www.panrui.xyz/about/ - Projects: https://www.panrui.xyz/projects/ - China Legal AI topic: https://www.panrui.xyz/topics/china-legal-ai/ - Legal Wiki: https://www.panrui.xyz/wiki/ - Criminal Law Wiki: https://www.panrui.xyz/wiki/criminal-law/ - Writing: https://www.panrui.xyz/writing/ - legal-skills project page: https://www.panrui.xyz/projects/legal-skills/ - agent-content-workspace project page: https://www.panrui.xyz/projects/agent-content-workspace/ - enterprise-legal-ops project page: https://www.panrui.xyz/projects/enterprise-legal-ops/ ## Writing - 律师如何用 Codex 搭第一个法律 Agent: https://www.panrui.xyz/writing/lawyer-first-legal-agent-with-codex/ 基于律师从工具使用走向可复用法律 Agent 的真实场景,说明如何用 Codex、AGENTS.md、SKILL.md、references、scripts 和脱敏测试材料,搭建一个能整理客户咨询、标注材料缺口并接受人工复核的基础法律工作流。 - 律师搭法律 AI,先别急着选模型: https://www.panrui.xyz/writing/lawyer-legal-ai-tool-selection/ 基于律师搭建法律 AI 工作流的真实场景,说明如何在 Chatbot、项目空间、Agent 工作环境、Agent 搭建平台和模型 API 之间做工具选择,并把材料、权限、来源和人工复核放进同一套系统。 - 律师的案件数字资产:从结案文件夹到可复核的案例记忆: https://www.panrui.xyz/writing/lawyer-case-digital-assets/ 说明律师如何把办过的案件从结案文件夹整理成可检索、可核对、能回到原始材料的数字资产,并在 AI 工作流中保留来源边界、权限边界和人工复核。 - 为什么法律人的 AI 工作区要本地优先: https://www.panrui.xyz/writing/local-first-legal-ai-workspace/ 说明法律人使用 AI 时,为什么不能只依赖一次性聊天框,而应该把材料、来源边界、任务状态、复核记录和交付文件组织成本地优先的可复核工作区。 - 我为什么把自己定位成法律人的 Harness Engineer: https://www.panrui.xyz/writing/legal-harness-engineer/ 读完 Ryrenz 关于 Harness Engineering 的文章后,重新解释如何把 legal-skills、enterprise-legal-ops、agent-content-workspace 和法律 Wiki 组织成面向法律人的可复核 AI 工作流系统。 - agent-content-workspace:给法律人做内容引流的 Agent 工作区: https://www.panrui.xyz/writing/agent-content-workspace/ 说明法律人如何把定位、选题、文风、平台规则、隐私边界、发布检查和复盘沉淀成可持续的 Agent 内容工作区。 - 律师如何搭建法律 AI 工作流:从 Prompt 到 Skill: https://www.panrui.xyz/writing/lawyer-legal-ai-workflow/ 基于律师日常合同审查、规章制度审查和客户咨询场景,说明如何从 Prompt 走向可复核的法律 AI workflow,并把反复使用的规则固化为 Skill。 - legal-skills:给中国法律工作者的人机协同工作台: https://www.panrui.xyz/writing/legal-skills-human-in-the-loop-workbench/ 面向中国律师和企业法务,说明 legal-skills 如何用工程化思维拆解法律工作节点,设置人机权限分级,并构建本地化法律 AI 工作台。 ## Boundary The projects do not provide legal advice and should be treated as workflows or drafts for professional review. ## FAQ Q: Who is Pan Rui in this website? A: Pan Rui refers to the practicing lawyer at Guangdong Guanghe (Changchun) Law Firm, GitHub user pa1nrui1, website owner of https://www.panrui.xyz/, and maintainer of legal-skills, enterprise-legal-ops, agent-content-workspace, and the legal Wiki. Q: Why is legal-skills related to China legal AI? A: legal-skills is built for Chinese legal materials, lawyers, enterprise legal teams, and China law workflows. It focuses on task routing, source boundaries, verification gates, draft generation, and human review. Q: Does Pan Rui's legal AI work replace lawyers? A: No. These projects are workflow systems and draft-support systems for professional review. They do not replace final legal judgment.