debug-log

debug-log is a skill for Claude Code, Codex from Prismer-AI/PrismerCloud. It costs 20 tokens per session (578 once invoked), scanned A, original, MIT.

A log viewer for the Prismer Evolution plugin. It shows recent hook activity, timestamps, messages, and errors in a readable form.

In plain words
What is it for?
Use it to inspect recent debug entries, investigate timeouts and other hook problems, and enable more detailed logging when needed.
Why use it?
It helps explain why a plugin hook did not run or why synchronisation failed. It also lets you change how much diagnostic detail is recorded.

Skill for Claude CodeCodex

Part of the claude-code-plugin plugin — 12 skills, 7 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/prismer-ai/prismercloud/debug-log
Any agent
npx skills add Prismer-AI/PrismerCloud --skill debug-log
Clone the repo
git clone --depth 1 https://github.com/Prismer-AI/PrismerCloud

Made for: Claude Code, Codex.

Or install claude-code-plugin, the plugin that ships this one along with the rest of its 12 skills, 7 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debug-log

README.md
[![agentmods](https://agentmods.dev/badge/skills/prismer-ai/prismercloud/debug-log.svg)](https://agentmods.dev/skills/prismer-ai/prismercloud/debug-log)
Your own site
<a href="https://agentmods.dev/skills/prismer-ai/prismercloud/debug-log"><img src="https://agentmods.dev/badge/skills/prismer-ai/prismercloud/debug-log.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 578 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00020 $0.00578
Opus 5 $0.00010 $0.00289
Sonnet 5 $0.00004 $0.00116
Haiku 4.5 $0.00002 $0.00058

Measured 3d ago against content hash 404cc569755d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

debug-log scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

sdk/prismer-cloud/claude-code-plugin/skills/debug-log/SKILL.md · 53 lines

What it actually says

查看 Prismer 插件的结构化调试日志。每条日志包含时间戳、级别、hook 名称和上下文。

查看最近日志

CACHE="${CLAUDE_PLUGIN_DATA:-$(dirname "$0")/../../.cache}"
LOG="$CACHE/prismer-debug.log"
if [ -f "$LOG" ]; then
  echo "=== Prismer Debug Log (last 30 entries) ==="
  tail -30 "$LOG" | while IFS= read -r line; do
    # 格式化 JSON 为可读输出
    echo "$line" | node -e "
      const line = require('fs').readFileSync(0,'utf8').trim();
      try {
        const j = JSON.parse(line);
        const lvl = {debug:'D',info:'I',warn:'W',error:'E'}[j.lvl]||'?';
        const {ts,lvl:_,hook,msg,...ctx} = j;
        const extra = Object.keys(ctx).length ? ' ' + JSON.stringify(ctx) : '';
        console.log(\`[\${ts.slice(11,19)}] \${lvl} [\${hook}] \${msg}\${extra}\`);
      } catch { console.log(line); }
    " 2>/dev/null || echo "$line"
  done
else
  echo "No log file found at: $LOG"
  echo "Logs are created after the first hook runs."
  echo "Set PRISMER_LOG_LEVEL=debug for verbose output."
fi

日志级别

通过环境变量 PRISMER_LOG_LEVEL 控制:

  • debug — 所有操作(dev mode 默认)
  • info — 关键操作(生产默认)
  • warn — 仅告警和错误
  • error — 仅错误

常见问题诊断

日志关键词 含义 解决
sync-pull-failed timeout:true 进化网络同步超时 检查网络连接或 API 状态
sync-pull-failed error:... API 返回错误 检查 API Key 是否有效
memory-pull-failed 记忆加载失败 检查 API Key 权限
evolution-query timeout:true 进化查询超时(stuck detection) 正常降级,不影响工作
cache-save-failed Web 缓存保存失败 非关键,自动跳过
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 53 lines · 20 tokens per session scan A 404cc569755d

Subscribe to this mod's changes

debug-log is a skill published in the GitHub repository Prismer-AI/PrismerCloud (1,409 stars, last pushed 27d ago), licensed MIT. It adds 20 tokens to every session and 578 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.