Skip to content

Blog Post - Debugging skillz - #47741

Closed
jordienr wants to merge 17 commits into
masterfrom
debug-167-agent-debugging-blog
Closed

jordienr wants to merge 17 commits into
masterfrom
debug-167-agent-debugging-blog

Conversation

@jordienr

@jordienr jordienr commented Jul 8, 2026 •

Copy link
Copy Markdown
Member

Summary

Draft blog post (Linear DEBUG-167) announcing the debugging workflow now included in the Supabase agent skill (supabase/agent-skills PR #112). Covers why agents need a narrower debugging loop (evidence over guessing, isolate the failing layer, query logs narrow instead of an all-source scan) and how to use it.

TODOs before this can ship

  • No metrics, benchmarks, or quotes were invented; content is drawn directly from the skill's debugging reference files (skills/supabase/references/debugging/*.md in supabase/agent-skills).

Summary by CodeRabbit

  • Documentation
    • Added a new blog post: “Introducing the Supabase debugging skills,” with a step-by-step, evidence-driven workflow for debugging AI agent issues.
    • Covers reproducing errors, isolating the failing layer across the request stack, targeted log collection, and verification by re-running the failing operation.
    • Includes example log queries, symptom-to-fix routing guidance, and links to related documentation and resources.

DEBUG-167. Author and social/thumb images are placeholders (TODO).
@vercel

vercel Bot commented Jul 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
zone-www-dot-com Ready Ready Preview, v0 Aug 12, 2026 3:04pm
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 12, 2026 3:04pm
design-system Skipped Skipped Aug 12, 2026 3:04pm
docs Skipped Skipped Aug 12, 2026 3:04pm
studio-self-hosted Skipped Skipped Aug 12, 2026 3:04pm
studio-staging Skipped Skipped Aug 12, 2026 3:04pm
ui-library Skipped Skipped Aug 12, 2026 3:04pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds an MDX blog post describing the Supabase agent skill debugging workflow, evidence collection, symptom routing, installation, and related resources.

Changes

Agent skill debugging workflow

Layer / File(s) Summary
Debugging workflow and setup guide
apps/www/_blog/2026-07-24-agent-skill-debugging.mdx
Adds blog metadata and content covering request-layer isolation, focused ClickHouse log queries, symptom-to-fix routing, skill installation, and documentation links.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • supabase/supabase#47762: Adds related telemetry debugging guidance, including debugging loops, layer isolation, and targeted log queries.

Suggested labels: documentation

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description does not follow the repository template and omits the required sections. Add the template sections: CONTRIBUTING acknowledgement, change type, current behavior, new behavior, and additional context/issues.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and clearly points to the blog post about the debugging skill.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch debug-167-agent-debugging-blog

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@supabase

supabase Bot commented Jul 8, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch debug-167-agent-debugging-blog

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jordienr jordienr changed the title Announce debugging workflow in the Supabase agent skill Blog Post - Debugging workflow in the Supabase agent skill Jul 13, 2026
@jordienr
jordienr marked this pull request as ready for review July 13, 2026 08:32
@jordienr
jordienr requested a review from a team as a code owner July 13, 2026 08:32

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
apps/www/_blog/2026-07-08-agent-skill-debugging.mdx (1)

72-75: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Prefer auth.uid() directly in the policy USING clause.

Wrapping auth.uid() in a subselect (select auth.uid()) works but is less idiomatic than calling it directly. The subselect pattern is typically used for auth.jwt() field extraction, not for auth.uid() which already returns a scalar uuid.

♻️ Suggested refactor
 create policy "read own rows" on your_table for select
-to authenticated using ((select auth.uid()) = user_id);
+to authenticated using (auth.uid() = user_id);
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/www/_blog/2026-07-08-agent-skill-debugging.mdx` around lines 72 - 75,
Update the SQL policy example’s USING clause to call auth.uid() directly,
removing the unnecessary scalar subselect while preserving the comparison with
user_id.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/www/_blog/2026-07-08-agent-skill-debugging.mdx`:
- Line 3: Update the frontmatter description to replace the ungrammatical “query
logs narrow” phrasing with “narrow log queries,” preserving the existing
debugging workflow meaning.

---

Nitpick comments:
In `@apps/www/_blog/2026-07-08-agent-skill-debugging.mdx`:
- Around line 72-75: Update the SQL policy example’s USING clause to call
auth.uid() directly, removing the unnecessary scalar subselect while preserving
the comparison with user_id.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0d4109b5-10ea-4c1f-9b29-a9b268d74802

📥 Commits

Reviewing files that changed from the base of the PR and between 944c586 and 8038242.

⛔ Files ignored due to path filters (2)
  • apps/www/public/images/blog/2026-07-08-agent-skill-debugging/og.jpg is excluded by !**/*.jpg
  • apps/www/public/images/blog/2026-07-08-agent-skill-debugging/thumb.jpg is excluded by !**/*.jpg
📒 Files selected for processing (1)
  • apps/www/_blog/2026-07-08-agent-skill-debugging.mdx

@jordienr jordienr changed the title Blog Post - Debugging workflow in the Supabase agent skill Blog Post - Debugging skillz Jul 13, 2026

@ana1337x ana1337x left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny change to rephrase and include how we built at the start

… claim

- Rename post/images from 2026-07-24 to 2026-08-12.
- The skill no longer carries its own routing table (it now only links
  to the Debugging guide); reword the 'symptom-to-fix map' section so
  the claim matches what the skill actually does.
- Point both Debugging guide links at the current
  /guides/monitoring-and-debugging/debugging URL instead of the
  retired /guides/telemetry/debugging one.
Cut the loop mechanics, SQL examples, and request-stack diagram.
Lead with what installing the skill gets you and how to install it,
save the how-it-works detail for the Debugging guide itself.
Readers who installed the skill before this release won't have the
debugging workflow until they update.
@jordienr jordienr closed this Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants