/install audit-case-rag
audit-case-rag
This 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.
Workflow
0) Prepare a case folder (事件驱动)
Create a case directory named:
\x3C项目问题编号>__\x3C标题>
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
1) Install dependencies (local)
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:
sofficemust be available (PATH) or pass--soffice /path/to/soffice.
2) Index the case
./scripts/audit_case_rag.py index \
--case-dir "/path/to/\x3C项目问题编号>__\x3C标题>" \
--out-dir "/path/to/audit_rag_db"
Outputs:
manifest.jsonlwritten into the case directoryaudit_rag_db/\x3Ccase_id>.joblib(persistent local index)
3) Query with event filters
./scripts/audit_case_rag.py query \
--case "\x3C项目问题编号>" \
--stage payment \
"付款节点是否倒挂?请给出处页码"
Notes:
- Evidence lines include clickable
file://...#page=Ncitations when possible. - Retrieval is hybrid: embedding recall + TF‑IDF rerank (alpha configurable).
Safety/Privacy
- No cloud APIs. Everything runs locally.
- Do not commit outputs (indices, converted PDFs) to git.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install audit-case-rag - 安装完成后,直接呼叫该 Skill 的名称或使用
/audit-case-rag触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Audit Case Rag 是什么?
Local-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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1296 次。
如何安装 Audit Case Rag?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install audit-case-rag」即可一键安装,无需额外配置。
Audit Case Rag 是免费的吗?
是的,Audit Case Rag 完全免费(开源免费),可自由下载、安装和使用。
Audit Case Rag 支持哪些平台?
Audit Case Rag 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Audit Case Rag?
由 Jackworld(@jack4world)开发并维护,当前版本 v0.1.0。