Source profileQuality 91/100Review permissions

agents-inc/skills/src/skills/api-database-edgedb/SKILL.md

api-database-edgedb

Graph-relational database with EdgeQL query language, code-first schema, link-based relations, computed properties, and fully typed TypeScript query builder

Source repository stars
23
Declared platforms
0
Static risk flags
1
Last source update
2026-08-09
Source checked
2026-08-28

Decision brief

What it does: where it fits

Quick Guide: Gel (formerly EdgeDB) is a graph-relational database built on PostgreSQL. Define schemas in .gel files using SDL with types, links, and computed properties. Use gel migration create + gel migrate for schema changes. Query with EdgeQL (set-based, deeply nested shapes…

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/agents-inc/skills --skill "src/skills/api-database-edgedb"
    Safe inspection promptEditorial

    Inspect the Agent Skill "api-database-edgedb" from https://github.com/agents-inc/skills/blob/81d43a51211aca12c85dcc16085fa99014ec548e/src/skills/api-database-edgedb/SKILL.md at commit 81d43a51211aca12c85dcc16085fa99014ec548e. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Pattern 1: Client Setup

      Create a client with createClient(). Connection details are auto-discovered from gel.toml (or edgedb.toml) or environment variables.

      Create a client with createClient(). Connection details are auto-discovered from gel.toml (or edgedb.toml) or environment variables.Choose the right query method by expected cardinality: query() for sets, querySingle() for optional single, queryRequiredSingle() when result is guaranteed, execute() for side-effect-only statements. See examples/core.m…
    2. 02

      CRITICAL: Before Using This Skill

      All code must follow project conventions in CLAUDE.md (kebab-case, named exports, import ordering, import type, named constants)

      Defining graph-relational schemas with types, links, and computed propertiesWriting type-safe queries with EdgeQL or the TypeScript query builderManaging schema migrations with the built-in migration system
    3. 03

      Philosophy

      Gel is a graph-relational database. It combines the relational model (tables, constraints, ACID) with a graph model (links between objects, deep traversal). The core idea: relationships are first-class citizens, not join tables.

      Schema is the source of truth -- Define everything in .gel files (or .esdl for legacy projects). Migrations are auto-generated by comparing your schema files against the database state.Links over foreign keys -- Use link to connect types. Gel handles the underlying foreign keys. You never write JOIN -- you traverse links with dot notation.Sets everywhere -- Every value in EdgeQL is a set. A single string is a set of one element. This is the most important mental model shift from SQL.
    4. 04

      Core Patterns

      Create a client with createClient(). Connection details are auto-discovered from gel.toml (or edgedb.toml) or environment variables.

      Create a client with createClient(). Connection details are auto-discovered from gel.toml (or edgedb.toml) or environment variables.Choose the right query method by expected cardinality: query() for sets, querySingle() for optional single, queryRequiredSingle() when result is guaranteed, execute() for side-effect-only statements. See examples/core.m…Schemas live in dbschema/.gel files (or .esdl for legacy projects). Use required for non-null, link for relationships, constraint exclusive for uniqueness, computed backlinks (.<author[is Post]) for reverse traversal.
    5. 05

      Pattern 2: Schema Definition (SDL)

      Schemas live in dbschema/.gel files (or .esdl for legacy projects). Use required for non-null, link for relationships, constraint exclusive for uniqueness, computed backlinks (.<author[is Post]) for reverse traversal.

      Schemas live in dbschema/.gel files (or .esdl for legacy projects). Use required for non-null, link for relationships, constraint exclusive for uniqueness, computed backlinks (.<author[is Post]) for reverse traversal.

    Permission review

    Static risk signals and limitations

    Runs scripts

    medium · line 167

    The documentation asks the agent to run terminal commands or scripts.

    npx @gel/generate edgeql-js # regenerate query builder

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score91/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars23SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    agents-inc/skills
    Skill path
    src/skills/api-database-edgedb/SKILL.md
    Commit
    81d43a51211aca12c85dcc16085fa99014ec548e
    License
    MIT
    Collected
    2026-08-28
    Default branch
    main
    View the original SKILL.md

    Gel (formerly EdgeDB) Patterns

    Quick Guide: Gel (formerly EdgeDB) is a graph-relational database built on PostgreSQL. Define schemas in .gel files using SDL with types, links, and computed properties. Use gel migration create + gel migrate for schema changes. Query with EdgeQL (set-based, deeply nested shapes) or the TypeScript query builder (e.select, e.insert). Everything in EdgeQL is a set -- empty sets need explicit casts, and operations on sets produce Cartesian products. Use global variables with access policies for row-level security. The query builder requires a running database for code generation (npx @gel/generate edgeql-js).

    Naming: EdgeDB was rebranded to Gel in February 2025. The edgedb npm package, CLI, and .esdl extension still work via compatibility shims, but new projects should use gel, @gel/generate, and .gel files.


    <critical_requirements>

    CRITICAL: Before Using This Skill

    All code must follow project conventions in CLAUDE.md (kebab-case, named exports, import ordering, import type, named constants)

    (You MUST run npx @gel/generate edgeql-js after every gel migrate -- the generated query builder is based on the database schema and becomes stale after migrations)

    (You MUST cast empty sets explicitly (<str>{}, <int64>{}) -- bare {} is a syntax error because EdgeQL is strongly typed and cannot infer the type of an empty set)

    (You MUST understand that all EdgeQL values are sets -- operations on multi-valued expressions produce Cartesian products, not element-wise results)

    (You MUST pass the transaction object tx (not client) to ALL query .run() calls inside client.transaction() -- using client inside a transaction runs queries outside the transaction)

    (You MUST NOT use volatile functions like datetime_current() in schema-defined computed properties -- use datetime_of_transaction() or datetime_of_statement() instead)

    </critical_requirements>


    Auto-detection: Gel, gel, EdgeDB, edgedb, EdgeQL, edgeql, .gel, .esdl, dbschema, edgeql-js, createClient, e.select, e.insert, e.update, e.delete, e.params, gel migrate, gel migration, edgedb migrate, SDL schema, backlink, access policy, gel.toml, edgedb.toml

    When to use:

    • Defining graph-relational schemas with types, links, and computed properties
    • Writing type-safe queries with EdgeQL or the TypeScript query builder
    • Managing schema migrations with the built-in migration system
    • Modeling complex relationships (multi links, backlinks, polymorphism)
    • Implementing row-level security with access policies and globals

    Key patterns covered:

    • Client setup and connection (createClient, DSN, environment variables)
    • Schema definition in SDL (types, properties, links, constraints, computed)
    • EdgeQL query language (SELECT shapes, INSERT, UPDATE, DELETE)
    • TypeScript query builder (e.select, e.insert, e.update, e.delete)
    • Migrations workflow (gel migration create, gel migrate)

    When NOT to use:

    • Simple key-value storage (use a dedicated key-value store)
    • Projects that need raw SQL as the primary interface (Gel uses EdgeQL; Gel 6+ adds native SQL support but EdgeQL is the primary interface)
    • Environments where you cannot run the Gel server (it is not an embedded database)

    Detailed Resources:

    • For decision frameworks and quick reference, see reference.md

    Core Patterns:

    • examples/core.md - Client setup, schema definition, EdgeQL basics, migration workflow

    Query Builder:

    Advanced Schema:


    Philosophy

    Gel is a graph-relational database. It combines the relational model (tables, constraints, ACID) with a graph model (links between objects, deep traversal). The core idea: relationships are first-class citizens, not join tables.

    Core principles:

    1. Schema is the source of truth -- Define everything in .gel files (or .esdl for legacy projects). Migrations are auto-generated by comparing your schema files against the database state.
    2. Links over foreign keys -- Use link to connect types. Gel handles the underlying foreign keys. You never write JOIN -- you traverse links with dot notation.
    3. Sets everywhere -- Every value in EdgeQL is a set. A single string is a set of one element. This is the most important mental model shift from SQL.
    4. Shapes for projection -- SELECT returns structured, nested objects (like GraphQL responses), not flat rows. You specify the "shape" of what you want.
    5. Computed properties are views -- Computed properties and links are not stored; they are evaluated on every query. Use them for derived data.
    6. Query builder for TypeScript -- The generated query builder provides compile-time type safety. Prefer it over raw EdgeQL strings in TypeScript projects.

    When to use Gel:

    • Applications with complex, deeply nested relationships (social graphs, content systems, e-commerce)
    • Projects that benefit from graph-style traversals without sacrificing relational integrity
    • TypeScript projects that want compile-time type-safe database queries
    • Teams that want automatic migration generation from schema changes

    When NOT to use:

    • Existing projects locked into raw PostgreSQL with extensive stored procedures
    • Applications where SQL compatibility is the only acceptable query language (Gel 6+ has native SQL support, but EdgeQL is the primary interface)
    • Environments that cannot run the Gel server process

    Core Patterns

    Pattern 1: Client Setup

    Create a client with createClient(). Connection details are auto-discovered from gel.toml (or edgedb.toml) or environment variables.

    import { createClient } from "gel";
    
    const client = createClient(); // auto-discovers from project config
    export { client };
    

    Choose the right query method by expected cardinality: query() for sets, querySingle() for optional single, queryRequiredSingle() when result is guaranteed, execute() for side-effect-only statements. See examples/core.md for full client setup patterns.


    Pattern 2: Schema Definition (SDL)

    Schemas live in dbschema/*.gel files (or *.esdl for legacy projects). Use required for non-null, link for relationships, constraint exclusive for uniqueness, computed backlinks (.<author[is Post]) for reverse traversal.

    # dbschema/default.gel
    module default {
      type User {
        required name: str;
        required email: str { constraint exclusive; };
        multi posts := .<author[is Post];  # computed backlink
      }
      type Post {
        required title: str;
        required author: User;             # link, not uuid!
      }
    }
    

    Key rule: Always use link for relationships -- never raw uuid properties. See examples/core.md for complete schema patterns with constraints, indexes, and enums.


    Pattern 3: EdgeQL Queries

    SELECT uses shapes for projection (like GraphQL), INSERT assigns links via subqueries, UPDATE uses +=/-=/:= for multi link manipulation.

    select User {
      name, email,
      posts: { title, status } filter .status = Status.published,
    } filter .email = '[email protected]';
    

    See examples/core.md for SELECT/INSERT/UPDATE/DELETE patterns and parameterized queries.


    Pattern 4: Migrations

    Gel compares your .gel files against the database and auto-generates migrations.

    gel migration create    # generate migration from schema diff (interactive)
    gel migrate             # apply pending migrations (idempotent)
    npx @gel/generate edgeql-js  # regenerate query builder
    

    Never edit the database with DDL directly -- always modify .gel files and use the migration workflow. See examples/core.md for the full workflow including gel watch --migrate for prototyping.


    Pattern 5: Transactions

    Pass tx (not client) to ALL operations inside client.transaction(). Using client inside the callback runs queries outside the transaction.

    await client.transaction(async (tx) => {
      await tx.execute(`update Account ...`); // tx, not client!
    });
    

    See examples/core.md for transaction patterns and examples/query-builder.md for query builder transactions.


    <red_flags>

    RED FLAGS

    High Priority Issues:

    • Using client instead of tx inside client.transaction() -- queries run outside the transaction and cannot be rolled back
    • Forgetting to run npx @gel/generate edgeql-js after gel migrate -- query builder types are stale and TypeScript won't catch schema mismatches
    • Using raw uuid properties instead of link -- defeats Gel's graph traversal and referential integrity
    • Using datetime_current() in schema-defined computed properties -- volatile functions are forbidden in schema computeds; use datetime_of_statement() or datetime_of_transaction()

    Medium Priority Issues:

    • Bare {} for empty sets -- EdgeQL requires explicit type cast (<str>{}, <array<int64>>[]) because the type cannot be inferred from an empty literal
    • Using := when you mean += on multi links in UPDATE -- := replaces the entire set, += adds to it, -= removes from it
    • Not specifying filter on UPDATE/DELETE -- without a filter, the operation applies to ALL objects of that type
    • Editing the database with DDL directly instead of through .gel files + migrations -- causes schema drift between files and database

    Common Mistakes:

    • Expecting element-wise behavior from set operations -- {1, 2} + {10, 20} produces {11, 21, 12, 22} (Cartesian product), not {11, 22}
    • Forgetting that select on a single link returns an object (not an ID) -- you do not need to JOIN; just traverse with .
    • Using select count(MyType) and expecting querySingle to work -- count() always returns exactly one value, so use queryRequiredSingle
    • Defining a computed backlink but forgetting the type filter -- .<author without [is Post] returns all types that have an author link

    Gotchas & Edge Cases:

    • Computed properties are not stored -- they are re-evaluated on every query, which can be expensive for complex expressions
    • required on a multi link means "at least one" -- an empty set violates the constraint, which can be surprising
    • String concatenation uses ++ not + -- the + operator is for arithmetic only
    • LIMIT 1 does NOT make a query return a singleton for cardinality purposes -- use filter .id = <uuid>$id (exclusive constraint) for the query builder to infer singleton cardinality
    • Multi links are unordered sets -- if you need ordering, add an order by in your query or use an intermediate type with an order property
    • Backlinks (.<link_name) default to multi cardinality -- use single keyword explicitly if you know the relationship is one-to-one
    • EdgeDB branches (v5+) are separate database copies, not lightweight references -- branching a large database takes time and disk space proportional to the data size

    </red_flags>


    <critical_reminders>

    CRITICAL REMINDERS

    All code must follow project conventions in CLAUDE.md (kebab-case, named exports, import ordering, import type, named constants)

    (You MUST run npx @gel/generate edgeql-js after every gel migrate -- the generated query builder is based on the database schema and becomes stale after migrations)

    (You MUST cast empty sets explicitly (<str>{}, <int64>{}) -- bare {} is a syntax error because EdgeQL is strongly typed and cannot infer the type of an empty set)

    (You MUST understand that all EdgeQL values are sets -- operations on multi-valued expressions produce Cartesian products, not element-wise results)

    (You MUST pass the transaction object tx (not client) to ALL query .run() calls inside client.transaction() -- using client inside a transaction runs queries outside the transaction)

    (You MUST NOT use volatile functions like datetime_current() in schema-defined computed properties -- use datetime_of_transaction() or datetime_of_statement() instead)

    Failure to follow these rules will cause stale types, silent data bugs, or transaction isolation failures.

    </critical_reminders>

    Frequently asked questions

    What to verify before installation and use

    What does the api-database-edgedb source document cover?

    Quick Guide: Gel (formerly EdgeDB) is a graph-relational database built on PostgreSQL. Define schemas in .gel files using SDL with types, links, and computed properties. Use gel migration create + gel migrate for schema changes. Query with EdgeQL (set-based, deeply nested shapes…

    How do I install api-database-edgedb?

    The source record exposes this install command: npx skills add https://github.com/agents-inc/skills --skill "src/skills/api-database-edgedb". Inspect the command and pinned source before running it.

    Which permission-related actions were detected?

    Static rules flagged exec-script in the source; the page lists the matching lines and excerpts.

    Alternatives

    Compare before choosing

    Computed 10045,960

    coreyhaines31/marketingskills

    ab-testing

    When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

    Computed 10029,236

    garrytan/gbrain

    bulk-ingestion

    End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.

    Computed 10025,136

    alirezarezvani/claude-skills

    app-store-optimization

    App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

    Computed 1005,277

    dotnet/skills

    migrate-vstest-to-mtp

    Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing