tidbx-kysely

Installation
SKILL.md

TiDB Cloud + Kysely

Use this skill when a user wants to connect Kysely to TiDB Cloud (TiDB X). Default to standard TCP (Node server/runtime). Only use the TiDB Cloud serverless driver over HTTP for serverless or edge runtimes.

Workflow

  1. Confirm runtime and deployment target (Node server vs serverless/edge).
  2. Confirm cluster type. The serverless HTTP driver applies to Starter/Essential clusters.
  3. Collect connection info (prefer a mysql:// URL in DATABASE_URL).
  4. Choose the path:
    • Normal usage (default): TCP + mysql2 pool + Kysely MysqlDialect.
    • Serverless/edge: @tidbcloud/kysely dialect over HTTP.
  5. Show only the matching snippet first. Include the other path only if the user asks. Use references/kysely-usage.md for full examples.

Normal usage (default)

Related skills

More from pingcap/agent-rules

Installs
17
GitHub Stars
24
First Seen
Jan 27, 2026