addon-report-synthesis-audit
SKILL.md
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.
Weekly Installs
1
Repository
ajrlewis/ai-skillsFirst Seen
5 days ago
Security Audits
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1