express-error-handler
星标0
分支0
更新时间2026年4月2日 16:46
Diagnose and fix Express.js error handling issues across all apps (FlowInCash, Crispi, MicroApps)
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Diagnose and fix Express.js error handling issues across all apps (FlowInCash, Crispi, MicroApps)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Recover MCP servers when they fail to respond, lose connection, or return protocol errors
Diagnose and recover Plaid banking sync failures in FlowInCash
Debug and fix FlowInCash purchase decision queue and traffic-light evaluation system
Triage and resolve issues reported by beta users across FlowInCash and Crispi apps
| name | express-error-handler |
| description | Diagnose and fix Express.js error handling issues across all apps (FlowInCash, Crispi, MicroApps) |
| version | 1.0.0 |
| tags | ["express","error-handling","node","typescript"] |
Use this skill when an Express app returns 500 errors, crashes on unhandled rejections, or logs error stack traces.
/media/bob/I/AI_Projects/FlowInCash)/media/bob/I/AI_Projects/Crispi-app)/media/bob/I/AI_Projects/FliC-MicroApps)/media/bob/I/AI_Projects/Crispi-MicroApps)TypeError / ReferenceError → code bug, likely missing null checkECONNREFUSED / ETIMEDOUT → downstream service (DB, Plaid, AWS) is downValidationError / ZodError → bad input from clientENOMEM / EMFILE → resource exhaustionsrc/routes/ for the failing endpoint// BAD — unhandled promise rejection
router.get('/accounts', async (req, res) => {
const data = await fetchAccounts(); // throws, not caught
res.json(data);
});
// GOOD — wrap or use express-async-errors
router.get('/accounts', async (req, res, next) => {
try {
const data = await fetchAccounts();
res.json(data);
} catch (err) {
next(err);
}
});
app.use('/api', routes);
app.use(errorHandler); // Must be LAST
// BAD
res.status(500).json({ error: err.message, stack: err.stack });
// GOOD
res.status(500).json({ error: 'Internal server error', requestId: req.id });
logger.error({ err, requestId: req.id, path: req.path });
npm test in the affected project