skills/diagnose/SKILL.md
Diagnose a runtime bug by sweeping the observability logs (Cloudflare Workers logs, Sentry, PostHog) using the shared trace_id, and if the logs don't capture what's needed, ADD structured logging at the failure point + in the request context, deploy (remote) or run locally, and have the user reproduce. Use whenever the user mentions logs, a bug, an issue, "why did X fail / not work", "check the logs", "it works on desktop but not mobile", a stack trace, an error code, or a flaky/intermittent failure. Auto-pick this before guessing at a fix.
npx skillsauth add RonanCodes/ronan-skills diagnoseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When the user reports a bug, an error, or "why did X fail", do NOT jump to a speculative fix. Run this loop:
Grep the failing path. Form a concrete hypothesis about WHERE and WHY. Note the exact signal you'd need from logs to confirm (an id, a resolved value, a branch taken).
Source creds from ~/.claude/.env (see /ro:env for which keys). Correlate with the trace_id if the app has it (the x-dataforce-trace-id pattern), and pivot to the PostHog session replay for front-end repros.
observability: { enabled: true } in wrangler.jsonc (else wrangler tail is LIVE-only; you can't see the past).
wrangler tail for a live repro; for history use the observability telemetry API:
POST https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/workers/observability/telemetry/query (filter by worker + time + a needle like the error code).GET https://de.sentry.io/api/0/projects/<org>/<project>/issues/?statsPeriod=24h with Authorization: Bearer $SENTRY_AUTH_TOKEN. NOTE: handled { ok:false } error envelopes are NOT exceptions — they won't be in Sentry. Only thrown/captured errors are.GET https://eu.posthog.com/api/projects/<id>/events/?limit=N with Authorization: Bearer $POSTHOG_PERSONAL_API_KEY. Find the user's event (e.g. chat_message_sent) near the failure time; grab $session_id → replay URL https://eu.posthog.com/project/<id>/replay/<session_id>.Add structured logging that captures exactly the signal you needed in step 1:
userId, orgId, trace_id. Then add a targeted log(...).info('<event>', { ...resolved values, branch taken }) at the decision point, and a warn at the failure point (error code + scope).Then choose where to reproduce:
pnpm dev (tee logs to .dev-logs/), reproduce locally, read the logs. Suggest this when the failure isn't environment-specific.Ask the user which, if it's genuinely ambiguous; otherwise infer (mobile/prod → remote).
After the re-run, read the new logs, confirm the hypothesis, ship the real fix (often the instrumentation PR already contains it), and keep the useful logs.
A repo is "diagnosable" when it has, by default:
trace_id + userId + tenant/orgId.observability: { enabled: true } (historical Workers logs), Sentry, and PostHog wired.
When diagnosing in a repo that lacks these, propose adding them — it's the difference between "add a log and redeploy" (minutes) and "guess". Reference the dataforce trace_id implementation (issue #288) as the template./ro:env — which credential for which log source./ro:posthog, /ro:sentry — deeper per-tool operations./ro:cf-ship — deploy the instrumentation so a remote repro can be re-run.testing
--- name: linear-pipeline description: The Fable orchestrator for a single dispatched Linear ticket. Holds almost no context itself; it receives `--issue <ID> --detached`, decides the stage sequence, and fans out a sub-agent per stage, passing forward only each stage's artifact (never re-derived, never inlined into its own context). Step zero, before any planning or stage routing, is a boundary triage against `canon/security-boundary.md` (#199): a match tags Ronan Connolly and stops the run, no
development
--- name: in-your-face description: Capture a chat-only answer into a durable artifact (markdown + HTML, PDF when cheap) and launch it automatically so the user cannot miss it. Use when user says "in your face", "don't let me lose this", "save that answer", "make that durable", or right after answering a substantive side question (a recipe, comparison, how-to, or generated prompt) that would otherwise die with the context. category: workflow argument-hint: [--no-open] [--vault <short>] [hint of
tools
One-shot headless OpenAI Codex CLI calls for background/admin AI tasks — summaries, classification, extraction, admin glue. The default engine for anything that runs AI constantly in the background (daemon-driven, per-event), because it bills the flat ChatGPT subscription instead of Claude usage or per-token API spend, and it keeps working while Claude is rate-limited. NEVER for coding — coding stays Claude. Use when a skill or daemon needs a cheap always-on AI call, when the user says "use codex", "ask codex", "codex as backup", or when building a background summarizer/classifier into a listener or loop. Reads auth from ~/.codex/auth.json (ChatGPT account, no API key).
research
Turn a warranty rejection, repair quote, or RMA email into a cited decision brief — legal read (NL/EU consumer law), is the part user-serviceable, live part and new-unit prices, repair-vs-DIY-vs-new economics, before-you-send-it checklist, deadlines. Use when the user pastes or screenshots a repair quote, warranty rejection, "not covered" email, onderzoekskosten fee, or asks "should I repair or replace this".