dang-rpc-diagnosis

Diagnose Supabase RPC and REST query paths for empty or erroneous data.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/kimjuyoung1127/dangapp --skill dang-rpc-diagnosis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dang-rpc-diagnosis
Source: https://github.com/kimjuyoung1127/dangapp/tree/main/.claude/skills/dang-guide/ops/dang-rpc-diagnosis
Command: npx skills add https://github.com/kimjuyoung1127/dangapp --skill dang-rpc-diagnosis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps diagnose and resolve issues with Supabase RPCs or REST query paths that are returning incorrect, empty, or erroneous data, preventing frontend display problems.

Core Features & Use Cases

  • RPC/Query Diagnosis: Pinpoints the root cause of data discrepancies originating from the database layer.
  • Root Cause Analysis: Identifies issues related to RLS, filters, joins, data shape, or auth context.
  • Use Case: When a user reports that a specific page in the application shows no data, even though the code appears correct, this Skill can be used to investigate the underlying Supabase RPC to find out if it's returning an empty set due to RLS or a faulty filter.

Quick Start

Use the dang-rpc-diagnosis skill to diagnose the 'get_user_orders' RPC which is returning an empty list.

Frequently Asked Questions about dang-rpc-diagnosis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does my Supabase RPC return an empty list when the frontend query code is correct?

An empty Supabase RPC response often stems from database-side issues like RLS policies blocking access or faulty filter logic, not frontend code. Diagnosing the database layer isolates the root cause before modifying application logic.

How do I debug Supabase query paths that return incorrect or erroneous data?

To debug Supabase query paths returning erroneous data, investigate the data contract by isolating root causes like join conditions, response shape mismatches, and auth context, ensuring the database returns the expected output before frontend changes.

What causes response shape mismatches in Supabase REST queries?

Response shape mismatches in Supabase REST queries occur when the data structure returned by the database layer fails to align with the expected frontend data contract, requiring diagnosis of the underlying RPC to resolve the discrepancy.

Do I need Supabase project access to diagnose RPC data discrepancies?

Yes, diagnosing Supabase RPC data discrepancies requires Supabase project access and an understanding of the failing data contract to effectively isolate issues within RLS policies, filter logic, and join conditions.

How do I isolate RLS policy issues affecting my Supabase database queries?

Isolating RLS policy issues involves checking the database layer to see if authentication context restricts the query results, returning an empty set instead of the expected data, which prevents unnecessary frontend code changes.

When should I not use frontend debugging for incorrect Supabase query results?

Avoid frontend debugging when a Supabase REST query returns incorrect data due to database-side issues, as the problem likely originates from RLS policies, filters, or joins that must be isolated at the database level first.