shared

Provides shared legal validation modules and anti-hallucination gates for Polish law skills.

134|32|Updated Jun 5, 2026
One-click install
npx skills add https://github.com/michaleiatrak-star/Lex-Machina --skill shared-michaleiatrak-star
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: shared
Source: https://github.com/michaleiatrak-star/Lex-Machina/tree/main/Wersja%20stabilna%20rozpakowana%208.09.2026/shared
Command: npx skills add https://github.com/michaleiatrak-star/Lex-Machina --skill shared-michaleiatrak-star

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Legal AI workflows risk citing outdated statutes, unverified case law, or unsupported factual claims. This shared library centralizes the canonical validation modules, hard gates, and procedural checklists that every Polish-law skill in the Lex Machina system must load, eliminating duplicated logic and conflicting rules across 32 skills. ## Core Features & Use Cases - Anti-hallucination hard gates: PRAWO-HARDGATE and ISAP-AUDIT-PROTOCOL forbid citing any statute or case signature from memory and require online verification against ISAP before use. - Validation pipeline modules: MOD-WALIDACJA_v2, HYBRID-VALIDATION, CLAIM-VALIDATION, FAKTY_v2, and CP-GATE enforce claim-to-evidence checks, formal defect detection (BRAKI-FORMALNE), and checkpoint-gated DRAFT/FINAL status before any .docx is generated. - Routing and governance: ACTIVATION-MATRIX resolves trigger-phrase conflicts between skills, DEPENDENCY-GRAPH tracks module consumers, DEDUPLICATION-POLICY prevents stub files, and AUDIT-TRAIL-SPEC defines a SHA-256 hash-chain event log aligned with Article 12 of the EU AI Act. - Use Case: When drafting a court pleading, the pisma-procesowe-v3 skill loads CP-GATE from this library to initialize a checkpoint registry, blocks .docx generation until all checkpoints close, and watermarks incomplete output as DRAFT. ## Quick Start Load the shared library modules by viewing the specific file you need, for example ask the assistant to view shared/PRAWO-HARDGATE.md before analyzing any Polish legal question.

Frequently Asked Questions about shared

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

FAQPage Schema
How do I prevent an AI from citing outdated Polish statutes?▼

Load the PRAWO-HARDGATE and ISAP-AUDIT-PROTOCOL modules, which forbid citing any article number from memory and require online verification against ISAP before each citation. Unverified references are blocked or flagged rather than silently included.

How does the checkpoint gate work before generating a court document?▼

CP-GATE initializes a registry of required checkpoints at session start and keeps the document in DRAFT status until all checkpoints close. Generating a final .docx without passing CP-CHECK is prohibited, and draft files carry a visible watermark.

What is claim validation against evidence in legal drafting?▼

CLAIM-VALIDATION checks every factual or procedural assertion against supplied documents and verified statutes before drafting. Claims without support are marked as contradicted or unproven and cannot be used in pleadings or witness questions.

Does this library support EU AI Act compliance logging?▼

Yes, AUDIT-TRAIL-SPEC defines an append-only JSON Lines event log with a SHA-256 hash chain covering routing decisions, verifications, and document generation. The portal implements storage since the skills themselves have no persistent memory.

How are conflicts between overlapping skill triggers resolved?▼

ACTIVATION-MATRIX maps each ambiguous trigger phrase to exactly one primary skill, taking precedence over individual skill descriptors. Combination pipelines define entry points and secondary skills for multi-step matters.