audit-extract

Extract footnotes from DOCX documents while preserving formatting and resolving cross-references.

19|5|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/edwinhu/workflows --skill audit-extract
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-extract
Source: https://github.com/edwinhu/workflows/tree/main/skills/bluebook-audit/lib/skills/audit-extract
Command: npx skills add https://github.com/edwinhu/workflows --skill audit-extract

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lxml, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of extracting and structuring footnote data from DOCX documents, including preserving formatting and resolving cross-references, which is crucial for legal and academic citation management.

Core Features & Use Cases

  • Footnote Extraction: Parses DOCX files to extract all footnotes.
  • Formatting Preservation: Retains inline formatting (italic, bold, small caps) within extracted footnotes.
  • URL Archiving: Extracts all URLs found within footnotes for an inventory.
  • Citation Registry: Builds a mapping of hereinafter definitions and author-to-first-cite references.
  • Cross-reference Resolution: Identifies and resolves supra note [_] placeholders.
  • Use Case: Legal professionals can use this to automatically process lengthy legal briefs, ensuring all citations and references are correctly extracted and formatted for audit.

Quick Start

Run the extract_footnotes.py script with the path to your DOCX file to begin the extraction process.

Frequently Asked Questions about audit-extract

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract footnotes from a DOCX file while preserving formatting like italics and bold?

To extract footnotes from a DOCX file while preserving inline formatting like italics, bold, and small caps, you need a specialized parsing script. This process retains the original text styles and resolves cross-references for accurate legal document auditing.

Can I automatically build a citation registry from a legal brief in DOCX?

Yes, you can automatically build a citation registry from a legal brief in DOCX. The extraction process maps hereinafter definitions and author-to-first-cite references, structuring the citation data for comprehensive legal compliance and auditing workflows.

What is the best way to extract all URLs found within DOCX footnotes?

The best way to extract URLs found within DOCX footnotes is to run an automated parsing script that scans the document's footnote data. This generates a complete inventory of all archived URLs, essential for legal citation management and auditing.

How do I resolve supra note cross-references when extracting footnotes from DOCX?

To resolve supra note cross-references when extracting footnotes from DOCX, use an extraction script that identifies and resolves these placeholders. This ensures all references are correctly linked during the legal document auditing process.

Do I need lxml installed to parse DOCX footnotes for legal auditing?

Yes, you need the lxml library installed to parse DOCX footnotes for legal auditing. This dependency is required to run the extraction script that processes the document, preserves formatting, and builds the citation registry.

What limitations exist when extracting small caps and other formatting from DOCX footnotes?

When extracting small caps and other inline formatting from DOCX footnotes, limitations depend on the source document's underlying XML structure. Complex or corrupted DOCX files may hinder the accurate preservation of text styles and the resolution of cross-references.