legal-writer

Pass

Audited by Gen Agent Trust Hub on Mar 3, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill implements a secure and legitimate workflow for legal document generation.
  • Network Operations: The research scripts courtlistener.py and ecfr_lookup.py interact with official or well-known legal databases, including the Code of Federal Regulations (.gov) and the Free Law Project's CourtListener. These connections are used solely for searching and retrieving public legal authorities.
  • Credential Security: API authentication for CourtListener is handled through the COURTLISTENER_API_TOKEN environment variable, avoiding hardcoded secrets and following security best practices.
  • Static Analysis: The verification suite verify-legal.py performs regex-based analysis on local DOCX files and metadata to validate legal standards (e.g., defined terms, citations, and placeholders). It does not execute external code or access sensitive system directories.
  • Dependency Management: The skill utilizes standard, well-known libraries such as python-docx for document manipulation and suggests docx2pdf for PDF conversion, which are appropriate for its stated purpose.
Audit Metadata
Risk Level
SAFE
Analyzed
Mar 3, 2026, 08:35 AM