AI legal document automation for paralegals and pro-se litigants. Intelligently fills PDF forms, generates pleading papers, and ensures jurisdiction-specific compliance using Gemini AI.
AI-powered legal document automation. Fills court forms, generates pleadings, validates jurisdiction-specific formatting — all via natural language.
Paralegals and pro-se litigants spend hours manually filling court forms that vary across 50 states, 3,000+ counties, and thousands of court types. A single typo in a case number or a misformatted address can get a filing rejected. Commercial legal automation (Clio, MyCase, LegalZoom) locks this capability behind $100+/mo subscriptions.
ClauseForge uses Google Gemini to intelligently map plain-English case facts to fillable PDF fields. Select your jurisdiction (state -> county -> court type), describe the case, and get a validated, court-ready PDF.
git clone https://github.com/tlancas25/clauseforge.git
cd clauseforge
python -m venv venv && source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # add your GEMINI_API_KEY
python app.py
/plugin marketplace add tlancas25/clauseforge
+-------------+ +--------------+ +-------------+
| PDF Upload | -> | PDF Extractor| -> | Field Map |
+-------------+ +--------------+ +-------------+
|
+-------------+ +--------------+ +-------------+
| Filled PDF | <- | PDF Filler | <- |Gemini Mapper|
+-------------+ +--------------+ +-------------+
| |
+-------------+ +-------------+
| Validator | <---------------------| Jurisdiction|
+-------------+ +-------------+
| Layer | Tool |
|---|---|
| Backend | Flask 3.0 |
| PDF Processing | PyMuPDF 1.23.8 |
| AI | Google Generative AI (Gemini) |
| Frontend | Bootstrap 5 + Vanilla JS |
| Testing | pytest + pytest-flask |
| Deployment | Docker + Gunicorn |
clauseforge/
+-- app.py # Flask entry point
+-- services/
| +-- pdf_extractor.py # PDF field extraction
| +-- gemini_service.py # AI field mapping
| +-- pdf_filler.py # PDF form filling
| +-- legal_validator.py # Legal format validation
+-- templates/index.html # Main UI
+-- static/css/style.css
+-- static/js/app.js
+-- tests/ # pytest suite
+-- .claude-plugin/ # Claude Code plugin manifest
+-- skills/clauseforge/ # Behavioral SKILL.md
+-- .cursor/rules/ # Cursor IDE support
+-- Dockerfile
+-- requirements.txt
+-- CLAUDE.md # AI pair-programming context
pytest tests/ -v
ClauseForge is a drafting tool, not legal advice. Output must be reviewed by a licensed attorney before filing. Not a substitute for legal counsel. The author assumes no liability for filings made using this tool.
MIT (c) Terrell Lancaster. See LICENSE for details.
Built by Terrell Lancaster — Cloud Security Architect, AI Infrastructure Engineer, Claude Code Operator.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub blackfrost-ai/clauseforge-ai --plugin clauseforgeOpen-source MCP security gateway with native NIST 800-53 and FedRAMP compliance. Intercepts AI agent tool calls, enforces policy, redacts secrets/PII in tamper-evident audit logs, and generates federal audit evidence. Works transparently with Claude Code, Cursor, and any MCP client.
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.
Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review
Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques
Harness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
UI/UX design intelligence. 67 styles, 161 palettes, 57 font pairings, 25 charts, 15 stacks (React, Next.js, Vue, Svelte, Astro, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, Nuxt, Jetpack Compose). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.