- Home
- Skills
- Testing & Debugging
- 审查错误日志 · Error Log Reviewer
审查错误日志 · Error Log Reviewer
把晦涩报错翻译成可执行的处理步骤:结论先行给根因,附证据、风险与修复命令,新人也能照做。 Turn cryptic errors into actionable fixes: root cause first, then evidence, risks, and repair commands that newcomers can follow.
$7
Works with the AI tools you already use
审查错误日志 · Error Log Reviewer
Example session with this skill installed
帮我们分析这个报错,给不会后端的新同事看。日志:Error: ECONNREFUSED 127.0.0.1:5432 at TCPConnectWrap.afterConnect。环境:本地开发,Node.js 服务,之前一直正常,今天重启后报错。请给结论、证据、修复步骤和验证命令。
- Read your context and instructions
- Compiled the error log reviewer
结论:你的程序连不上本机数据库——PostgreSQL 大概率没启动(或端口被占)。这不是代码写错了,重启后最常见的就是数据库服务没跟着起来。
| 证据 | 白话解释 |
|---|---|
| ECONNREFUSED | 目标机器「主动拒绝」了连接,说明没有程序在 5432 端口上接客 |
| 127.0.0.1:5432 | 连接目标是本机的 PostgreSQL 默认端口 |
| TCPConnectWrap | 错误发生在网络层,程序还没发数据就被拒 |
风险
- 本地:不处理的话,所有依赖数据库的功能都用不了。
- 如果这发生在生产环境,服务可能处于宕机状态,需要立即处理。
修复步骤(按顺序试)
- 检查数据库是否在跑:
- Windows:打开「服务」,找到 postgresql 看状态是否为「正在运行」,右键启动。
- macOS/Linux:运行
pg_ctl status。
- 用 Docker 装的?运行
docker ps看 postgres 容器是否在列表里,没有就docker start <容器名>。 - 检查端口占用:Windows 运行
netstat -ano | findstr 5432,确认没有其他程序抢了这个端口。 - 检查 .env 里的数据库地址与端口是否被改过(应保持 127.0.0.1:5432)。
验证命令
- 服务起来后,重新启动你的 Node 服务,再看是否还报同样错误。
- 确认数据库端口在监听:Windows
netstat -ano | findstr 5432,macOS/Linuxlsof -i :5432。
下一步
- 先做第 1 步,90% 的情况是服务没启动。
- 如果服务在跑仍报错,把
netstat输出截图发到群里,并附上 .env 里的数据库配置(隐去密码)。 - 修好后把这篇分析存入团队的《常见报错速查》文档。
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
它解决什么问题
新人看到 `ECONNREFUSED`、`NullPointerException` 只会截图问人,资深同事被同一类问题反复打断。这个技能把原始报错翻译成人话:先给根因结论,再给证据和修复步骤,附带验证命令,让能看懂报错的人从少数变成全体。
这个技能做什么
围绕错误日志提供结构化审查能力:先澄清运行环境与触发场景,再拆解日志中的错误码、堆栈与上下文,输出结论先行的审查报告(根因/证据/风险/修复步骤/验证方法),并标注待确认信息。默认中文输出,修复命令兼顾 Windows 与 macOS/Linux。
为什么比裸提示词强
- 结论先行:第一行就是「问题是什么」,不用读完长文才明白
- 把技术黑话翻译成白话,非技术同事也能看懂
- 每步修复都配验证命令,修没修好一测便知
- 缺失信息标「待确认」,不乱猜环境细节
典型用例
- 给初级开发讲解堆栈报错的根因与修法
- 把线上故障日志整理成事故复盘材料
- 统一团队的错误报告格式,减少来回沟通
- 把终端报错变成给客户看的白话说明
局限
审查基于你提供的日志与上下文,日志不全时结论可能不完整;生产环境的操作请由值班同事复核后执行。
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean today
- Passed all security checks, Safe to install