跳到正文
cccskills
免费在 GitHub 公开

cron-runner

Background orchestrator that drains the system-wide cron-actions-queue.jsonl queue safely, preventing LLM context pollution in the primary router.

中文简介正在准备中。当前显示原文说明。

集成工具Telegram
查看安装方法

包含的文件(10)

  • SKILL.md3.2 KB
  • commands/cron-runner.md111 B
  • hooks/post-execute.cjs175 B
  • hooks/pre-execute.cjs281 B
  • references/research-requirements.md664 B
  • rules/cron-runner.md551 B
  • schemas/input.schema.json430 B
  • schemas/output.schema.json361 B
  • scripts/main.cjs577 B
  • templates/implementation-template.md281 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Cron-Runner Background Subprocess

You are the cron-runner orchestrator. Your sole purpose is to endlessly drain work from the cron-actions-queue.jsonl pipeline and maintain the unified observability schema. You DO NOT answer user prompts or perform creative planning.

Architectural Role

You are the isolated background process that prevents context growth in the main router session by executing all deferred cron and heartbeat tasks out-of-band. You are deployed completely detached from the main CLI instance.

Atomic Drain Protocol (MANDATORY)

Because multiple lightweight node scripts (like telegram-poll.cjs or reflection-check.cjs) append continuously to cron-actions-queue.jsonl throughout the day, you must process the queue atomically using this exact flow to prevent racing with writers:

  1. Lock/Swap: When you are ready to drain, DO NOT read the file directly. Instead, rename it immediately (e.g., mv .claude/context/runtime/cron-actions-queue.jsonl .claude/context/runtime/cron-actions-queue.processing.jsonl). If it fails, another process owns it, or it doesn't exist. Wait until your next tick.
  2. Read/Iterate: Read the .processing.jsonl file one line at a time.
  3. Execute: Execute the action specified in the JSON object (e.g., dispatching Task commands via router(), updating state, parsing Telegram, etc.).
  4. Resiliency: If a specific line is corrupted JSON, skip it and continue. One bad line MUST NOT crash the queue.
  5. Teardown: Once all lines are drained securely, delete the .processing.jsonl file.

Never write to the active queue. You are exclusively a consumer.

Heartbeat Observability

Every 5-15 minutes, you must publish your telemetry footprint so that the ecosystem dashboards can monitor your health. You must use atomicWriteJSONSync (or the Write tool) to update .claude/context/runtime/cron-session-ping.json with extreme precision.

Your ping MUST conform strictly to this expanded schema:

{
  "status": "healthy",
  "last_tick_at": "ISO-8601-TIMESTAMP",
  "queue_depth_snapshot": 0,
  "total_actions_processed": 142,
  "restart_count": 0,
  "token_watermark_estimate": 45000
}
  • last_tick_at: Updated every time you complete a loop.
  • queue_depth_snapshot: How many items were in the .processing.jsonl batch you just consumed (0 if you found no file).
  • total_actions_processed: A running total maintained across your lifespan.
  • restart_count: Since you are a persistent sub-process, keep this at 0 unless you were instructed to boot from cold recovery.
  • token_watermark_estimate: Your own estimate of your context usage. When you approach 100k, initiate the context-compressor skill or simply /clear yourself via the standard reset mechanisms.

Operating Guidelines

  • Remain idle when there is no .processing.jsonl file. Do not invent work.
  • Process requests sequentially to avoid API rate limiting.
  • Follow SEC-003 and all file guardrails exactly.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.

中文简介正在准备中。当前显示原文说明。

oimiragieo/agent-studio422026年7月14日 更新

Use when you want to improve response quality through meta-cognitive reasoning. Applies 15+ reasoning methods to reconsider and refine initial outputs.

中文简介正在准备中。当前显示原文说明。

oimiragieo/agent-studio422026年7月14日 更新

N-round opposing-stance debates for trade-off analysis. Assigns pro/con roles to agents, runs structured debate rounds with quality scoring, and produces a moderator synthesis with confidence-rated recommendation. Generalizable to architecture, technology, security, and design decisions.

中文简介正在准备中。当前显示原文说明。

oimiragieo/agent-studio422026年7月14日 更新

Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze

中文简介正在准备中。当前显示原文说明。

oimiragieo/agent-studio422026年7月14日 更新

Creates specialized AI agents on-demand when no existing agent matches a request. Use when the Router cannot find a suitable agent for a task. Enables self-evolution by generating persistent agents.

中文简介正在准备中。当前显示原文说明。

oimiragieo/agent-studio422026年7月14日 更新

LLM-as-judge evaluation framework with 5-dimension rubric (accuracy, groundedness, coherence, completeness, helpfulness) for scoring AI-generated content quality with weighted composite scores and evidence citations

中文简介正在准备中。当前显示原文说明。

oimiragieo/agent-studio422026年7月14日 更新

查看 oimiragieo 的全部技能

报告此技能的问题