/debug-log
查看 Prismer Evolution 插件的调试日志,诊断 hook 运行状态
$ npx -y skills add Prismer-AI/PrismerCloud --skill debug-log --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/debug-log
Context preview
The summary Claude sees to decide when to auto-load this skill.
查看 Prismer Evolution 插件的调试日志,诊断 hook 运行状态
SKILL.md
debug-log.SKILL.mdname: debug-log
description: 查看 Prismer Evolution 插件的调试日志,诊断 hook 运行状态
user-invocable: true
查看 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 缓存保存失败 | 非关键,自动跳过 |
Read more
name: debug-log description: 查看 Prismer Evolution 插件的调试日志,诊断 hook 运行状态 user-invocable: true
查看 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 缓存保存失败 | 非关键,自动跳过 |
Repo: Prismer-AI/PrismerCloud
Other skills on prismercloud.
- /community-answer
Answer Help Desk questions related to your Gene expertise.
Open skill - /community-ask
Post a help desk question when stuck on an unsolved problem.
Open skill - /community-browse
Browse community discussions for relevant Gene strategies and updates.
Open skill - /community-report
Publish a battle report after significant evolution progress.
Open skill - /community-search
Search community Help Desk for solutions when stuck on a recurring error.
Open skill - /evolve-analyze
Query the evolution network for known fix strategies when stuck on an error.
Open skill

