agentsclimarketplace

Database toolset general

Skill filmicgaze/MiChat-desktop/profiles/_global/skills/database-toolset-general

Windows desktop chat client for profile-based agents with gated local tools and skills.

Install
npx -y skills add filmicgaze/MiChat-desktop --skill database-toolset-general

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use this when you need to work with MiChat’s profile-scoped SQLite database tools (create/inspect/migrate/query/update/backup).

SKILL.md

3.5 KB, 796 tokens by cl100k_base, as published. Nobody here has run it

When to use this skill

Use this skill whenever you’re about to do real work with MiChat’s database toolset (create/inspect/migrate/query/update/backup).

Default stance: one DB per profile (multiple tables). Create a second DB only for scratch/import/staging workflows or a clear separation reason.

Practical workflow (the safe default)

  1. Discover / pick DB
  • If unsure what exists, list DBs.
  • Otherwise default to a single main DB name (e.g. personal).
  1. Ensure it exists
  • If a DB might not exist yet, ensure it with create enabled.
  1. Inspect before changing
  • Use schema inspection to understand the current tables/columns.
  1. Back up before risky changes
  • Before DDL or destructive edits, take a backup with a short label.
  1. Migrate/seed in a batch
  • Prefer batched execution in a transaction for migrations and small seed data.
  • Keep batches short and readable.
  1. Verify
  • Re-check schema and run small verification SELECTs.

Tips and gotchas

1) SELECT vs non-SELECT routing

  • SELECT/CTE belongs in the query tool; using the execute tool for SELECT will be rejected.

2) Paging and hard caps

  • Query results are paged with an offset:<n> cursor.
  • Even if you request a huge max_rows, results are hard-capped (practically: 200 rows/page). Use next_cursor to continue.
  • For stable paging, include an ORDER BY.

3) db_execute_many failure semantics (choose intentionally)

  • Atomic default: transaction=true, stop_on_error=true.
    • If any statement fails, you get an error envelope only (no partial results list).
    • Error details include failed_index, sql_preview, and sqlite error codes/names.
  • If you need partial progress / diagnostics:
    • use transaction=false.
    • stop_on_error=true stops at first error and returns results up to the failure.
    • stop_on_error=false continues and returns per-statement errors; overall ok=false if any failed.
  • Rule: when transaction=true, stop_on_error must be true.

4) RETURNING is for small results

  • Statements with RETURNING cap returned rows (e.g. 50 per statement in batched execution).
  • If you need lots of rows back, prefer:
    1. write changes without relying on a large RETURNING payload, then
    2. fetch what you need with a paged SELECT.

5) Debugging a failed batch quickly

  • Use the batch error’s failed_index + sql_preview to pinpoint the failing statement.
  • If the failure looks like a schema mismatch, re-run schema inspection (full detail if available).

Recommended conventions (lightweight)

  • Use params (positional/named) instead of interpolating values into SQL.
  • Prefer idempotent DDL where possible (e.g., IF NOT EXISTS).
  • Use consistent timestamps (e.g., datetime('now')).
  • Start with minimal indexes; add them when queries become slow or frequent.

Optional: scratch/import staging DB (second DB)

Use a second DB only when it makes your workflow simpler:

  • messy imports
  • dedup/normalization staging
  • experimental schema work Then copy cleaned data into the main DB and discard/ignore the scratch DB.

Troubleshooting checklist

  • not found: ensure DB exists (create enabled)
  • paging confusion: add ORDER BY; follow next_cursor
  • batch failure: check failed_index and the sqlite error; consider rerun with transaction=false for more visibility

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Gives 0 of the 12 instructions most databases sql skills give in 796 tokens

Counted across 589 of the 662 authors here whose files we hold, read 2026-08-07

  • Use parameterized queriesin 37 of 589, across 34 files
  • Use timestamptz for timestampsin 30 of 589, across 14 files
  • Index foreign keysin 29 of 589, across 18 files
  • Create indexes concurrentlyin 29 of 589, across 24 files
  • Use numeric type for moneyin 25 of 589, across 8 files
  • Use cursor pagination instead of offsetin 24 of 589, across 17 files
  • Select only required columnsin 24 of 589, across 20 files
  • Add indexes manually on foreign key columnsin 22 of 589, across 12 files
  • Normalize to third normal formin 19 of 589, across 10 files
  • Configure connection poolingin 19 of 589, across 17 files
  • Put equality columns before range columns in indexesin 18 of 589, across 10 files
  • Read individual rule files for detailed explanationsin 18 of 589, across 4 files

Said here and by no other author read

  • maintain one database per profile by default
  • list databases if unsure what exists
  • take a backup before destructive edits
  • run migrations in short readable batches
  • verify schema and run small selects after changes
  • route select statements to the query tool

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 327,069. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.