← 返回 Skills 市场
x3r081

Cron Job Token Auditor

作者 x3r081 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
107
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cron-job-token-auditor
功能描述
Audits OpenClaw Gateway cron jobs from jobs.json (or CLI), classifies scheduled workloads by token cost (agent turns vs deterministic work), and suggests whe...
使用说明 (SKILL.md)

Cron Job Auditor

This skill guides read-only reviews of OpenClaw Gateway cron jobs so the user can spot token-saving opportunities—typically moving purely mechanical recurring work to an OS-scheduled script (systemd timer, launchd, etc.) that calls openclaw message send without running the model on every tick.

Hard boundaries

  • Do not edit jobs.json, systemd units, or user scripts unless the user explicitly asks for a draft or a diff to apply themselves.
  • Do not claim guaranteed savings; give confidence levels (high / medium / low).
  • Do not assume paths: default is often ~/.openclaw/cron/jobs.json — confirm or use openclaw cron / docs if the install differs.

When to apply this skill

  • User asks to audit, review, optimize, or reduce tokens for cron, scheduled jobs, or recurring OpenClaw tasks.
  • User shares or points to jobs.json (or pastes JSON).

What to read

  1. jobs.json (or user-provided excerpt): each job’s name, enabled, schedule, payload, delivery, agentId.
  2. Prefer openclaw cron / openclaw cron list (or current CLI) when available — aligns with the live Gateway.
  3. REFERENCE.md in this skill folder for glossary and checklist language.

Classification (per job)

  • payload.kind: agentTurn → counts as LLM-invoking for each run (unless documentation says otherwise for this version).
  • Extract a short summary of the message / instructions (first ~200 chars + ellipsis if long). Do not reproduce secrets or API keys; redact chat IDs as ***.

Heuristics — “script candidate”

Flag as candidate only when medium or high confidence:

Signal Suggests
Same task could be a shell/Python script + one message Possible migration
Prompt needs search, summarization, judgment, variable tool use Usually keep agent cron
Only fetch fixed URL, run CLI, grep, template message Stronger candidate

Patterns (map each candidate to one):

  • A — CLI + send: e.g. some-cli … \| … then openclaw message send …
  • B — HTTP + send: curl/fetch + parse + send (no LLM).
  • C — Hybrid: data from script; optional rare agent run for exceptions only (document separately).

Output format — use this template every time

## Cron Job Auditor — Summary

- **Source**: (path or CLI)
- **Jobs scanned**: N (enabled: M)
- **Likely LLM per run**: (count of agentTurn-style jobs, or “unknown” if schema unclear)

## Per-job table

| Job name | Enabled | Schedule | Payload kind | LLM? | Confidence (migration) | Notes |
|----------|---------|----------|--------------|------|------------------------|-------|

## Candidates for OS timer + script (no auto-migration)

For each row with confidence **medium** or **high**:

### 1. `\x3Cjob name>`

- **Why it costs tokens**: …
- **Suggested pattern**: A / B / C (one paragraph)
- **Prerequisites**: …
- **Manual steps** (numbered):
  1. Implement script at `…` (user path)
  2. Test with dry-run / manual run
  3. Add systemd timer (or launchd) — user edits unit files
  4. **Disable or remove** the Gateway cron entry to avoid duplicate sends
  5. Verify with checklist in REFERENCE.md

## Not recommended for migration

| Job | Reason |
|-----|--------|

## Low-confidence items

(Brief list — what would be needed to decide.)

Tone

  • Clear, cautious, actionable. Prefer numbered steps over prose walls.
  • Link to OpenClaw Cron documentation when reminding users how Gateway scheduling works.

Related

  • Users who already moved jobs to OS scripts often keep openclaw message send for delivery only — that path avoids per-tick LLM usage for the poll itself.
安全使用建议
This is a read-only advisory skill and appears coherent: it will examine jobs.json or use the OpenClaw CLI to produce audit reports and migration suggestions. Before installing, confirm that the agent will only be given access to the job definitions you want it to see (do not upload secrets or API keys). If you paste job JSON for review, redact any inline tokens/IDs you don't want exposed. Remember the agent could be invoked autonomously by default—if you prefer manual invocation, keep using it only on demand. If you need higher assurance, request the skill author to publish a minimal CHANGELOG or sign-off, but functionally the skill is proportionate to its purpose.
功能分析
Type: OpenClaw Skill Name: cron-job-token-auditor Version: 1.0.0 The 'cron-job-token-auditor' skill is a read-only advisory tool designed to help users optimize token usage by identifying OpenClaw cron jobs that can be replaced by standard OS scripts. The instructions in SKILL.md and REFERENCE.md explicitly restrict the agent from making unauthorized changes to system configurations or job files, focusing instead on analysis and reporting. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description match the runtime instructions: the skill only needs to read jobs.json or use the OpenClaw CLI to classify scheduled jobs and recommend script-based migrations. No unrelated binaries, services, or credentials are requested.
Instruction Scope
SKILL.md confines itself to reading job definitions (jobs.json or openclaw cron), heuristics for classification, redaction of secrets, and producing a report. It explicitly forbids editing jobs.json or system units unless the user requests drafts; it does not instruct the agent to read other system files or exfiltrate data to external endpoints.
Install Mechanism
There is no install spec and no code files—this is documentation-only. Nothing is downloaded, written, or executed by the skill itself, minimizing install-time risk.
Credentials
The skill declares no required environment variables, credentials, or config paths. The operations described (reading jobs.json or invoking the OpenClaw CLI) align with the skill's stated purpose and do not request excessive permissions.
Persistence & Privilege
always:false and normal autonomous invocation are appropriate. The skill does not request permanent system changes or to modify other skills/configs; SKILL.md explicitly forbids automatic edits.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cron-job-token-auditor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cron-job-token-auditor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Cron Job Token Auditor — a READ-ONLY tool for optimizing OpenClaw Gateway cron jobs and reducing LLM token consumption. - Audits jobs.json or CLI-listed cron jobs, identifying recurring LLM-invoking workloads. - Classifies each job by token cost and migration confidence, highlighting opportunities to use OS timers plus scripts as alternatives. - Provides clear, per-job summaries and actionable migration steps without editing or migrating jobs automatically. - Helps users review, optimize, or reduce token usage for scheduled OpenClaw tasks. - Follows strict boundaries: no automatic changes, no guaranteed savings, and no assumption of user environment specifics.
元数据
Slug cron-job-token-auditor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Cron Job Token Auditor 是什么?

Audits OpenClaw Gateway cron jobs from jobs.json (or CLI), classifies scheduled workloads by token cost (agent turns vs deterministic work), and suggests whe... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 107 次。

如何安装 Cron Job Token Auditor?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cron-job-token-auditor」即可一键安装,无需额外配置。

Cron Job Token Auditor 是免费的吗?

是的,Cron Job Token Auditor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cron Job Token Auditor 支持哪些平台?

Cron Job Token Auditor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cron Job Token Auditor?

由 x3r081(@x3r081)开发并维护,当前版本 v1.0.0。

💬 留言讨论