Token导航 LogoToken导航TokenDH.com
开发可写文件github未标认证来源可访问许可证需确认审计通过

legal-risk-assessment法律风险评估

Agent Skill

legal-risk-assessment 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

461

周安装

19

GitHub Stars

103

下载量

150
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:legal-risk-assessment(法律风险评估)
来源仓库:https://github.com/borghei/claude-skills
仓库路径:skills/legal-risk-assessment
安装命令:
npx skills add https://github.com/borghei/claude-skills --skill legal-risk-assessment
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/borghei/claude-skills --skill legal-risk-assessment

简介

legal-risk-assessment 使用五乘五矩阵量化法律风险,生成评估报告与升级指引。

  • 适用于法务或合规团队进行决策支持,但不可替代专业法律意见。
  • 通过 npx skills add 从 GitHub 安装,具体工具与限制见仓库说明。
  • 安装前请确认权限范围与维护状态,注意实验性质与责任归属。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

⚠️ EXPERIMENTAL — This skill is provided for educational and informational purposes only. It does NOT constitute legal advice. All responsibility for usage rests with the user. Consult qualified legal professionals before acting on any output.

Legal Risk Assessment

Structured legal risk assessment using a quantitative 5x5 Severity x Likelihood matrix. Scores risks, maintains registers, generates assessment memos, and guides escalation decisions.


Table of Contents

- Risk Scorer - Risk Report Generator


Tools

Risk Scorer

Calculates risk scores from severity and likelihood inputs, assigns color-coded risk levels, and generates summary statistics.

# Score a single risk
python scripts/risk_scorer.py --severity 4 --likelihood 3 \
  --category "Contract" --description "Vendor SLA non-compliance"

# JSON output
python scripts/risk_scorer.py --severity 4 --likelihood 3 \
  --category "Contract" --description "Vendor SLA breach" --json

# Batch mode from risk register file
python scripts/risk_scorer.py --input risks.json --json

# Batch mode with human-readable output
python scripts/risk_scorer.py --input risks.json

Input JSON format (batch mode):

{
  "risks": [
    {"severity": 4, "likelihood": 3, "category": "Contract", "description": "Vendor SLA breach"},
    {"severity": 2, "likelihood": 2, "category": "Regulatory", "description": "Minor filing delay"}
  ]
}

Output includes:

  • Risk score (Severity x Likelihood)
  • Color-coded level (GREEN / YELLOW / ORANGE / RED)
  • Recommended action (Accept / Monitor / Mitigate / Escalate)
  • Batch summary statistics (count per level, average score)

Risk Report Generator

Generates a formatted risk assessment memo in markdown from a risk register JSON file.

# Generate memo from risk register
python scripts/risk_report_generator.py --input risk_register.json

# Save to file
python scripts/risk_report_generator.py --input risk_register.json --output memo.md

# JSON metadata output
python scripts/risk_report_generator.py --input risk_register.json --json

Report includes:

  • ASCII risk matrix visualization
  • Risk distribution summary (counts and percentages per level)
  • Top risks ranked by score
  • Recommended actions per risk with owner assignments
  • Monitoring plan suggestions
  • Escalation recommendations

Reference Guides

Risk Framework

references/risk_framework.md

Complete Severity x Likelihood matrix reference:

  • Severity levels 1-5 with financial exposure percentages
  • Likelihood levels 1-5 with probability ranges
  • Risk matrix visualization
  • Risk classification (GREEN/YELLOW/ORANGE/RED) with actions
  • Documentation standards for memos and register entries

Escalation Guide

references/escalation_guide.md

When to engage outside counsel:

  • Mandatory engagement triggers (litigation, investigation, criminal)
  • Strongly recommended scenarios (novel issues, material exposure)
  • Consider scenarios (complex disputes, employment, data incidents)
  • Risk category definitions and contributing/mitigating factors

Workflows

Workflow 1: New Risk Assessment

Step 1: Identify risk category and description
        → Use references/risk_framework.md category definitions

Step 2: Score severity (1-5) and likelihood (1-5)
        → python scripts/risk_scorer.py --severity N --likelihood N \
          --category "Category" --description "Description"

Step 3: Review risk level and recommended action
        → GREEN: Accept and document
        → YELLOW: Assign owner and monitor
        → ORANGE: Escalate to senior counsel
        → RED: Immediate escalation, crisis management

Step 4: Determine outside counsel need
        → Consult references/escalation_guide.md

Step 5: Document in risk register
        → Add entry to register JSON file

Workflow 2: Periodic Risk Register Review

Step 1: Load current risk register
        → python scripts/risk_scorer.py --input register.json

Step 2: Generate assessment memo
        → python scripts/risk_report_generator.py --input register.json --output memo.md

Step 3: Review top risks and distribution
        → Focus on ORANGE and RED risks first

