All skills
simota avatar

/schema

@c805268
by shingo imotasimota/agent-skills85 stars
15

Designing database schemas, migrations, and multi-tenant architecture: RLS, tenant routing, provisioning, quotas, and isolation. Not for query-plan tuning (Tuner).

Use this Skill: https://skilld.dev/gh/simota/agent-skills/schema

This session only. Nothing lands on disk.

referencetenant-handoffs.md

≈525 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Schema[tenant] Handoff Templates

Receiving Handoffs

From Schema (DB Design Context)

SCHEMA_TO_SHARD_HANDOFF:
  source: Schema
  content:
    tables: ["[table list with key columns]"]
    relationships: ["[foreign key relationships]"]
    current_isolation: "[none | basic | full]"
    indexes: ["[existing indexes]"]
  request: "Design tenant isolation for this schema"

From Gateway (API Routing Context)

GATEWAY_TO_SHARD_HANDOFF:
  source: Gateway
  content:
    api_design: "[OpenAPI spec or summary]"
    auth_method: "[JWT | session | API key]"
    current_routing: "[how tenant is currently identified]"
  request: "Design tenant-aware API routing"

Sending Handoffs

To Schema (RLS Implementation)

SHARD_TO_SCHEMA_HANDOFF:
  source: Schema[tenant]
  destination: Schema
  content:
    isolation_strategy: "[database | schema | row-level]"
    rls_policies:
      - table: "[table name]"
        policy: "[SQL policy definition]"
        indexes_needed: ["[index definitions]"]
    tenant_column: "tenant_id UUID NOT NULL"
    migration_steps: ["[ordered migration steps]"]
  request: "Implement RLS policies and tenant columns"

To Sentinel (Security Verification)

SHARD_TO_SENTINEL_HANDOFF:
  source: Schema[tenant]
  destination: Sentinel
  content:
    isolation_design: "[architecture summary]"
    leakage_assessment:
      vectors_checked: [N]
      mitigated: [N]
      open: [N]
    rls_policies: ["[policy definitions]"]
    cache_strategy: "[tenant-scoped cache design]"
  request: "Verify cross-tenant data leakage protection"

To Scaffold (Infrastructure)

SHARD_TO_SCAFFOLD_HANDOFF:
  source: Schema[tenant]
  destination: Scaffold
  content:
    infrastructure_needs:
      database: "[single shared | per-tenant | hybrid]"
      connection_pooling: "[PgBouncer config if needed]"
      cache: "[Redis tenant namespace config]"
      storage: "[S3 tenant prefix config]"
    provisioning_automation: "[tenant onboarding infra needs]"
  request: "Provision tenant-aware infrastructure"

Source: SKILL.md on GitHub

No alerts13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The skill is a comprehensive database schema specialist that provides guidance on data modeling, migration planning, and multi-tenant architecture. It strictly follows security best practices, including enforcing Row-Level Security (RLS), recommending lock timeouts to prevent database outages, and using the expand-contract pattern for safe migrations. No malicious patterns, obfuscation, or unauthorized network operations were detected.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer6mo

    1/9 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at c805268. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/schema