mk-organization-1/ai-agent-openclaw/add-supabase

Claude Code and agent skill by mk-organization-1/ai-agent-openclaw

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Adds Supabase as OpenClaw's persistent backend. Creates tables for conversation history, skill invocation logs, and agent memory using the Supabase JS client. Wires memory-read and memory-write into the tool registry so skills can persist state across sessions. Requires a Supabase project URL and anon key.

Install

npx vskill@latest install mk-organization-1/ai-agent-openclaw/add-supabase

SKILL.md

The same SKILL.md was published earlier as mk-organization-1/ai-agent-openclaw/add-supabase.

add-supabase

Give OpenClaw persistent memory. Skills can read and write structured state that survives restarts.

Usage

/add-supabase

Files Created

src/db/supabase.ts # Typed Supabase client with table helpers
src/db/migrations/001_init.sql # Initial schema: memory, skill_logs, conversations
src/tools/memory.ts # memory_read and memory_write tools

Files Modified

src/tools/index.ts # Register memory_read, memory_write
src/config.ts # Add SUPABASE_URL, SUPABASE_ANON_KEY
package.json # Add @supabase/supabase-js

Environment Variables

SUPABASE_URL=https://your-project-id.supabase.co
SUPABASE_ANON_KEY=your_anon_key

Tables Created

sql
-- Run migrations/001_init.sql in the Supabase SQL editor
CREATE TABLE agent_memory (
key TEXT PRIMARY KEY,
value JSONB NOT NULL,
updated_at TIMESTAMPTZ DEFAULT now()
);
CREATE TABLE skill_invocations (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
skill_name TEXT NOT NULL,
input JSONB,
duration_ms INTEGER,
ts TIMESTAMPTZ DEFAULT now()
);
CREATE TABLE conversations (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
channel TEXT NOT NULL,
messages JSONB DEFAULT '[]',
created_at TIMESTAMPTZ DEFAULT now()
);

Step-by-Step Walkthrough

  1. Create a Supabase project at supabase.com
  2. Copy the Project URL and anon key from Settings → API
  3. Run /add-supabase
  4. Open the Supabase SQL editor and run migrations/001_init.sql
  5. Set env vars in .env
  6. OpenClaw now remembers state across restarts

Code Sample

typescript
// src/db/supabase.ts (generated)
import { createClient } from '@supabase/supabase-js';
export const supabase = createClient(
process.env.SUPABASE_URL!,
process.env.SUPABASE_ANON_KEY!
);
export async function memoryGet(key: string): Promise<unknown> {
const { data } = await supabase.from('agent_memory').select('value').eq('key', key).single();
return data?.value ?? null;
}
export async function memorySet(key: string, value: unknown): Promise<void> {
await supabase.from('agent_memory').upsert({ key, value, updated_at: new Date().toISOString() });
}

Philosophy

Supabase is the right default for OpenClaw's persistence layer: it scales from zero, has a generous free tier, and the real-time subscriptions unlock future features like multi-agent shared state.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mk-organization-1/ai-agent-openclaw/add-supabase/badge)](https://verified-skill.com/skills/mk-organization-1/ai-agent-openclaw/add-supabase)

Something wrong with this skill or its page? Tell us.