task icon Task

Analyze Legal Document

Generic task for analyzing any legal document against a checklist

Requirements
Document to review (uploaded, pasted, or referenced), checklist slice ID, output state path, optional output format slice ID
2

Read the domain-specific checklist slice provided in requirements.
This contains the green/yellow/red flag criteria for this document type.

3

Analyze the provided document systematically:

  1. DOCUMENT IDENTIFICATION

    • Identify document type, parties, effective date, term
    • Note any unusual structure or missing standard sections
  2. RED FLAG SCAN (Priority)

    • Scan entire document for red flags from the checklist
    • Any single red flag = document needs escalation
    • Note section references for each red flag found
  3. YELLOW FLAG CHECK

    • Identify yellow flags from the checklist
    • Note specific concerns and section references
    • Consider cumulative impact of multiple yellow flags
  4. GREEN FLAG CONFIRMATION

    • Verify expected green flag terms are present
    • Note any missing standard protections
4

If a domain-specific output format slice was provided, read it now.
Otherwise, use the standard format from sliceLegal Review Output Framework.

6

Write the complete analysis to the output state path from requirements.

Include:

  • Overall assessment (✅/⚠️/🚨)
  • Executive summary
  • All flags found with section references
  • Detailed analysis of significant provisions
  • Clear recommendation with next steps
7

Present a brief summary to the user:

  • The overall assessment
  • Top 1-2 concerns (if any)
  • Clear recommendation

Ask if they want the full analysis or have questions about specific terms.

                    To run this task you must have the following required information:

> Document to review (uploaded, pasted, or referenced), checklist slice ID, output state path, optional output format slice ID

If you don't have all of this information, exit here and respond asking for any extra information you require, and instructions to run this task again with ALL required information.

---

You MUST use a todo list to complete these steps in order. Never move on to one step if you haven't completed the previous step. If you have multiple CONSECUTIVE read steps in a row, read them all at once (in parallel). Otherwise, do not read a file until you reach that step.

Add all steps to your todo list now and begin executing.

## Steps

1. [Read Legal Document Review Guide]: Read the documentation in: `skills/sauna/[skill_id]/references/legal.review.guide.md` (General approach for checklist-based document analysis)

2. Read the domain-specific checklist slice provided in requirements.
This contains the green/yellow/red flag criteria for this document type.


3. Analyze the provided document systematically:

1. DOCUMENT IDENTIFICATION
   - Identify document type, parties, effective date, term
   - Note any unusual structure or missing standard sections

2. RED FLAG SCAN (Priority)
   - Scan entire document for red flags from the checklist
   - Any single red flag = document needs escalation
   - Note section references for each red flag found

3. YELLOW FLAG CHECK
   - Identify yellow flags from the checklist
   - Note specific concerns and section references
   - Consider cumulative impact of multiple yellow flags

4. GREEN FLAG CONFIRMATION
   - Verify expected green flag terms are present
   - Note any missing standard protections


4. If a domain-specific output format slice was provided, read it now.
Otherwise, use the standard format from `skills/sauna/[skill_id]/references/legal.review.output.md`.


5. [Read Legal Review Output Framework]: Read the documentation in: `skills/sauna/[skill_id]/references/legal.review.output.md` (Standard output structure (may be overridden by domain-specific format))

6. Write the complete analysis to the output state path from requirements.

Include:
- Overall assessment (✅/⚠️/🚨)
- Executive summary
- All flags found with section references
- Detailed analysis of significant provisions
- Clear recommendation with next steps


7. Present a brief summary to the user:
- The overall assessment
- Top 1-2 concerns (if any)
- Clear recommendation

Ask if they want the full analysis or have questions about specific terms.