All skills
zh-xx avatar

/contract-review

@a6fab73
by Jee Czh-xx/legal-assistant-skills173 stars
22

Contract review skill that adds comment-based issue annotations without changing original text. Enforces a four-layer review (entity verification, basic, business, legal), writes structured comments (issue type, risk reason, revision suggestion) with risk level encoded via reviewer name, and generates a contract summary, consolidated opinion, and Mermaid business flowchart (with rendered image). Output language must follow the contract’s language.

Use this Skill: https://skilld.dev/gh/zh-xx/legal-assistant-skills/contract-review

This session only. Nothing lands on disk.

referencesflowchart.md

≈456 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Business Flowchart Extraction (Mermaid)

Generate a Mermaid flowchart by extracting the full business transaction process from the contract.

Language rule: use the contract’s language for node text and labels. See language.md.

Extraction Requirements

1. Process Completeness

  • Cover the full lifecycle from contract signing to performance completion
  • Include normal performance, breach handling, and termination
  • Show interactions, rights, and obligations between both parties

2. Precision of Information

  • Time points: extract explicit time requirements and triggers (e.g., X business days, X hours)
  • Amounts: extract amounts and ratios (e.g., 30% prepayment, total amount)
  • Quantity/specs: extract quantities, models, technical specs
  • Locations: delivery/acceptance locations
  • Standards: acceptance standards, quality requirements, technical specs
  • Strict source: all extracted data must come from the contract text

3. Node Format

  • Each node uses brackets []
  • Use <br> to break multiple items
  • Edge labels show trigger/time requirement: |condition|; if missing, use ?

4. Flow Logic

  • Use --> for normal flow
  • Include decision branches (e.g., acceptance pass/fail)
  • Include parallel flows (e.g., risk transfer vs. title transfer)
  • Show escalation of breach outcomes (minor → serious → termination)

5. Visual Styles

Add styles at the end:

  • Normal performance nodes: style [nodeId] fill:#e6e6fa
  • Breach-related nodes: style [nodeId] fill:#ffff99
  • Termination nodes: style [nodeId] fill:#ff6666
  • Normal completion nodes: style [nodeId] fill:#90ee90

Output Format

  • Output only Mermaid code, starting with flowchart TD
  • No extra explanation or code fences
  • Syntax must be valid and renderable

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is a contract review utility that processes .docx files using local tools like pandoc and Mermaid CLI. It demonstrates good security practices by using the defusedxml library to handle XML safely and restricts its shell commands to specific, necessary utilities. No malicious behavior was detected.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • Runlayer7mo

    1/26 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at a6fab73. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 7 months ago

README badge

README badge for zh-xx/legal-assistant-skills/contract-review