legal-ai-skills
Open-source legal AI agent skills for PKULaw, citations, and DOCX workflows
A set of AI agent skill files for Chinese legal work, preventing fabricated citations, fact-checking drafts, formatting Word documents, and querying the PKULaw database.
legal-ai-skills is a collection of reusable instruction sets (called skills) for AI agents working with Chinese legal documents. These skills are designed for agent runtimes that support a SKILL.md-based loading system, such as Claude Code, Codex, or similar tools. You install them by copying skill folders into your agent's skills directory, then ask the AI to use a specific skill when you give it a task.
The core problem the project addresses is that AI tools often fabricate legal citations: inventing article numbers, case names, or page references that do not exist. The skills in this collection are structured to prevent that. When a piece of information cannot be verified, the agent is instructed to mark it with a placeholder like [pending: source] rather than guess. This applies to statute references, case citations, and legal footnotes.
The skills cover several workflows. A fact-checking skill examines legal analysis drafts against source materials the user provides. Citation skills check and reformat footnotes following the Chinese Law Journal Citation Handbook (second edition). A formatting skill produces properly structured Word documents for law school assignments and legal writing. An evidence catalog skill organizes case materials into a structured list. Several skills connect to PKULaw, a major Chinese legal database, to retrieve statutes, regulations, and case law directly through an API integration, though users need their own institutional access credentials to use those.
Word document editing is also covered, with skills for handling footnotes, tables of authorities, and document structure in .docx files. The README is detailed and includes quick-start instructions aimed at law students with no prior technical setup experience.
Where it fits
- Have an AI agent scan a Chinese legal analysis draft and flag every unverified citation with a [pending: source] marker instead of guessing.
- Reformat all footnotes in a law school assignment to match the Chinese Law Journal Citation Handbook second edition standard automatically.
- Search the PKULaw database for statutes and case law through an AI agent using your institutional access credentials.