aurora-tools-scripts — aurora-tools-scripts and postgresql aurora-tools-scripts, aurora-back, community, aurora-tools-scripts and postgresql, ide skills, installing aurora-tools-scripts, Claude Code, Cursor, Windsurf

v1.0
GitHub

About this Skill

Ideal for Database Management Agents requiring streamlined schema modification and index management in PostgreSQL environments. aurora-tools-scripts is a skill that defines where to put database code, such as migrations.ts vs procedures.ts, for efficient schema changes.

Features

Defines WHERE to put code for database schema modifications
Works in conjunction with the postgresql skill for SQL statement writing
Supports migrations.ts for schema changes, including ALTER TABLE and CREATE/DROP INDEX
Requires companion use with the postgresql skill for optimal functionality
Helps with database schema modifications, such as adding or dropping columns
Uses migrations.ts and procedures.ts for organized code management

# Core Topics

avvale avvale
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The aurora-tools-scripts skill by avvale is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for aurora-tools-scripts and postgresql, installing aurora-tools-scripts.

Ideal Agent Persona

Ideal for Database Management Agents requiring streamlined schema modification and index management in PostgreSQL environments.

Core Value

Empowers agents to manage database schema modifications, including ALTER TABLE and CREATE/DROP INDEX operations, in conjunction with the postgresql skill, utilizing migrations.ts for schema changes and procedures.ts for stored procedures, while adhering to SQL statement guidelines defined by the postgresql skill.

Capabilities Granted for aurora-tools-scripts

Automating database schema updates with migrations.ts
Optimizing database performance by creating and dropping indexes
Modifying table structures with ALTER TABLE operations

! Prerequisites & Limits

  • Requires companion postgresql skill for SQL statement generation
  • Limited to PostgreSQL database management
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

aurora-tools-scripts

Install aurora-tools-scripts, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Required Companion Skill

IMPORTANT: Always use this skill together with postgresql skill.

  • This skill defines WHERE to put the code (migrations.ts vs procedures.ts)
  • The postgresql skill defines HOW to write the SQL statements

Read .claude/skills/postgresql/SKILL.md before writing any SQL.


When to Use

migrations.ts - Schema Changes (DDL)

Use for database schema modifications:

  • ALTER TABLE (add/drop/modify columns)
  • CREATE/DROP INDEX
  • Add constraints (UNIQUE, FOREIGN KEY, CHECK)
  • Add rowId pattern to existing tables
  • Any structural change to tables

procedures.ts - Programmable Objects

Use for stored logic and automation:

  • Stored procedures (PROCEDURE)
  • Functions (FUNCTION)
  • Triggers (TRIGGER)
  • Sequences (via FUNCTION that creates them)

Critical Patterns

File Structure

FilePurpose
src/assets/tools/migrations.tsSchema changes only: ALTER TABLE, CREATE INDEX, DDL
src/assets/tools/procedures.tsProgrammable objects: procedures, functions, triggers
src/@api/graphql.tsTypes and ToolsProcedureType enum

Migration Object Structure

