Agent skill

Opc Legal Counsel

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

面向 OPC(One Person Company,一人公司 / 单人创业者 + AI 协同)和小微企业经营场景的法律业务分诊与判断技能。用户咨询主体选择、公私分离、联合创始人、融资与激励、合同履约、财税风险、AI 产品、数据与知识产权、用工、监管或争议时使用。负责识别主矛盾、联动风险、行动优先级和升级边界;凡涉及现行法条、效力状态、期限、税率、备案名录、地方政策、办理口径或平台规则,生成结构化…

CC-BY-NC-4.0Auto-check passed

Install Opc Legal Counsel

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

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

GitHub CLI
$ gh skill install cat-xierluo/legal-skills opc-legal-counsel --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/opc-legal-counsel .claude/skills/opc-legal-counsel && 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
opc-legal-counsel
GitHub stars
720
Token cost
~1.4k tokens
SKILL.md length
277 words
Files
32 (incl. scripts, references, assets)
Skills in repo
62
Repo updated
First seen
Licence
CC-BY-NC-4.0

At a glance

面向 OPC(One Person Company,一人公司 / 单人创业者 + AI 协同)和小微企业经营场景的法律业务分诊与判断技能。用户咨询主体选择、公私分离、联合创始人、融资与激励、合同履约、财税风险、AI 产品、数据与知识产权、用工、监管或争议时使用。负责识别主矛盾、联动风险、行动优先级和升级边界;凡涉及现行法条、效力状态、期限、税率、备案名录、地方政策、办理口径或平台规则,生成结构化…

  • Works in 11 steps: 先看经营后果,再找法律标签 → 公司与个人默认分离 → 真实履行比文件标题更重要 → …
  • SKILL.md covers 定位, 先区分两种 OPC, 稳定的业务判断原则 and 输入协议, plus 9 more sections
  • Calls python3

What it does

Opc Legal Counsel is an agent skill from cat-xierluo/legal-skills. 面向 OPC(One Person Company,一人公司 / 单人创业者 + AI 协同)和小微企业经营场景的法律业务分诊与判断技能。用户咨询主体选择、公私分离、联合创始人、融资与激励、合同履约、财税风险、AI 产品、数据与知识产权、用工、监管或争议时使用。负责识别主矛盾、联动风险、行动优先级和升级边界;凡涉及现行法条、效力状态、期限、税率、备案名录、地方政策、办理口径或平台规则,生成结构化检索任务并交由可用法律数据库、MCP 或官方来源核验,不以内置知识冒充最新规则。不要用于替代正式法律意见、深度合同批注、诉讼文书、商标申请、专利分析或纯法规检索。

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 35 other files, including scripts, reference files and assets (for example `CHANGELOG.md`, `README.md` and `assets/contract-clauses.md`).

It works with Model Context Protocol.

Example prompts

  • “/opc-legal-counsel”

Workflow steps

11 steps, taken from the step headings in SKILL.md.

  1. 先看经营后果,再找法律标签
  2. 公司与个人默认分离
  3. 真实履行比文件标题更重要
  4. 跨领域问题必须合并判断
  5. 高风险时先止损,不等待完整研究
  6. :识别任务类型
  7. :建立事实与目标图
  8. :进行多领域路由
  9. :先形成业务判断
  10. :分离规则命题并检索
  11. :整合结论并绑定依据状态

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

    Ships 1 file in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    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

Opc Legal Counsel loads about 1.4k tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 75 tokens; SKILL.md has 277 words of instructions outside code blocks.

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

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); the scripts in this folder 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 277 words (~1,435 tokens).

name
opc-legal-counsel
homepage
https://github.com/cat-xierluo/legal-skills
author
杨卫薪律师(微信ywxlaw)
version
1.0.2
license
CC-BY-NC

Read the full SKILL.md on GitHub

Files

SKILL.md and 31 other files (scripts, references, assets) in skills/opc-legal-counsel of cat-xierluo/legal-skills.

  • SKILL.md
  • CHANGELOG.md
  • LICENSE.txt
  • README.md
  • assets/contract-clauses.md
  • assets/risk-checklist.md
  • assets/template-ai-launch-report.md
  • assets/template-contract-review-report.md
  • assets/template-opc-separation-report.md
  • evals/assertions.json
  • evals/evals.json
  • evals/manual-review.md
  • examples/01-联合创始人股权与技术入股.md
  • examples/02-公私混同补救.md
  • examples/03-AI功能上线检查.md
  • references/ai-compliance.md
  • references/contracts.md
  • … and 15 more

