Skip to content

ThomasMoreAI/legal-skills-open / br/employment/skills/legal-process-parser-lucianum7

legal-process-parser-lucianum7

Verified

Ingere e audita processos em PDF, TXT ou Markdown, preserva o original, extrai cada página e imagem com rastreabilidade e prepara análises processuais, petições e peças de trabalho com citações internas, controle de lacunas e revisão humana. Use para ingerir autos, localizar trechos, comparar peças, analisar provas e decisões, controlar pendências ou redigir minutas sem inventar fatos.

FileKindSize
LICENSEother1.1 KB
SKILL.mdskill md15.4 KB
agents/openai.yamlconfig450 B
references/document_types.mdmarkdown955 B
references/extraction_rules.mdmarkdown2.1 KB
references/legal_analysis_rules.mdmarkdown975 B
references/pleading_generation_rules.mdmarkdown1.8 KB
references/procedural_analysis_rules.mdmarkdown1.2 KB
references/procedural_progression_rules.mdmarkdown1.9 KB
references/request_intake_rules.mdmarkdown2.9 KB
references/security_rules.mdmarkdown694 B
references/source_policy.mdmarkdown647 B
references/vision_processing_rules.mdmarkdown2.8 KB
references/visual_description_rules.mdmarkdown2.3 KB
schemas/chronology.schema.jsonconfig495 B
schemas/controversy.schema.jsonconfig606 B
schemas/document_piece.schema.jsonconfig712 B
schemas/evidence.schema.jsonconfig580 B
schemas/page.schema.jsonconfig1.4 KB
schemas/procedural_summary.schema.jsonconfig868 B
schemas/process_manifest.schema.jsonconfig4.7 KB
schemas/vision_review.schema.jsonconfig1.3 KB
schemas/visual_element.schema.jsonconfig1.8 KB
scripts/__init__.pyscript71 B
scripts/build_index.pyscript998 B
scripts/build_markdown.pyscript889 B
scripts/compute_hash.pyscript627 B
scripts/detect_scanned_pages.pyscript625 B
scripts/extract_pdf_text.pyscript1.1 KB
scripts/helpers.pyscript87.4 KB
scripts/identify_documents.pyscript849 B
scripts/ingest_document.pyscript24.1 KB
scripts/scope_questions.pyscript2.1 KB
scripts/validate_extraction.pyscript5.8 KB
scripts/validate_links.pyscript2.8 KB
templates/audit_report.mdmarkdown327 B
templates/chronology.mdmarkdown225 B
templates/controversy_matrix.mdmarkdown210 B
templates/image_descriptions.jsonconfig950 B
templates/petition_draft.mdmarkdown1.0 KB
templates/procedural_analysis.mdmarkdown468 B
templates/process_markdown.mdmarkdown1.9 KB
templates/vision_review.jsonconfig856 B
tests/__init__.pyscript1 B
tests/test_pipeline.pyscript16.4 KB
tests/test_platform_adapters.pyscript1.9 KB
tests/test_visual_correction.pyscript4.1 KB

tests/test_platform_adapters.py

View on GitHub
from __future__ import annotations

import json
import unittest
from pathlib import Path


REPO_ROOT = Path(__file__).resolve().parents[3]


class PlatformRoutingTests(unittest.TestCase):
    def test_universal_entrypoint_routes_without_full_repository_scan(self) -> None:
        entrypoint = (REPO_ROOT / "AI_ENTRYPOINT.md").read_text(encoding="utf-8")
        self.assertIn("routing/task-router.json", entrypoint)
        self.assertIn("Não leia o repositório inteiro", entrypoint)
        self.assertIn("relatorio_processual.md", entrypoint)

    def test_task_router_has_all_supported_tasks_and_platforms(self) -> None:
        router = json.loads((REPO_ROOT / "routing/task-router.json").read_text(encoding="utf-8"))
        self.assertEqual(
            set(router["tasks"]),
            {"ingest", "analyze", "petition", "deadlines", "evidence", "audit"},
        )
        self.assertEqual(
            set(router["platforms"]),
            {"manus", "gemini_cli", "gemini_gem", "grok", "chatgpt", "claude"},
        )

    def test_platform_entrypoints_are_present_and_separate(self) -> None:
        expected = [
            "SKILL.md",
            "GEMINI.md",
            "gemini-extension.json",
            "adapters/gemini/GEM_INSTRUCTIONS.md",
            "adapters/grok/SYSTEM_INSTRUCTIONS.md",
            "adapters/chatgpt/INSTRUCTIONS.md",
            "adapters/claude/CLAUDE_INSTRUCTIONS.md",
        ]
        for relative in expected:
            self.assertTrue((REPO_ROOT / relative).is_file(), relative)

    def test_platform_instructions_do_not_request_other_ai_calls(self) -> None:
        for path in (REPO_ROOT / "adapters").rglob("*.md"):
            text = path.read_text(encoding="utf-8").lower()
            self.assertNotIn("chame outra ia", text, path.as_posix())
            self.assertNotIn("call another ai", text, path.as_posix())


if __name__ == "__main__":
    unittest.main()
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall