# Send Agent Audit 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": "agent-audit",
    "name": "Agent Audit",
    "source": "tencent",
    "type": "skill",
    "category": "安全合规",
    "sourceUrl": "https://clawhub.ai/sharbelayy/agent-audit",
    "canonicalUrl": "https://clawhub.ai/sharbelayy/agent-audit",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/agent-audit",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-audit",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/model-pricing.md",
      "references/task-classification.md",
      "scripts/audit.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "agent-audit",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-24T21:03:15.019Z",
      "expiresAt": "2026-05-01T21:03:15.019Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-audit",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-audit",
        "contentDisposition": "attachment; filename=\"agent-audit-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "agent-audit"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/agent-audit"
    },
    "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/agent-audit",
    "downloadUrl": "https://openagent3.xyz/downloads/agent-audit",
    "agentUrl": "https://openagent3.xyz/skills/agent-audit/agent",
    "manifestUrl": "https://openagent3.xyz/skills/agent-audit/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/agent-audit/agent.md"
  }
}
```
## Documentation

### Agent Audit

Scan your entire OpenClaw setup and get actionable cost/performance recommendations.

### What This Skill Does

Scans config — reads OpenClaw config to map models to agents/tasks
Analyzes cron history — checks every cron job's model, token usage, runtime, success rate
Classifies tasks — determines complexity level of each task
Calculates costs — per agent, per cron, per task type using provider pricing
Recommends changes — with confidence levels and risk warnings
Generates report — markdown report with specific savings estimates

### Running the Audit

python3 {baseDir}/scripts/audit.py

Options:

python3 {baseDir}/scripts/audit.py --format markdown    # Full report (default)
python3 {baseDir}/scripts/audit.py --format summary     # Quick summary only
python3 {baseDir}/scripts/audit.py --dry-run             # Show what would be analyzed
python3 {baseDir}/scripts/audit.py --output /path/to/report.md  # Save to file

### Phase 1: Discovery

Read OpenClaw config (~/.openclaw/openclaw.json or similar)
List all cron jobs and their configurations
List all agents and their default models
Detect provider (Anthropic, OpenAI, Google, xAI) from model names

### Phase 2: History Analysis

Pull cron job run history (last 7 days by default)
Calculate per-job: avg tokens, avg runtime, success rate, model used
Pull session history where available
Calculate total token spend by model tier

### Phase 3: Task Classification

Classify each task into complexity tiers:

TierExamplesRecommended ModelsSimpleHealth checks, status reports, reminders, notificationsCheapest tier (Haiku, GPT-4o-mini, Flash, Grok-mini)MediumContent drafts, research, summarization, data analysisMid tier (Sonnet, GPT-4o, Pro, Grok)ComplexCoding, architecture, security review, nuanced writingTop tier (Opus, GPT-4.5, Ultra, Grok-2)

Classification signals:

Simple: Short output (<500 tokens), low thinking requirement, repetitive pattern, status/health tasks
Medium: Medium output, some reasoning needed, creative but templated, research tasks
Complex: Long output, multi-step reasoning, code generation, security-critical, tasks that previously failed on weaker models

### Phase 4: Recommendations

For each task where the model tier doesn't match complexity:

⚠️ RECOMMENDATION: Downgrade "Knox Bot Health Check" from opus to haiku
   Current: anthropic/claude-opus-4 ($15/M input, $75/M output)
   Suggested: anthropic/claude-haiku ($0.25/M input, $1.25/M output)
   Reason: Simple status check averaging 300 output tokens
   Estimated savings: $X.XX/month
   Risk: LOW — task is simple pattern matching
   Confidence: HIGH

### Safety Rules — NEVER Recommend Downgrading:

Coding/development tasks
Security reviews or audits
Tasks that have previously failed on weaker models
Tasks where the user explicitly chose a higher model
Complex multi-step reasoning tasks
Anything the user flagged as critical

### Phase 5: Report Generation

Output a clean markdown report with:

Overview — total agents, crons, monthly spend estimate
Per-agent breakdown — model, usage, cost
Per-cron breakdown — model, frequency, avg tokens, cost
Recommendations — sorted by savings potential
Total potential savings — monthly estimate
One-liner config changes — exact model strings to swap

### Model Pricing Reference

See references/model-pricing.md for current pricing across all providers.
Update this file when prices change.

### Task Classification Details

See references/task-classification.md for detailed heuristics
on how tasks are classified into complexity tiers.

### Important Notes

This skill is read-only — it never changes your config automatically
All recommendations include risk levels and confidence scores
When unsure about a task's complexity, it defaults to keeping the current model
The audit should be re-run periodically (monthly) as usage patterns change
Token counts are estimates based on cron history — actual costs depend on your provider's billing
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: sharbelayy
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-24T21:03:15.019Z
- Expires at: 2026-05-01T21:03:15.019Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/agent-audit)
- [Send to Agent page](https://openagent3.xyz/skills/agent-audit/agent)
- [JSON manifest](https://openagent3.xyz/skills/agent-audit/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/agent-audit/agent.md)
- [Download page](https://openagent3.xyz/downloads/agent-audit)