Open the folder on GitHubat commit db2c58c

Compare with similar skills

Opc Legal Counsel 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.

Opc Legal Counsel compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Opc Legal Counsel this skillcat-xierluo/legal-skills720—~1.4kAutomated safety check: PassCC-BY-NC-4.0
Tw Legal RAGaa0101181514/tw-legal-rag328—~580Automated safety check: PassCustom licence
Soloditmarchev/claudit159—~832Automated safety check: PassMIT
Pii Contract Analyzegregmos/PII-Shield150—~8.9kAutomated safety check: NotesMIT
AI SAFE2 Secure Build CopilotCyberStrategyInstitute/ai-safe2-framework147—~1.2kAutomated safety check: PassCustom licence
China AI Compliance AuditjnMetaCode/shellward140—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Tw Legal RAG

    aa0101181514/tw-legal-rag

    Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law.

    328 GitHub stars~580 tokensUpdated yesterday
    Legal & ComplianceAuto-check passed
  • Solodit

    marchev/claudit

    Search Solodit for similar smart contract security findings.

    159 GitHub stars~832 tokensUpdated 5 mo ago
    SecurityAuto-check passed
  • Pii Contract Analyze

    gregmos/PII-Shield

    Universal legal document processor with PII anonymization. An agent skill from gregmos/PII-Shield.

    150 GitHub stars~8.9k tokensUpdated 3 mo ago
    Legal & ComplianceAuto-check: notes
  • AI SAFE2 Secure Build Copilot

    CyberStrategyInstitute/ai-safe2-framework

    Applies the AI SAFE2 framework to security reviews, code reviews and compliance mapping for AI agents, RAG pipelines and MCP servers.

    147 GitHub stars~1.2k tokensUpdated yesterday
    SecurityAuto-check passed
  • China AI Compliance Audit

    jnMetaCode/shellward

    按中国法规(网安法 / PIPL / 等保2.0 / 数据出境 / AI生成内容标识)审计一个 AI 项目的代码仓库,产出每条都带 文件:行 取证、经独立复核、经脚本校验的合规报告。当用户问「这个项目上线合不合规」「调用了 OpenAI/Claude 算不算数据出境」「要不要做 AI 标识」「帮我做合规自查/等保/PIPL 检查」时使用。Audit an AI project's…

    140 GitHub stars~1.1k tokensUpdated 12 days ago
    SecurityAuto-check passed
  • Sail

    pillar-labs/sail-skill

    Apply the SAIL (Secure AI Lifecycle) V2 framework by Pillar Security to secure AI applications and agents.

    113 GitHub stars~5.1k tokensUpdated 3 mo ago
    SecurityAuto-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

Questions about Opc Legal Counsel

What does Opc Legal Counsel do?

面向 OPC(One Person Company,一人公司 / 单人创业者 + AI 协同)和小微企业经营场景的法律业务分诊与判断技能。用户咨询主体选择、公私分离、联合创始人、融资与激励、合同履约、财税风险、AI 产品、数据与知识产权、用工、监管或争议时使用。负责识别主矛盾、联动风险、行动优先级和升级边界;凡涉及现行法条、效力状态、期限、税率、备案名录、地方政策、办理口径或平台规则,生成结构化…. Opc Legal Counsel is an agent skill from cat-xierluo/legal-skills.

How do I install Opc Legal Counsel in Claude Code?

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

How do I install Opc Legal Counsel in Codex?

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

Can I use Opc Legal Counsel 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 opc-legal-counsel -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/opc-legal-counsel, .gemini/skills/opc-legal-counsel, .github/skills/opc-legal-counsel and .opencode/skills/opc-legal-counsel in your project.

What does Opc Legal Counsel need to run?

Going by SKILL.md and its folder, Opc Legal Counsel needs the command-line tools its instructions call (python3).

Does Opc Legal Counsel 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 Opc Legal Counsel 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Opc Legal Counsel use?

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

How many tokens does Opc Legal Counsel use?

About 1.4k tokens (SKILL.md is roughly 5.7k 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 11k tokens, read only when the agent opens those files.

What are the alternatives to Opc Legal Counsel?

Skills that share tags, products or a category with Opc Legal Counsel: Tw Legal RAG (aa0101181514/tw-legal-rag, 328 stars), Solodit (marchev/claudit, 159 stars), Pii Contract Analyze (gregmos/PII-Shield, 150 stars) and AI SAFE2 Secure Build Copilot (CyberStrategyInstitute/ai-safe2-framework, 147 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Opc Legal Counsel?

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.