Agent skill

Legal Skill Alignment

by cat-xierluo in cat-xierluo/legal-skills

写法律 Skill 前的前置对齐步骤——通过苏格拉底式提问把零散的法律经验/素材/直觉厘清为结构化 Brief(legal-skill-brief/v1),交给 skill-creator 编译。适用于律师想把文书经验、办案 SOP、咨询记录做成 Skill 的场景。不适用于非法律类 Skill 创建,也不适用于用户已提供完整可执行 Brief 且明确要求直接编译的情况。

CC-BY-NC-4.0Auto-check passedAgent Workflows

Install Legal Skill Alignment

skills CLI
$ npx skills add cat-xierluo/legal-skills --skill legal-skill-alignment -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cat-xierluo/legal-skills legal-skill-alignment --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/legal-skill-alignment .claude/skills/legal-skill-alignment && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
legal-skill-alignment
GitHub stars
720
Token cost
~3.7k tokens
SKILL.md length
1,074 words
Files
55 (incl. references)
Skills in repo
62
Repo updated
First seen
Licence
CC-BY-NC-4.0

At a glance

写法律 Skill 前的前置对齐步骤——通过苏格拉底式提问把零散的法律经验/素材/直觉厘清为结构化 Brief(legal-skill-brief/v1),交给 skill-creator 编译。适用于律师想把文书经验、办案 SOP、咨询记录做成 Skill 的场景。不适用于非法律类 Skill 创建,也不适用于用户已提供完整可执行 Brief 且明确要求直接编译的情况。

  • Works in 3 steps: 敏感材料识别:检查用户上传或粘贴的内容是否含明显敏感信息(见… → 脱敏提示:如有敏感信息,提示用户:"检测到 [敏感信息类型],请确认是否已脱敏… → 外传确认:默认不上传 /…
  • Tasks that involve Skill authoring
  • SKILL.md covers 定位, 方法论:question-set/v1(当前默认五问), 完整性规则(question-set/v1 必读) and 工作流程, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Legal Skill Alignment is an agent skill from cat-xierluo/legal-skills. 写法律 Skill 前的前置对齐步骤——通过苏格拉底式提问把零散的法律经验/素材/直觉厘清为结构化 Brief(legal-skill-brief/v1),交给 skill-creator 编译。适用于律师想把文书经验、办案 SOP、咨询记录做成 Skill 的场景。不适用于非法律类 Skill 创建,也不适用于用户已提供完整可执行 Brief 且明确要求直接编译的情况。

Its SKILL.md is about 3.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 62 other files, including reference files (for example `CHANGELOG.md`, `evals/case-bundle-260705/EVALUATION.md` and `evals/case-bundle-260705/case-01-contract-review/materials.md`).

It sits in Agent Workflows, covering Skill authoring and Operations and SOPs.

When your agent uses it

  • Tasks that involve Skill authoring
  • Tasks that involve Operations and SOPs

Example prompts

  • “/legal-skill-alignment”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 敏感材料识别:检查用户上传或粘贴的内容是否含明显敏感信息(见 alignment-strategies.md 顶部的"敏感材料识别清单")。
  2. 脱敏提示:如有敏感信息,提示用户:"检测到 [敏感信息类型],请确认是否已脱敏 / 是否需要本 Skill 协助脱敏(仅提示,不自动改写原文件)"。
  3. 外传确认:默认不上传 / 共享给任何外部服务。如需外部检索或服务,必须显式询问用户确认。

What it can do on your machine

Read from SKILL.md and the folder at commit db2c58c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Legal Skill Alignment loads about 3.7k tokens when it runs, and up to ~20k if it reads all its reference files. Until then it costs about 52 tokens; SKILL.md has 1,074 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~52
When it runs · the whole SKILL.md, loaded when a task matches
~3.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~20k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (CC-BY-NC-4.0) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,074 words (~3,712 tokens).

“本 Skill 是写法律 Skill 前的前置步骤——通过苏格拉底式提问,帮助你把零散的"经验/素材/直觉"转化为一份结构化、可被通用 skill-creator 等下游编译器消费的 Legal Skill Brief v1(详见 standard-prompt-output.md)。本 Skill 不直接生成 Skill 文件,只产出喂给下游编译器的 Brief。”

— opening of SKILL.md by cat-xierluo, CC-BY-NC-4.0
name
legal-skill-alignment
homepage
https://github.com/cat-xierluo/legal-skills
author
杨卫薪律师(微信ywxlaw)
version
1.0.7
license
CC-BY-NC

Read the full SKILL.md on GitHub

Files

SKILL.md and 54 other files (references) in skills/legal-skill-alignment of cat-xierluo/legal-skills.

  • SKILL.md
  • CHANGELOG.md
  • LICENSE.txt
  • evals/case-bundle-260705/EVALUATION.md
  • evals/case-bundle-260705/case-01-contract-review/materials.md
  • evals/case-bundle-260705/case-01-contract-review/prompt-output.md
  • evals/case-bundle-260705/case-02-copyright-litigation/materials.md
  • evals/case-bundle-260705/case-02-copyright-litigation/prompt-output.md
  • evals/case-bundle-260705/case-03-data-compliance/materials.md
  • evals/case-bundle-260705/case-03-data-compliance/prompt-output.md
  • evals/case-bundle-260728/b6-compatibility-analysis/README.md
  • evals/case-bundle-260728/v1-realigned/EVALUATION.md
  • evals/case-bundle-260728/v1-realigned/case-01-contract-review
  • … and 42 more

Open the folder on GitHubat commit db2c58c

Compare with similar skills

Legal Skill Alignment next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Legal Skill Alignment compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Legal Skill Alignment this skillcat-xierluo/legal-skills720—~3.7kAutomated safety check: PassCC-BY-NC-4.0
Skill Creatorkid0317/crewai_mas_demo165—~1.6kAutomated safety check: PassApache-2.0
Agent Creatorjdforsythe/forge151—~4.5kAutomated safety check: PassMIT
Writing Skillsed3dai/ed3d-plugins2501 repos~1.3kAutomated safety check: PassNone
Writing Skillssandgardenhq/sgai137—~4.9kAutomated safety check: PassCustom licence
Exp ReflectHHU3637kr/skills145—~2.3kAutomated safety check: PassNone

Similar skills

  • Skill Creator

    kid0317/crewai_mas_demo

    Create new skills and save them to the project's shared skills directory.

    165 GitHub stars~1.6k tokensUpdated 4 mo ago
    Agent WorkflowsAuto-check passed
  • Agent Creator

    jdforsythe/forge

    Creates structured agent definitions using the 7-component format grounded in persona science (the alignment-accuracy tradeoff), vocabulary routing, and the MAST failure taxonomy + Forge watchlist.

    151 GitHub stars~4.5k tokensUpdated 3 mo ago
    Agent WorkflowsAuto-check passed
  • Writing Skills

    ed3dai/ed3d-plugins

    A skill your agent uses when creating new skills, editing existing skills, or verifying skills work before deployment - applies TDD to process documentation by testing with subagents before writing…

    250 GitHub starsUsed in 1 repo~1.3k tokens
    Agent WorkflowsAuto-check passed
  • Writing Skills

    sandgardenhq/sgai

    TDD for process documentation - test with subagents before writing, iterate until bulletproof.

    137 GitHub stars~4.9k tokensUpdated 20 days ago
    Agent WorkflowsAuto-check passed
  • Exp Reflect

    HHU3637kr/skills

    当任务完成、解决困难问题、用户要求总结经验/记录项目理解/更新项目规范,或 spec-end/spec-update 需要从当前 Spec 文档判断是否沉淀经验、知识、SOP、工具记忆、长期项目规范时使用。本 Skill 只做识别 + 分类 + 权重判断 + 草稿 + 用户确认,不落盘写入;内容已经明确、只需写入经验/知识文件并更新索引时直接用 exp-write;程序记忆(SOP)落盘成新…

    145 GitHub stars~2.3k tokensUpdated 18 days ago
    Agent WorkflowsAuto-check passed
  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    796 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed

More from cat-xierluo/legal-skills

All 62 skills in this repo
  • Elements-Style Complaint Generator

    cat-xierluo/legal-skills

    Converts a lawyer's ordinary complaint or a described case into the Supreme People's Court's elements-style Word template, with layout checks on the result.

    721 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check: notes
  • Lecture Performance Review

    cat-xierluo/legal-skills

    Analyzes raw lecture transcripts for verbal tics, pacing, time use and promise follow-through, with optional slide-by-slide comparison and cross-session tracking.

    721 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • De-AI Polish for Chinese Articles

    cat-xierluo/legal-skills

    Detects and rewrites machine-sounding patterns in the body text of Chinese articles while keeping the author's facts, headings and legal terms intact.

    721 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • GitHub Star Manager

    cat-xierluo/legal-skills

    Finds GitHub projects mentioned in articles or screenshots and stars them, tracks updates to your starred repos, and builds an HTML dashboard to browse them.

    721 GitHub stars~2k tokensUpdated yesterday
    Auto-check: notes
  • Legal Harness Initializer

    cat-xierluo/legal-skills

    Sets up or incrementally updates AGENTS.md and CLAUDE.md for legal professionals, with a minimal safety baseline and a check that a new session loads and follows the rules.

    721 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Moot Court Simulation Builder

    cat-xierluo/legal-skills

    Chinese-language skill that organizes a case file into a multi-role mock trial with judge, parties and clerk, producing a transcript, issue review and a to-strengthen list.

    721 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Legal Skill Alignment

What does Legal Skill Alignment do?

写法律 Skill 前的前置对齐步骤——通过苏格拉底式提问把零散的法律经验/素材/直觉厘清为结构化 Brief(legal-skill-brief/v1),交给 skill-creator 编译。适用于律师想把文书经验、办案 SOP、咨询记录做成 Skill 的场景。不适用于非法律类 Skill 创建,也不适用于用户已提供完整可执行 Brief 且明确要求直接编译的情况。. Legal Skill Alignment is an agent skill from cat-xierluo/legal-skills.

When should I use Legal Skill Alignment?

Legal Skill Alignment fits situations like: tasks that involve Skill authoring; tasks that involve Operations and SOPs.

How do I install Legal Skill Alignment in Claude Code?

Run `npx skills add cat-xierluo/legal-skills --skill legal-skill-alignment -a claude-code`. Or copy the skill folder (skills/legal-skill-alignment in cat-xierluo/legal-skills) into .claude/skills/legal-skill-alignment in your project. Claude Code loads it when a task matches its description.

How do I install Legal Skill Alignment in Codex?

Run `npx skills add cat-xierluo/legal-skills --skill legal-skill-alignment -a codex`. Or copy the skill folder (skills/legal-skill-alignment in cat-xierluo/legal-skills) into .agents/skills/legal-skill-alignment in your project. Codex loads it when a task matches its description.

Can I use Legal Skill Alignment in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cat-xierluo/legal-skills --skill legal-skill-alignment -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/legal-skill-alignment, .gemini/skills/legal-skill-alignment, .github/skills/legal-skill-alignment and .opencode/skills/legal-skill-alignment in your project.

What does Legal Skill Alignment need to run?

SKILL.md names no scripts, command-line tools or credentials: Legal Skill Alignment is instructions for the agent only.

Does Legal Skill Alignment access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Legal Skill Alignment safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Legal Skill Alignment use?

Legal Skill Alignment is published under the CC-BY-NC-4.0 licence (declared in SKILL.md).

How many tokens does Legal Skill Alignment use?

About 3.7k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 16k tokens, read only when the agent opens those files.

What are the alternatives to Legal Skill Alignment?

Skills that share tags, products or a category with Legal Skill Alignment: Skill Creator (kid0317/crewai_mas_demo, 165 stars), Agent Creator (jdforsythe/forge, 151 stars), Writing Skills (ed3dai/ed3d-plugins, 250 stars) and Writing Skills (sandgardenhq/sgai, 137 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Legal Skill Alignment?

cat-xierluo (a GitHub user) maintains it in cat-xierluo/legal-skills, which has 720 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 10, 2026.

Source: cat-xierluo/legal-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.