typescript
1{ 2 id: 'UUID', // Generate with crypto.randomUUID() 3 name: string, // English description: "Verb + Object + Table" 4 version: string, // Semver matching package.json, e.g., '0.0.7' 5 sort: number, // Execution order within version 6 upScript: `SQL`, // Pure PostgreSQL SQL in template literal 7 downScript: `SQL`, // Exact inverse of upScript 8}

Procedure Object Structure

typescript
1{ 2 id: 'UUID', 3 name: string, // Descriptive name 4 type: ToolsProcedureType, // PROCEDURE | FUNCTION | TRIGGER 5 version: string, 6 sort: number, 7 upScript: `SQL`, // Pure SQL: CREATE OR REPLACE... 8 downScript: `SQL`, // Pure SQL: DROP... 9}

SQL Conventions

RuleExample
Table names use double quotes"TableName"
Always prefix with schemapublic."TableName"
Use IF EXISTS/IF NOT EXISTSIdempotent scripts
Environment vars interpolation${process.env.VAR}

Naming Conventions

ElementPatternExample
Functionsset_{entity}_{field}set_load_order_code
Triggerstrg_{function_name}trg_set_load_order_code
Sequences{purpose}_seqload_order_code_seq
Indexes{table_snake}_{col}message_outbox_row_id
Local varsv_ prefixv_code
Counterst_ prefixt_counter

Decision Tree

What do you need?
│
├─ Schema/Structure change (DDL)?
│   └─ YES → migrations.ts
│       ├─ ALTER TABLE (add/drop/modify columns)
│       ├─ CREATE/DROP INDEX
│       ├─ ADD CONSTRAINT
│       └─ Any table structure change
│
└─ Programmable logic?
    └─ YES → procedures.ts
        ├─ Stored procedure (no return)     → type: PROCEDURE
        ├─ Function (returns value/table)   → type: FUNCTION
        ├─ Trigger + trigger function       → type: TRIGGER
        └─ Sequence (created via function)  → type: FUNCTION

Code Examples

Migration: Add Column

typescript
1{ 2 id: '98978f96-b617-469f-b80c-2a30c5516f47', 3 name: 'Add defaultRedirection to IamRole', 4 version: '0.0.6', 5 sort: 8, 6 upScript: ` 7 ALTER TABLE public."IamRole" ADD COLUMN "defaultRedirection" VARCHAR(2046) NULL; 8 `, 9 downScript: ` 10 ALTER TABLE public."IamRole" DROP COLUMN IF EXISTS "defaultRedirection"; 11 `, 12}

Migration: Add rowId (Aurora Standard Pattern)

typescript
1{ 2 id: 'bf177b46-6671-410b-bf49-4ce97c29884e', 3 name: 'Add rowId to MessageOutbox', 4 version: '0.0.5', 5 sort: 5, 6 upScript: ` 7 ALTER TABLE public."MessageOutbox" ADD COLUMN "rowId" BIGINT GENERATED BY DEFAULT AS IDENTITY; 8 WITH ordered AS ( 9 SELECT id AS uuid_pk, ROW_NUMBER() OVER (ORDER BY "createdAt", id) AS rn FROM public."MessageOutbox" 10 ) 11 UPDATE public."MessageOutbox" t 12 SET "rowId" = o.rn 13 FROM ordered o 14 WHERE t.id = o.uuid_pk 15 AND t."rowId" IS NULL; 16 17 SELECT setval(pg_get_serial_sequence('public."MessageOutbox"','rowId'), (SELECT MAX("rowId") FROM public."MessageOutbox"), true); 18 19 ALTER TABLE public."MessageOutbox" ALTER COLUMN "rowId" SET NOT NULL; 20 CREATE UNIQUE INDEX message_outbox_row_id ON public."MessageOutbox" USING btree ("rowId"); 21 `, 22 downScript: ` 23 DROP INDEX IF EXISTS "message_outbox_row_id"; 24 ALTER TABLE public."MessageOutbox" DROP COLUMN IF EXISTS "rowId"; 25 `, 26}

Procedure: Basic

typescript
1{ 2 id: '1cd0c79e-b83b-4ebf-b112-063669703cdc', 3 name: 'insert_user', 4 type: ToolsProcedureType.PROCEDURE, 5 version: '0.0.1', 6 sort: 1, 7 upScript: ` 8CREATE OR REPLACE PROCEDURE insert_user(name_input VARCHAR, age_input INTEGER) 9LANGUAGE plpgsql 10AS $$ 11BEGIN 12 INSERT INTO users (name, age) VALUES (name_input, age_input); 13END; 14$$; 15 `, 16 downScript: `DROP PROCEDURE IF EXISTS insert_user(VARCHAR, INTEGER);`, 17}

Commands

bash
1# Generate UUID for new entry 2uuidgen | tr '[:upper:]' '[:lower:]' 3 4# Or in Node.js 5node -e "console.log(crypto.randomUUID())" 6 7# Check current package version 8jq -r '.version' package.json

Resources

  • Templates: See assets/templates.ts for copy-paste templates
  • Migrations: See src/assets/tools/migrations.ts for real examples
  • Procedures: See src/assets/tools/procedures.ts for procedure examples

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is aurora-tools-scripts?

Ideal for Database Management Agents requiring streamlined schema modification and index management in PostgreSQL environments. aurora-tools-scripts is a skill that defines where to put database code, such as migrations.ts vs procedures.ts, for efficient schema changes.

How do I install aurora-tools-scripts?

Run the command: npx killer-skills add avvale/aurora-back. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for aurora-tools-scripts?

Key use cases include: Automating database schema updates with migrations.ts, Optimizing database performance by creating and dropping indexes, Modifying table structures with ALTER TABLE operations.

Which IDEs are compatible with aurora-tools-scripts?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for aurora-tools-scripts?

Requires companion postgresql skill for SQL statement generation. Limited to PostgreSQL database management.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add avvale/aurora-back. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use aurora-tools-scripts immediately in the current project.

Related Skills

Looking for an alternative to aurora-tools-scripts or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI