addon-report-synthesis-audit
Add-on: Report Synthesis (Audit-Ready)
Use this skill to implement the postprocess stage that produces:
- a UI-ready summary object
- exportable report artifacts (JSON, optional Markdown/PDF later)
- stable linkage to citations for every finding
Inputs
Collect:
REPORT_FORMATS: defaultjson,markdown.SORT_ORDER: defaultseverity desc, confidence asc.
Output Contracts
- Postgres:
reports.summary_jsonbcontains a compact summary for UI:- top findings by severity
- counts by result/severity
- review-needed items
- report generation provenance
- Object storage:
documents/reports/{document_id}.json- optionally
documents/reports/{document_id}.md
Synthesis Workflow
- Load:
documentsextracted_clausesvalidations
- Group findings by:
- severity
- clause type
- rule
- For each finding, include:
- result, severity, confidence
- explanation
- citation block: page/chunk/span + short source quote
- Persist report artifact(s) and a
reportsrow.
Guardrails
- Never output a finding without a source anchor (page/chunk/span + quote).
- Keep report generation deterministic given the same inputs (stable sorting + stable IDs).
- If a finding is
review_needed, highlight it prominently in the report summary.
Decision Justification Rule
- Every non-trivial decision must include a concrete justification.
- Capture the alternatives considered and why they were rejected.
- State tradeoffs and residual risks for the chosen option.
- If justification is missing, treat the task as incomplete and surface it as a blocker.
More from ajrlewis/ai-skills
architect-python-uv-fastapi-sqlalchemy
Use when scaffolding production-ready FastAPI services with uv, SQLAlchemy, Alembic, Postgres, Docker, and CI gates.
11addon-rag-ingestion-pipeline
Use when adding multi-format RAG ingest, chunk, embed, and retrieval pipelines; pair with architect-python-uv-batch or architect-python-uv-fastapi-sqlalchemy.
11addon-docling-legal-chunk-embed
Use when you need legal PDF to markdown extraction plus clause chunking and embedding prep; pair with addon-rag-ingestion-pipeline and architect-python-uv-batch.
10addon-llm-ancient-greek-translation
Use when adding Koine or Attic Greek translation to Next.js content flows; pair with ui-editorial-writing-surface and addon-nostr-nip23-longform.
10architect-python-uv-batch
Use when scaffolding production-ready Python uv batch or worker projects with Docker required by default.
10addon-human-pr-review-gate
Use when agent-generated code must pass a human PR review gate with trusted checks and merge blocks; pair with addon-decision-justification-ledger and architect-stack-selector.
9