Atlas / Skills / revfactory / Contract Analyzer

Contract AnalyzerSAFE

skills/revfactory/contract-analyzer
Verdict
SAFE
Grade
B
Trust score
89 /100
Version
—
Hosts
—
License
Apache-2.0
Stars
1,297
01

Overview

An agent skill published by revfactory.

Read from source at commit 459e1bb8f76eOBSERVED · 2026-10-12
02

What it tells the agent

The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.

---
name: contract-analyzer
description: "A pipeline where an agent team performs contract analysis, drafting, review, and risk assessment. Use this skill for contexts such as 'review the contract', 'contract analysis', 'draft a contract', 'contract risk assessment', 'contract review', 'clause modification', 'contract comparison', 'NDA review', 'service agreement', 'lease agreement', 'employment contract', 'license agreement', and other contract management tasks. Note: Providing legal counsel, conducting litigation, notarization, and court document preparation are outside the scope of this skill."
---

# Contract Analyzer — Contract Analysis, Drafting, and Review Pipeline

An agent team collaborates to perform clause analysis, drafting/revision, risk assessment, comparison review, and comprehensive opinion.

> Warning: This pipeline does not replace professional legal advice.

## Execution Mode

**Agent Team** — 5 agents communicate directly via SendMessage and cross-verify each other's work.

## Agent Composition

| Agent | File | Role | Type |
|-------|------|------|------|
| clause-analyst | `.claude/agents/clause-analyst.md` | Clause structure, interpretation, essential clause verification | general-purpose |
| clause-drafter | `.claude/agents/clause-drafter.md` | Clause drafting, amendment proposals | general-purpose |
| risk-assessor | `.claude/agents/risk-assessor.md` | Legal and business risk assessment | general-purpose |
| comparison-reviewer | `.claude/agents/comparison-reviewer.md` | Standard/previous version comparison, negotiation points | general-purpose |
| contract-coordinator | `.claude/agents/contract-coordinator.md` | Comprehensive opinion, consistency verification | general-purpose |

## Workflow

### Phase 1: Preparation (Performed Directly by Orchestrator)

1. Extract from user input:
    - **Contract Text**: The contract to analyze (file or text)
    - **Contract Type**: Sale/Service/Lease/NDA/Employment/License, etc.
    - **Party Position**: User's position as Party A or Party B
    - **Special Concerns** (optional): Specific clauses, risks, comparison targets
    - **Comparison Target** (optional): Standard template, previous version
2. Create the `_workspace/` directory in the project root
3. Organize the input and save to `_workspace/00_input.md`
4. If contract text is available, copy to `_workspace/original_contract.md`
5. Determine the **execution mode** based on the requested scope

### Phase 2: Team Assembly and Execution

| Order | Task | Owner | Dependencies | Output |
|-------|------|-------|-------------|--------|
| 1 | Clause Analysis | clause-analyst | None | `_workspace/01_clause_analysis.md` |
| 2a | Risk Assessment | risk-assessor | Task 1 | `_workspace/03_risk_assessment.md` |
| 2b | Comparison Review | comparison-reviewer | Task 1 | `_workspace/04_comparison_report.md` |
| 3 | Clause Drafting/Revision | clause-drafter | Tasks 1, 2a, 2b | `_workspace/02_draft_clauses.md` |
| 4 | Comprehensive Opinion | contract-coordinator | Tasks 1, 2a, 2b, 3 | `_workspace/05_final_opinion.md` |

Tasks 2a (Risk) and 2b (Comparison) are executed **in parallel**.

**Inter-agent Communication Flow:**
- clause-analyst completes -> Delivers risk clauses to risk-assessor, structural info to comparison-reviewer
- risk-assessor + comparison-reviewer complete -> Deliver modification requirements to clause-drafter
- clause-drafter completes -> contract-coordinator comprehensively verifies all deliverables
- contract-coordinator: If Red inconsistencies found, requests revision from relevant agent -> rework -> re-verify (up to 2 times)

### Phase 3: Integration and Final Deliverables

1. Review all files in `_workspace/`
2. Verify that all Red required actions in the comprehensive opinion are reflected in the amendments
3. Report the final summary to the user:
    - Clause Analysis Report — `01_clause_analysis.md`
    - Amendments — `02_draft_clauses.md`
    - Risk Assessment — `03_risk_assessment.md`
    - Comparison Review — `04_comparison_report.md`
    - Comprehensive Opinion — `05_final_opinion.md`

## Modes by Request Scope

| User Request Pattern | Execution Mode | Agents Deployed |
|---------------------|----------------|-----------------|
| "Review this contract", "Full analysis" | **Full Analysis** | All 5 agents |
| "Draft a contract", "Write a contract" | **Drafting Mode** | clause-drafter + risk-assessor + contract-coordinator |
| "Just assess the risk" | **Risk Mode** | clause-analyst + risk-assessor |
| "Compare with previous version" | **Comparison Mode** | clause-analyst + comparison-reviewer |
| "Modify this clause" | **Amendment Mode** | clause-drafter only |

**Using Existing Files**: If comparison targets (standard, previous version) are provided, comparison-reviewer utilizes them.

## Data Transfer Protocol

| Strategy | Method | Purpose |
|----------|--------|---------|
| File-based | `_workspace/` directory | Storing and sharing main deliverables |
| Message-based | SendMessage | Real-time delivery of key information, revision requests |
| Web Browsing | WebSearch/WebFetch | Standard templates, related laws, case law research |

## Error Handling

| Error Type | Strategy |
|-----------|----------|
| No contract text | Switch to drafting mode based on standard template for the contract type |
| Party position unclear | Analyze from both Party A and Party B perspectives, request position confirmation from user |
| Governing law unclear | Default analysis based on domestic law, note possibility of other applicable laws |
| Web search failure | Work based on general legal knowledge, note "latest case law unverified" |
| Agent failure | Retry once -> if failed, proceed without that deliverable, note omission in report |

## Test Scenarios

### Normal Flow
**Prompt**: "Review this software development service contract. We are Party B (the contractor)." + contract file provided
**Expected Results**:
- Clause Analysis: Full structure map, clause-by-clause l
03

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeNA
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (0)

No findings outside the package's declared scope.

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha 459e1bb8f76efull audit observations/trust-audit/skill/revfactory__contract-analyzer.json · Report an issue / request a re-scan
04

Audit history

Every audit this skill has had.

DateSourceVerdictGradeScoreChange
2026-10-12459e1bb8f76eSAFEB89first audit
05

Questions

Is Contract Analyzer safe to install?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.

What can Contract Analyzer access on my machine?

The audit observed no filesystem, network or shell use at all in its source.

How current is this page?

The grade is for one exact copy of the source (459e1bb8f76e), read on 2026-10-12. The repository is watched, and a new audit runs when it changes — this is the first audit.

Advertisement