supabase-edge-function-caller-auth
Skill by sickn33
Audits and fixes who can call each Supabase Edge Function, including verify_jwt settings, withSupabase auth modes, role checks, webhook signatures and CORS. It is aimed at developers with single-page apps built in Lovable, Bolt or Cursor.
Install supabase-edge-function-caller-auth
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/supabase-edge-function-caller-auth ~/.claude/skills/supabase-edge-function-caller-authRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install supabase-edge-function-caller-auth in Claude Code
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/supabase-edge-function-caller-auth ~/.gemini/antigravity-cli/skills/supabase-edge-function-caller-authAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install supabase-edge-function-caller-auth in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill inventories every Supabase Edge Function in a repository and records who should be allowed to call each one: a signed-in user, another service, or a signed outside webhook. It then checks whether the matching verification exists in the function code and proposes patches. Its output is a per-function table plus the suggested patches.
The skill targets a specific failure: setting verify_jwt to false to clear a 401 error with no caller check left in the function, which lets anyone with the URL call it. It reads supabase/functions and supabase/config.toml, needs no network access or accounts, and leaves deploying, setting secrets and rotating keys to the human. It is written for developers who maintain single-page apps where Edge Functions hold admin actions, payments or AI calls.
Written from the project's SKILL.md and checked against it.
What it can do
- Function inventoryLists each function under supabase/functions and reads its verify_jwt setting in config.toml.
- Caller check tableRecords the intended caller for each function and the check actually present in its code.
- Auth patch suggestionsProposes withSupabase or supabase.auth.getUser wrappers for functions that lack a caller check.
- Role and CORS reviewFlags role checks that read from the request body and CORS settings that do not limit the app's origins.
- Webhook signature checkLooks for provider signature verification before any work runs in outside webhook functions.
What you need
- Read access to the project repository
- Supabase Edge Functions project with supabase/functions folder
Try asking
- Audit every function in supabase/functions and list its caller check
- Why does my generate-image Edge Function return 401 Invalid JWT?
- Suggest a withSupabase auth patch for my signed-in user functions
Good to know
- Static reading only; it cannot confirm the deployed function matches the repo or test RLS.
- Custom auth such as third-party JWT providers or API gateways needs manual review.
- Supabase @supabase/server APIs may change; check current docs before applying.
- A clean audit covers function entry points only and does not mean the app is secure.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/supabase-edge-function-caller-auth/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to supabase-edge-function-caller-auth
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
supabase-edge-function-caller-auth: common questions
Why does my Supabase Edge Function return 401 Invalid JWT?
The source describes this after switching to the new asymmetric signing keys or sb_ API keys. Setting verify_jwt to false clears the 401, but the function then needs a caller check in code.
Does this skill deploy changes or set secrets?
No. It reads repository files and proposes patches. Deploying, setting secrets and rotating keys are done by the human after reviewing the patch.
Does this skill cover Row Level Security on tables?
No. The source says to use an RLS-focused skill for tables. This skill covers only function entry points.
How do I install supabase-edge-function-caller-auth?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is supabase-edge-function-caller-auth free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is supabase-edge-function-caller-auth safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to supabase-edge-function-caller-auth?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
