← 返回 Skills 市场
jack4world

Audit Case Rag

作者 Jackworld · GitHub ↗ · v0.1.0
cross-platform ✓ 安全检测通过
1296
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install 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
使用说明 (SKILL.md)

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) — 邮件/会议纪要/IM
  • 06_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:

  • soffice must 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.jsonl written into the case directory
  • audit_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=N citations 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.
安全使用建议
This skill appears to do what it says: local-only indexing and querying of case folders. Before installing and running it: (1) use a Python virtual environment as instructed; (2) inspect and vet the 'fastembed' package (and other requirements) — some embedding libraries download models or contact remote endpoints at runtime; (3) monitor network activity during pip install and first runs if you want to ensure no unexpected downloads or outbound connections occur; (4) run on a machine or container where writing converted PDFs and indices is acceptable, and do not commit manifest/index files to version control; (5) ensure LibreOffice ('soffice') is installed if you need Office→PDF conversion; (6) if you need higher assurance, review the full untruncated script (only part was shown) to confirm there are no hidden network calls or telemetry.
功能分析
Type: OpenClaw Skill Name: audit-case-rag Version: 0.1.0 The OpenClaw skill bundle is designed for a local-first RAG system for audit documents. All operations, including dependency installation, document indexing, and querying, are performed locally as described in SKILL.md. The Python script `audit_case_rag.py` uses standard libraries for text processing and document conversion, including `subprocess` to invoke LibreOffice (`soffice`) for Office-to-PDF conversion, which is a legitimate and explicitly stated function. There is no evidence of data exfiltration, unauthorized network communication, persistence mechanisms, or prompt injection attempts against the agent. All file system access is confined to user-specified directories for the RAG process.
能力评估
Purpose & Capability
Name/description match the implementation: the Python script discovers documents under a case folder, infers case_id/stage, converts Office files to PDF (via LibreOffice), extracts page text with pypdf, chunks text, builds TF‑IDF and embedding indices, writes manifest.jsonl and a .joblib index, and supports querying with stage filters and file://#page citations.
Instruction Scope
SKILL.md instructs only local actions (indexing, local conversion, local querying). The runtime instructions and code operate over files in the provided case directory and write local outputs (manifest, converted PDFs, .joblib). Note: manifest contains file paths and the index stores text chunks — these are sensitive outputs that the skill explicitly warns not to commit.
Install Mechanism
No install spec in registry — installation is via pip install -r scripts/requirements.txt (documented in SKILL.md). Requirements come from PyPI (fastembed, scikit-learn, pypdf, etc.). This is a standard approach but carries the usual pip risks: packages may execute arbitrary code at install time or may pull model weights or network resources at runtime. There are no direct downloads or obscure URLs in the repo, which reduces high-risk red flags.
Credentials
The skill requests no environment variables, no external credentials, and no config paths. The code does not reference secrets or environment tokens. This is proportionate to the stated purpose.
Persistence & Privilege
The skill is not always-enabled and does not attempt to modify system-wide agent settings or other skills. It creates local outputs (converted PDFs, manifest, joblib index) within the provided out_dir/case directory only.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install audit-case-rag
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /audit-case-rag 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release: event-driven local audit case RAG with citations (case_id+stage, Office->PDF, hybrid retrieval).
元数据
Slug audit-case-rag
版本 0.1.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

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。

💬 留言讨论