Error log triage
Groups yesterday's production errors and suggests the root cause for the top 3.
RunsEvery day at 9 AM
Cron
0 9 * * *Works withAny agent, any stack
Read the error log file at <PATH> (or the output of <LOG COMMAND>) for the last 24 hours. Group errors by message signature and count them. For the top 3 groups, find the code that throws them, explain the probable root cause, and propose a fix with a code diff. Flag any error that is new compared to the previous day.
Replace anything in <ANGLE BRACKETS> with your own details. Review outputs before letting an agent send, buy or delete anything.
How to run this
Works with any agent
⏱TriggerEvery day at 9 AM
✦Any agentRuns the prompt
✓OutputResult for you to review
Steps
- Copy the prompt and fill in the parts in angle brackets.
- Paste it into whatever agent you already use: a chat assistant, a coding agent, an automation tool, or a script that calls any model API.
- Schedule it (every day at 9 am). Use the agent's own scheduler if it has one, otherwise run it from cron with the expression below.
- Give it only the access it needs (inbox, calendar, repo, sheet) and keep sends, purchases and deletes behind your approval.
- Review the first two runs, tweak the prompt, then let it run.