Step 4: Update severity/likelihood for changed risks
        → Re-score and regenerate report

Step 5: Distribute memo to stakeholders

Workflow 3: Escalation Decision

Step 1: Score the risk
        → python scripts/risk_scorer.py --severity N --likelihood N \
          --category "Category" --description "Description"

Step 2: Check escalation triggers
        → Mandatory: active litigation, government investigation, criminal exposure
        → Strongly Recommended: novel issues, jurisdictional complexity, material exposure
        → Consider: complex disputes, employment matters, data incidents

Step 3: Document escalation rationale
        → Include risk score, level, and specific trigger in memo

Step 4: Select outside counsel if needed
        → See references/escalation_guide.md criteria

Troubleshooting

ProblemPossible CauseResolution
Risk score seems too low for a serious matterSeverity or likelihood underestimated; qualitative factors not capturedReview severity descriptions in risk_framework.md; consider worst-case financial exposure; add contributing factors to description
Multiple risks in same category but different scoresRisks have different severity/likelihood combinationsThis is expected; each risk is independent; review category-level trends in report
Batch mode fails on input fileMalformed JSON or missing required fieldsVerify JSON structure matches expected format; ensure each risk has severity, likelihood, category, description
Report generator produces empty matrixNo risks in input file or all risks have invalid scoresCheck that input JSON contains valid risks with severity 1-5 and likelihood 1-5
Escalation guide suggests outside counsel but budget is constrainedRisk score indicates material exposureDocument the budget constraint and residual risk acceptance; consider limited-scope engagement
Risk register grows unwieldyRisks not being closed or consolidatedArchive resolved risks; consolidate related risks; review register quarterly

Success Criteria

  • All identified legal risks scored and documented -- every risk has severity, likelihood, category, description, and recommended action in the register
  • Risk distribution reviewed quarterly -- memo generated and distributed to stakeholders with trend analysis
  • ORANGE and RED risks have assigned owners and mitigation plans -- no high-severity risk without accountability
  • Escalation decisions documented with rationale -- outside counsel engagement triggers clearly recorded
  • Risk register maintained as living document -- risks updated, resolved, or archived as status changes

Scope & Limitations

In Scope:

  • Quantitative risk scoring using 5x5 Severity x Likelihood matrix
  • Risk register management and batch processing
  • Risk assessment memo generation with matrix visualization
  • Escalation guidance for outside counsel engagement
  • Risk categorization (Contract, Regulatory, Litigation, IP, Data Privacy, Employment, Corporate)

Out of Scope:

  • Legal advice on specific risk mitigation strategies -- consult legal counsel
  • Insurance coverage analysis or actuarial calculations
  • Regulatory filing or submission preparation
  • Contract drafting or review
  • Litigation strategy or case management

Anti-Patterns

  • Scoring by committee consensus without criteria -- use the defined severity and likelihood scales consistently; do not negotiate scores to make stakeholders comfortable; a risk scored as 4 severity should match the framework definition
  • Treating the risk register as a one-time exercise -- risk registers are living documents; risks change as circumstances evolve; schedule quarterly reviews and update scores accordingly
  • Escalating everything to outside counsel -- the escalation guide defines specific triggers; not every YELLOW risk needs external counsel; over-escalation wastes budget and creates dependency
  • Ignoring GREEN risks entirely -- GREEN risks still require documentation and periodic monitoring; a GREEN risk can escalate to YELLOW or ORANGE if circumstances change
  • Using risk scores as the sole decision factor -- scores are inputs to judgment, not substitutes; qualitative factors like reputational impact or strategic importance may warrant action beyond what the score suggests

Tool Reference

risk_scorer.py

Calculates risk scores and assigns color-coded risk levels with recommended actions.

FlagRequiredDescription
--severity <1-5>Yes (single mode)Severity rating: 1=Negligible, 2=Minor, 3=Moderate, 4=Major, 5=Critical
--likelihood <1-5>Yes (single mode)Likelihood rating: 1=Remote, 2=Unlikely, 3=Possible, 4=Likely, 5=Almost Certain
--category <text>Yes (single mode)Risk category: Contract, Regulatory, Litigation, IP, Data Privacy, Employment, Corporate
--description <text>Yes (single mode)Risk description
--input <file>Yes (batch mode)Path to JSON file containing multiple risks
--jsonNoOutput results in JSON format

risk_report_generator.py

Generates formatted risk assessment memo from a risk register JSON file.

FlagRequiredDescription
--input <file>YesPath to risk register JSON file
--output <file>NoSave memo to specified file path (markdown format)
--jsonNoOutput report metadata in JSON format

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.73%
按下载量换算55

Claude

30.39%
按下载量换算46

Cursor

21.38%
按下载量换算32

Gemini CLI

8.99%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills