SkillAgentSearch skills...

db

🔍 导出并模糊搜索 Telegram 聊天记录 | Export and fuzzy search your Telegram chat history

Install / Use

npx skills add groupultra/telegram-search

Installs into whichever agent you are using.

About this skill
📐

Cursor Rules

Cursor IDE rules (v2)

Quality Score

55/100

Supported Platforms

Cursor

globs: drizzle//*, sql//, packages/core/src/schemas/**/, packages/core/src/models/**/*

Database & Migrations

  • Role: Provide a consistent schema and migration history that works in both:
    • PostgreSQL with pgvector (server mode).
    • PGlite (browser-only mode).

Schema Definition

  • Treat the TypeScript schema in packages/core/src/schemas / models as the source of truth.
  • Ensure any schema change is reflected consistently in:
    • TS schema/models.
    • Generated Drizzle migrations under drizzle/.
    • Any raw SQL helpers under sql/ if present.
  • Prefer Drizzle's typed query APIs over raw SQL to keep Postgres and PGlite behavior aligned.

Migrations

  • Use drizzle-kit (pnpm run db:generate) to generate new migrations; avoid hand-writing large SQL files.
  • For production-safe changes:
    • Make migrations forward-only and additive when possible.
    • Avoid destructive operations without a clear, tested migration path.
  • If a generated migration needs manual tweaks:
    • Keep custom SQL focused and well-commented.
    • Verify both Postgres and PGlite behavior where applicable.

Performance & Indexing

  • For vector search:
    • Ensure vector dimensions match the configured embedding model.
    • Use pgvector indexes where needed, and make them explicit in migrations.
  • For analytical queries (stats, charts):
    • Prefer precalculated or indexed aggregates over complex ad‑hoc joins on hot paths.

Related Skills

View on GitHub
GitHub Stars0
CategoryData
Updated19d ago
Forks0

Security Score

80/100

Audited on Sep 1, 2026

1 medium1 low