Works with the AI Agents you already use

    Legalease

    by Raghuveera

    1

    Full-stack skill for LegalEase, an AI legal document simplifier with FastAPI, React, and encrypted SQLite storage.

    $11

    /mo

    Subscription · cancel anytime

    Secure checkout via Stripe

    • Always the latest version
    • Delivered live to your agent via MCP
    • Cancel anytime, access ends at period end
    Security scanned
    Legalease

    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

    1. Run python -m app.main to trigger the ALTER TABLE schema update.
    2. Update all ten locales/*.json files with the analysis_confidence key.
    3. Test a new upload via /docs to verify the Groq JSON parsing.
    $11/mo

    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

    1. Environment Setup verifies SECRET_KEY, FILE_ENCRYPTION_KEY, and GROQ_API_KEY are stable in the backend .env.
    2. Backend Development adds async endpoints in app/routes/, utilizing get_current_user_id for JWT ownership checks.
    3. Frontend Integration implements UI changes using Tailwind utility classes and authApi axios instances.
    4. Data Persistence manages idempotent schema updates via aiosqlite without a traditional migration framework.
    5. Verification runs npm run build for 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    GitHubOpencollectiveTideliftPaulmillrLocizeI18nextFeross
    Software
    PythonNode.jsGit

    Permissions

    Terminal / Shell
    Read Files
    Network Access
    Write Files

    Allowed Hosts

    registry.npmjs.org
    github.com
    opencollective.com
    tidelift.com
    paulmillr.com
    www.locize.com
    www.i18next.com
    feross.org
    Listed6 days ago

    What's inside

    Frequently Asked Questions

    Legalease automates the maintenance of a full-stack legal tech application, handling everything from encrypted document storage and OCR extraction to AI-powered risk analysis and multilingual UI updates.

    The skill is designed for AI agents capable of managing full-stack repositories; it requires access to a FastAPI backend and a React frontend to coordinate changes across the entire stack.

    You will receive the complete skill logic for managing document processing pipelines, the RAG chat implementation, Fernet encryption protocols, and the multilingual translation framework.

    Setup requires configuring a backend .env file with your Groq API key and encryption keys; the skill then manages the async FastAPI routes and React integration automatically.

    Yes, the skill is specifically designed to extend the extraction pipeline, allowing you to add custom fields for risk detection or key term extraction tailored to specific legal needs.

    The skill uses a custom lexical BM25 retrieval system for document chunks, ensuring that the RAG chat remains accurate and performant without needing a heavy vector database.

    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.