audit-case-ragLocal-first, event-driven RAG for commercial real estate audit & investigation case folders. Index a case directory named like "项目问题编号__标题" (with stage subfolders such as 01_policy_basis/02_process/04_settlement_payment) and query it with citations (file:// links + PDF
Install via ClawdBot CLI:
clawdbot install jack4world/audit-case-ragThis skill packages a local-only workflow to build a searchable evidence index for a single audit/investigation case and query it with page-level citations.
Create a case directory named:
<项目问题编号>__<标题>Inside, use stage folders (stage is inferred from folder name):
01_policy_basis/ (basis) — 制度/流程/授权02_process/ (process) — 招采/定标/过程证据03_contract/ (contract) — 合同/补充协议04_settlement_payment/ (payment) — 结算/付款/发票/验收05_comm/ (comm) — 邮件/会议纪要/IM06_interviews/ (interview) — 访谈/笔录/询证07_workpapers/ (workpaper) — 底稿/抽样/复核表09_rectification/ (rectification) — 整改/闭环Full template: references/case-folder-template.md
From the skill folder (or copy the script into your repo):
python3 -m venv .venv
source .venv/bin/activate
pip install -r scripts/requirements.txt
LibreOffice is recommended for Office→PDF page citations:
soffice must be available (PATH) or pass --soffice /path/to/soffice../scripts/audit_case_rag.py index \
--case-dir "/path/to/<项目问题编号>__<标题>" \
--out-dir "/path/to/audit_rag_db"
Outputs:
manifest.jsonl written into the case directoryaudit_rag_db/.joblib (persistent local index)./scripts/audit_case_rag.py query \
--case "<项目问题编号>" \
--stage payment \
"付款节点是否倒挂?请给出处页码"
Notes:
file://...#page=N citations when possible.Generated Mar 1, 2026
Auditors use this skill to index case folders containing 50-200 mixed documents like PDFs, DOCX, and XLSX, enabling fast retrieval of evidence for workpapers. It supports page-level citations for precise references in audit reports, ensuring compliance with regulatory standards and internal policies during investigations.
Investigators apply the skill to analyze case folders with stages such as process and contract, querying for evidence on irregularities like bid-rigging or payment anomalies. The local-only workflow ensures data privacy while providing clickable file links and page numbers for building legal cases or internal reports.
Compliance teams use the skill to index rectification folders, querying for evidence on corrective actions and closure documentation. It helps monitor整改闭环 processes by retrieving specific documents and page references, facilitating audits and ensuring timely resolution of identified issues.
Organizations leverage the skill to investigate举报线索 by indexing interview notes and communication records within case folders. The event-driven filtering by case_id and stage allows focused queries on allegations, providing fast evidence retrieval with citations for internal reviews or regulatory submissions.
Legal and finance teams use the skill to review settlement and payment stages in audit cases, querying for evidence on contract adherence and invoice discrepancies. The hybrid retrieval ensures accurate document recall with page-level citations, supporting negotiations or dispute resolutions.
Sell perpetual or annual licenses for the skill as a standalone tool to auditing firms and corporate compliance departments. Revenue comes from upfront fees or subscriptions, with optional support packages for updates and customization to fit specific industry needs.
Offer professional services to integrate the skill into existing audit workflows, including custom folder templates and training. Revenue is generated through project-based fees for setup, ongoing maintenance, and tailored enhancements to handle complex document types or regulatory requirements.
Provide a managed service where clients upload case folders, and the vendor runs the indexing and querying remotely on secure local servers. Revenue streams include monthly service charges per case or user, with add-ons for advanced analytics and reporting features.
💬 Integration Tip
Ensure LibreOffice is installed and accessible via PATH for accurate PDF page citations from Office documents, and avoid committing generated indices to version control to maintain data privacy.
Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Gemini CLI for one-shot Q&A, summaries, and generation.
Research any topic from the last 30 days on Reddit + X + Web, synthesize findings, and write copy-paste-ready prompts. Use when the user wants recent social/web research on a topic, asks "what are people saying about X", or wants to learn current best practices. Requires OPENAI_API_KEY and/or XAI_API_KEY for full Reddit+X access, falls back to web search.
Check Antigravity account quotas for Claude and Gemini models. Shows remaining quota and reset times with ban detection.
Manages free AI models from OpenRouter for OpenClaw. Automatically ranks models by quality, configures fallbacks for rate-limit handling, and updates opencla...
Manages free AI models from OpenRouter for OpenClaw. Automatically ranks models by quality, configures fallbacks for rate-limit handling, and updates openclaw.json. Use when the user mentions free AI, OpenRouter, model switching, rate limits, or wants to reduce AI costs.