Archon/migrations/002_command_templates.sql
Wirasm 9f73a87830
Add global command templates feature (#20)
- New database table for storing command templates
- /templates, /template-add, /template-delete commands
- Direct template invocation via /<name> [args]
- Auto-seed builtin commands from .claude/commands/exp-piv-loop on startup

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-02 10:52:02 +02:00

14 lines
457 B
SQL

-- Remote Coding Agent - Command Templates
-- Version: 2.0
-- Description: Global command templates table
CREATE TABLE remote_agent_command_templates (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
name VARCHAR(255) NOT NULL UNIQUE,
description TEXT,
content TEXT NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW()
);
CREATE INDEX idx_remote_agent_command_templates_name ON remote_agent_command_templates(name);