用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill pipeline-debugging命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | pipeline-debugging |
| description | Check the data store and service logs before changing code. |
| version | 1.0.0 |
| category | devops |
| author | Gisu |
| license | MIT |
| platforms | ["linux"] |
| aliases | ["iswc-debugging","cisnet-debugging"] |
Pipeline bugs have three layers of truth:
These three are often different. The most common debugging mistake is changing code based on assumptions that the database and logs would contradict in seconds.
Before any code change, query the database tables that hold the entity's processing state. This reveals:
For the client ISWC/CIS-Net pipeline:
SELECT w.socworkcde, i.iswc, s.status, s.rejection_reason
FROM tblworkinfo w
LEFT JOIN tbliswc i ON i.dbkey = w.dbkey
LEFT JOIN tbliswcsync s ON s.dbkey = w.dbkey
WHERE w.socworkcde = '<work-code>';
Find the service-agent that processes the pipeline stage and grep for the entity's identifier:
# Find the logs
find /service/root -name "*.log" | head -20
# Grep for the entity
grep -ri '<entity-id>' /service/root/ 2>/dev/null
Key signals:
Map what the DB, logs, and code each say. If they disagree, the data store and logs are more reliable than the code — they show what actually happened.
Example from a real session: The code said "work exists in CIS-Net with no ISWC → send UPDATE." The DB said "status=REJECTED, no ISWC." The Tomcat ISWC Agent logs said "401 Unauthorized on updateAgentRun — agent crashing before processing." The actual root cause was an expired API key, not a code bug.
Only make code changes when the code is demonstrably wrong (DB + logs confirm the code path is incorrect). If the DB shows "service never processed the entity" and the logs show "service crashed on startup," fix the service — not the pipeline code.
After the fix, re-query the DB and re-check the logs to confirm the entity was processed. Don't claim the fix works until you can cite:
iswc_or_error nil fix was 2 lines
and fixed the "unknown error" cascade. Most pipeline fixes are small
when you identify the right break point.references/iswc-cisnet-pipeline-debugging-2026-07-29.md — full session
narrative for the client ISWC/CIS-Net pipeline debugging session