Reflect
Capture what a session learned, once the fix is confirmed working. Use when the user says a fix worked, is deployed, is verified, "that fixed it", "it's working now", "confirmed", or asks to record/close out what just happened. Turns a solved problem into a playbook entry, a guard rule, or a check, so the next person (or the next session) starts where this one ended.From its SKILL.md
npx -y skills add ANasser00/oncall --skill reflectAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.7 KB, as published. Nobody here has run it
/oncall:reflect: learn from what just happened
Run this after a fix is confirmed working, not when it's written and not when it's committed. A fix that looked right and didn't hold teaches the wrong lesson, and a playbook full of wrong lessons is worse than no playbook.
Before anything else: is it actually confirmed?
Ask plainly if it isn't obvious: has this been applied and verified in the environment it was failing in?
- Confirmed ("deployed and the errors stopped", "tested, it works") → continue.
- Not yet ("committed", "PR is up", "should work") → stop, say you'll capture it once it's verified, and record nothing. Say this in one sentence; don't lecture.
What to capture
Reconstruct from this session, not from memory of how such things usually go:
| Field | What it is |
|---|---|
symptom | What the user actually said was wrong, in their words |
resource, env | What was broken, and which tier |
checks | Each check that ran, with its one-line finding, including the ones that came up empty, since dead ends are the expensive part to rediscover |
root_cause | What was actually wrong |
fix | What was changed, specifically enough to repeat |
confirmed_by | How you know it worked (errors stopped, deploy went green, user confirmed) |
new_pattern | true if the playbooks didn't already cover this cause |
Append one JSON line to .oncall/incidents.jsonl (create the dir if needed).
Then: propose what should change
This is the part that matters. A log nobody reads is just a log. Ask what would have made this session shorter, and propose the smallest concrete edit:
| What happened | What to propose |
|---|---|
| Root cause wasn't in the playbook's table | A new row: signal → meaning → next step |
| The playbook's order was wrong (the answer was in step 4) | Move that check earlier, and say why |
| A check was missing entirely | Add the step, with the exact command |
| The dangerous part was a command someone might rerun | A .oncall/guard.json rule so it asks next time |
| A wrong assumption cost time | A caveat line in the playbook, phrased as the trap, not the truism |
| Nothing generalizes (genuinely one-off) | Say so. Log it and stop. Not every incident is a lesson. |
Show the diff and ask before writing to any playbook. These files are how future sessions behave, so they change with approval, never silently.
Rules
- One-offs stay logged, not promoted. A cause seen once is an anecdote. Two is a pattern worth writing down. If you're proposing a playbook edit off a single incident, say that's what you're doing and let the user decide.
- Write the trap, not the truism. "Check the execution role" is useless.
"A FireLens sidecar needs
logs:CreateLogGroupon the execution role, and the task will showResourceInitializationErrorwith no app logs at all" is the thing worth keeping. - Never record secrets. Key names and locations, never values.
- Keep it short. A playbook that doubles in size every incident stops being readable, which is the only thing that makes it useful at 3am. If a section is getting long, tighten it while you're there.
- No fabrication. If you can't reconstruct what a check returned, leave it out rather than inventing a plausible finding.