Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

Remove broken duplicate agent_skill_prices migration

nirholase23e994bdd8c
diff --git a/api/_lib/migrations/002_create_agent_skill_prices.sql b/api/_lib/migrations/002_create_agent_skill_prices.sql
deleted file mode 100644
index a847710cb..000000000
--- a/api/_lib/migrations/002_create_agent_skill_prices.sql
+++ /dev/null
@@ -1,10 +0,0 @@
-create table agent_skill_prices (
- id serial primary key,
- agent_id integer not null references agents(id) on delete cascade,
- skill_name varchar(255) not null,
- amount bigint not null,
- currency_mint varchar(255) not null,
- created_at timestamptz not null default now(),
- updated_at timestamptz not null default now(),
- unique (agent_id, skill_name)
-);
diff --git a/prompts/monetization/02_db_schema_for_pricing.md b/prompts/monetization/02_db_schema_for_pricing.md
deleted file mode 100644
index 5c1b91252..000000000
--- a/prompts/monetization/02_db_schema_for_pricing.md
+++ /dev/null
@@ -1,83 +0,0 @@
----
-status: not-started
-last_updated: 2026-05-04
----
-# Prompt 02: Database Schema for Skill Pricing
-
-## Objective
-Create the necessary database table to store prices for agent skills.
-
-## Explanation
-To allow creators to set prices for their skills, we need a dedicated table in our PostgreSQL database. This table will link an agent, a skill, and a price, defined by an amount and a currency. This structure allows for future flexibility, such as supporting multiple currencies.
-
-## Instructions
-1. **Design the Table:**
- * Create a new table named `agent_skill_prices`.
- * The table should have the following columns:
- * `id`: Primary key (e.g., UUID or SERIAL).
- * `agent_id`: Foreign key referencing the `agent_identities` table.
- * `skill_name`: A text field to identify the skill. It should match the name defined in the agent's manifest.
- * `amount`: A numeric or bigint type to store the price in the smallest denomination of the currency (e.g., lamports for Solana tokens).
- * `currency_mint`: A text field to store the mint address of the currency (e.g., the USDC mint address on Solana).
- * `created_at`: Timestamp of creation.
- * `updated_at`: Timestamp of the last update.
- * Add a unique constraint on (`agent_id`, `skill_name`) to ensure a skill only has one price per agent.
-
-2. **Write the SQL Migration:**
- * Create a new SQL migration file.
- * Write the `CREATE TABLE` statement according to the design above.
- * Include commands to create indexes on `agent_id` for efficient lookups.
-
-## SQL Example
-
-Here is the PostgreSQL `CREATE TABLE` statement.
-
-```sql
-CREATE TABLE IF NOT EXISTS agent_skill_prices (
- id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
- agent_id UUID NOT NULL,
- skill_name VARCHAR(255) NOT NULL,
- amount BIGINT NOT NULL CHECK (amount > 0),
- currency_mint VARCHAR(255) NOT NULL,
- created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
- updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
-
- CONSTRAINT fk_agent
- FOREIGN KEY(agent_id)
- REFERENCES agent_identities(id)
- ON DELETE CASCADE,
-
- UNIQUE (agent_id, skill_name)
-);
-
-CREATE INDEX idx_agent_skill_prices_agent_id ON agent_skill_prices(agent_id);
-
--- Optional: Create a trigger to auto-update updated_at timestamp
-CREATE OR REPLACE FUNCTION trigger_set_timestamp()
-RETURNS TRIGGER AS $$
-BEGIN
- NEW.updated_at = NOW();
- RETURN NEW;
-END;
-$$ LANGUAGE plpgsql;
-
-CREATE TRIGGER set_timestamp
-BEFORE UPDATE ON agent_skill_prices
-FOR EACH ROW
-EXECUTE PROCEDURE trigger_set_timestamp();
-
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/02_db_schema_for_pricing.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.