# Send Audit Case Rag to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "audit-case-rag",
    "name": "Audit Case Rag",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/jack4world/audit-case-rag",
    "canonicalUrl": "https://clawhub.ai/jack4world/audit-case-rag",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/audit-case-rag",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=audit-case-rag",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/case-folder-template.md",
      "scripts/audit_case_rag.py",
      "scripts/requirements.txt"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/audit-case-rag"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/audit-case-rag",
    "downloadUrl": "https://openagent3.xyz/downloads/audit-case-rag",
    "agentUrl": "https://openagent3.xyz/skills/audit-case-rag/agent",
    "manifestUrl": "https://openagent3.xyz/skills/audit-case-rag/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/audit-case-rag/agent.md"
  }
}
```
## Documentation

### 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.

### 0) Prepare a case folder (事件驱动)

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) — 邮件/会议纪要/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/<项目问题编号>__<标题>" \\
  --out-dir  "/path/to/audit_rag_db"

Outputs:

manifest.jsonl written into the case directory
audit_rag_db/<case_id>.joblib (persistent local index)

### 3) Query with event filters

./scripts/audit_case_rag.py query \\
  --case "<项目问题编号>" \\
  --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.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: jack4world
- Version: 0.1.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-23T16:43:11.935Z
- Expires at: 2026-04-30T16:43:11.935Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/audit-case-rag)
- [Send to Agent page](https://openagent3.xyz/skills/audit-case-rag/agent)
- [JSON manifest](https://openagent3.xyz/skills/audit-case-rag/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/audit-case-rag/agent.md)
- [Download page](https://openagent3.xyz/downloads/audit-case-rag)