360 Secure SkillHub
360 安全技能中心

Queue State Diff

该 Skill 对比前后两份队列或状态快照,用 Node 脚本执行确定性差异比较,识别数值漂移、缺失引用、新卡住任务和状态回归,并生成 Markdown 差异报告。

分类:数据
neo1307
neo1307
热度 32.68
最近更新 2026-05-11 17:34:12

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add neo1307/queue-state-diff
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
queue-state-diff
description
Compare two queue or state snapshots and explain what changed between them. Use when Codex needs to analyze drift between JSON/JSONL snapshots, detect newly stuck jobs, missing queue references, changed counters, or state regressions across two points in time.

Queue State Diff

Use this skill to answer: what changed, what disappeared, and what got worse?

Workflow

  1. Gather two comparable snapshots: before/after JSON, report JSON, or JSONL-derived exports.
  2. Normalize them before reasoning; prefer deterministic diff over freehand comparison.
  3. Run scripts/queue_state_diff.js for raw comparison.
  4. Interpret the diff in terms of operational meaning: regressions, recoveries, or noise.

Script

node skills/queue-state-diff/scripts/queue_state_diff.js \
  --before out/report-before.json \
  --after out/report-after.json \
  --out out/queue-state-diff.md

Guardrails

  • Compare like with like; do not diff unrelated report formats.
  • Separate numeric drift from referential drift.
  • Call out missing keys explicitly instead of treating them as zero.