- Home
- Skills
- Agents & Orchestration
- Legalease
Works with the AI Agents you already use
Legalease
by Raghuveera
Full-stack skill for LegalEase, an AI legal document simplifier with FastAPI, React, and encrypted SQLite storage.
$11
/moSubscription · cancel anytime
Secure checkout via Stripe
- Always the latest version
- Delivered live to your agent via MCP
- Cancel anytime, access ends at period end
Legalease
Example session with this skill installed
Add a 'confidence_score' field to the document analysis. Update the database schema, the Groq prompt, and the frontend ResultPage to display it.
- Read your context and instructions
- Compiled the legalease
I have updated the LegalEase codebase to include a confidence score for document analysis. This involved modifying the backend database initialization, the AI service prompt, and the React frontend components.
Confidence Score Implementation
1. Backend: Database and AI Service
In legalease-backend/app/database.py, I added an idempotent ALTER TABLE to include the confidenceScore column. The analyze_document service in legalease-backend/app/services/ai_summarizer.py now requests a confidenceScore (0.0 to 1.0) within the JSON response format.
# app/services/ai_summarizer.py
SYSTEM_PROMPT = """
...
Return JSON:
{
"detectedLanguage": "...",
"confidenceScore": 0.85,
"summary": "...",
...
}
"""
2. Frontend: Result Display
In legalease-frontend/src/pages/ResultPage.jsx, I added a new RiskBadge variant to show the score.
// src/pages/ResultPage.jsx
<div className="flex items-center gap-2">
<span className="text-xs uppercase tracking-widest text-primary-600">
{t('analysis_confidence')}
</span>
<span className="font-serif text-lg">
{(doc.confidenceScore * 100).toFixed(0)}%
</span>
</div>
Next steps
- Run
python -m app.mainto trigger theALTER TABLEschema update. - Update all ten
locales/*.jsonfiles with theanalysis_confidencekey. - Test a new upload via
/docsto verify the Groq JSON parsing.
Subscription · always the latest version
- Secure checkout via Stripe
- Cancel anytime
- Delivered live via MCP
About this skill
Managing a multilingual legal tech stack is complex, especially when coordinating AI analysis with encrypted storage. This skill handles the maintenance and extension of the LegalEase codebase, ensuring document extraction, Groq-powered summaries, and RAG chat remain operational across its FastAPI backend and React frontend.
What it does
- Document Processing manages PDF, DOCX, and image OCR extraction pipelines via Groq vision and pdfplumber.
- AI Analysis coordinates Groq chat completions for document summarization, risk clause detection, and key term extraction.
- Secure Storage enforces Fernet encryption for file bytes and extracted text before persisting to SQLite.
- Multilingual Support maintains i18next translations across ten locales and backend output language logic.
- RAG Chat implements lexical BM25 retrieval over document chunks with a streaming text response.
How it works
- Environment Setup verifies
SECRET_KEY,FILE_ENCRYPTION_KEY, andGROQ_API_KEYare stable in the backend.env. - Backend Development adds async endpoints in
app/routes/, utilizingget_current_user_idfor JWT ownership checks. - Frontend Integration implements UI changes using Tailwind utility classes and
authApiaxios instances. - Data Persistence manages idempotent schema updates via
aiosqlitewithout a traditional migration framework. - Verification runs
npm run buildfor frontend validation and manual endpoint testing via FastAPI Swagger docs.
Frameworks & tools
The stack uses FastAPI, SQLite (aiosqlite), and Groq (Llama 3.3/4) on the backend. The frontend is built with React 18, Vite, Tailwind CSS, and i18next. Authentication relies on JWT and bcrypt.
Why this beats prompting it yourself
Generic prompts often fail to account for the specific Fernet encryption implementation or the custom lexical RAG flow. This skill understands the strict relationship between the Pydantic schemas, the SQLite BLOB storage, and the specific Tailwind design tokens used for the "legal paper" aesthetic.
Use cases
- Add new AI-driven risk detection fields to the extraction pipeline.
- Expand UI support for additional languages across all ten locale JSON files.
- Refactor document retrieval logic to improve BM25 chunking strategies.
- Build new dashboard views for users to manage their encrypted document history.
Known limitations
No automated test suites or linters are present. The backend uses blocking calls inside async routes. Encryption keys must be stable in .env to avoid data loss on restart.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 6 days ago
- Accounts
GitHub
Opencollective
Tidelift
Paulmillr
Locize
I18next
Feross
- Software
Python
Node.js
Git
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.