Λογότυπο Sqlite

Sqlite

Κοινότητα
Lynricsy
sqlite

Designs and operates embedded SQLite database files, transactions, WAL, migrations and backups. Use when code opens a local .db or .sqlite file, a write hits SQLITE_BUSY or database is locked, a copied backup loses committed data, a table-rebuild migration breaks foreign keys, or EXPLAIN QUERY PLAN shows a scan.

Επισκόπηση

ΕκδότηςLynricsy
ΑποθετήριοHyperSkills
Όνομα δεξιότηταςsqlite
Αστέρια
26
Forks
0
Συνοδευτικά αρχεία
12
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • 12 συνοδευτικά αρχεία

    Σενάρια, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε από Lynricsy στο GitHub. Διαβάστε το πηγαίο περιεχόμενο πριν εγκαταστήσετε τη δεξιότητα.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Sqlite στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/Lynricsy/HyperSkills/tree/main/skills/sqlite
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Νέα δεξιότητα → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που διαβάζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Lynricsy/HyperSkills.git /tmp/HyperSkills
mkdir -p .claude/skills
cp -r /tmp/HyperSkills/skills/sqlite .claude/skills/sqlite
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Sqlite σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Sqlite μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Sqlite δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλα κατά τη συνομιλία

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

sqlite

Paths below are relative to this skill's directory.

Scope

Embedded SQLite's SQL semantics and database-file lifecycle: application-owned connections, concurrency, durable state, constraints, migrations and query plans. Keep the project's binding and migration runner; express the engine contract without introducing another wrapper or requiring a particular host language.

Not covered:

  • Cloudflare D1 bindings, Wrangler targets or remote migrations: use cloudflare.
  • Turso's engine extensions, replication and hosted service: use its own docs; sharing SQL syntax does not establish SQLite's file or locking semantics.
  • ORM transaction decorators, pool APIs or language-level resource management: use the applicable framework or language skill for those interfaces.
  • PostgreSQL administration: use postgres. Analysis methodology belongs to data-analysis, not to a database repair procedure.

Core rules

  1. Inspect sqlite_version() and sqlite_source_id() on the application's actual connection; a system CLI can link a different engine.
  2. Keep every transaction on one exclusively owned connection until commit or rollback; serialized individual calls do not isolate interleaved application transactions.
  3. Finish cursors, statements and incremental BLOB handles explicitly; an unfinished operation can keep a transaction or WAL snapshot alive.
  4. Treat WAL as concurrent readers plus one writer, not multiple writers; a larger write pool cannot increase simultaneous write ownership.
  5. Use atomic conditional SQL for a one-statement state transition, or BEGIN IMMEDIATE before reads for a short multi-statement write decision; a process-local mutex cannot protect other processes.
  6. Classify the extended error code and transaction phase before retrying; waiting for a lock cannot refresh an obsolete WAL snapshot.
  7. On SQLITE_BUSY_SNAPSHOT, end the transaction and recompute from a new snapshot; replaying only the failed write preserves a stale decision.
  8. Bound retry time and replay only database work whose effects are known; a transaction rollback cannot undo a sent message or completed external request.
  9. Enable and read back foreign keys on every connection outside a transaction; an in-transaction PRAGMA change silently does nothing.
  10. Separate persistent WAL configuration from connection-local enforcement and durability settings; copying PRAGMA recipes conceals which state survives reopen.
  11. Preserve database recovery files and let SQLite manage them; deleting a WAL or hot journal can discard the only committed or recoverable state.
  12. Back up a live database through SQLite, not sequential file copies; a structurally valid main file can still omit committed WAL data.
  13. Choose durability from the acknowledged-commit contract; WAL with synchronous=NORMAL can lose commits after power loss even while retaining consistency.
  14. Treat affinity as conversion preference, not validation; STRICT still allows lossless conversion and does not replace NOT NULL or domain checks.
  15. Make NULL policy explicit for CHECK, UNIQUE and non-rowid primary keys; those constraints do not all imply rejection of NULL.
  16. Rebuild schemas atomically with their dependencies and historical AUTOINCREMENT state; copying present rows alone does not preserve the database's contract.
  17. Run foreign-key and integrity checks before committing a rebuild, and consume their results; executing a check does not make returned violations fatal.
  18. Use native ALTER syntax supported by every deployed engine; SQLite 3.53.0 adds ALTER COLUMN SET/DROP NOT NULL and CHECK ADD/DROP CONSTRAINT, not arbitrary type alteration.
  19. Compare query behavior and measured work, not just index presence; a scan can be optimal and EXPLAIN QUERY PLAN text is not a stable machine interface.
  20. Reproduce destructive operations on an isolated representative copy; investigation permission is not permission to migrate, overwrite or stress a production file.

Workflows

diagnose-connection-or-locking

  • Read references/connections-and-transactions.md before changing retry or connection ownership. Record the binding, engine/source ID, file path, journal mode, transaction state and extended error code.
  • Draw the connection timeline: first read, competing commit, attempted write, commit and statement finalization. Include background workers, cursor consumers and backup/checkpoint connections.
  • Separate an engine lock from application queueing. A blocked event loop, pool checkout and an open SQLite transaction need different fixes.
  • Select the recovery boundary from the error and phase. For a stale snapshot, roll back the outer transaction and recompute; for writer acquisition, wait within the request deadline without holding old reads.
  • Keep external effects outside the retry body. If a request may already have committed, resolve its identity instead of blindly replaying it.
  • Exercise the same contention order on a scratch file through independent connections; do not change the schedule merely to make an error disappear.
  • Gate — recovered decision: observe the final database invariant, latest committed competing state, bounded completion and no duplicated external effect, not merely absence of a lock exception.

configure-embedded-storage

  • Inventory every connection entry point, including imports and maintenance. Read references/connections-and-transactions.md for initialization and references/wal-backup-and-recovery.md before selecting WAL or durability.
  • Establish the file identity and storage topology. Keep ordinary WAL access on one host with a supported local filesystem and locking/VFS behavior.
  • Apply persistent journal configuration in a coordinated bootstrap step; inspect the returned mode. Do not race a mode switch on every request.
  • Set connection-local foreign-key enforcement, busy policy and synchronous policy outside transactions; read back meaningful settings.
  • Assign a transaction owner and deterministic release paths. Permit independent read connections without promising parallel writes.
  • Identify the longest read and write transactions before changing checkpoint thresholds or adding a dedicated checkpoint worker.
  • Gate — reopened contract: on a scratch database, reopen through each real connection path and demonstrate enforcement, expected journal mode and complete resource release. State the power-loss durability choice.

backup-and-restore

  • Read references/wal-backup-and-recovery.md. Identify source, destination, active writers, recovery files, restore isolation and required freshness.
  • Create a new staging backup using the Online Backup API. Use VACUUM INTO instead only when a compact rewritten snapshot is the desired artifact.
  • Require successful completion and resource closure before publishing the backup. Never publish a partial destination under the latest-backup name.
  • Restore into a separate directory, away from the source's WAL and journals; open with a compatible engine and enable foreign keys on the restore reader.
  • Check structural integrity, foreign keys and selected application facts known to be committed before the backup began. Document the snapshot's freshness boundary rather than promising the last concurrent write.
  • Gate — usable restore: consume PRAGMA integrity_check and PRAGMA foreign_key_check results and query required records and schema version in the restored file. A lone ok does not prove completeness.

change-schema-or-import

  • Read references/types-and-migrations.md before issuing DDL or importing values. Record all supported engine versions and the target constraints.
  • Inspect source values with typeof() and representative boundary queries; distinguish an accepted conversion from forbidden truncation or coercion.
  • Choose a supported native ALTER when sufficient. For a rebuild, enumerate incoming foreign keys, indexes, triggers, views, generated columns, table options and historical identity state before dropping anything.
  • Keep data copy, dependency recreation, checks and the existing migration version marker in one explicit transaction on a dedicated connection.
  • If rebuilding a referenced table requires FK enforcement off, change it outside the transaction, restore it afterward on success and failure, and never publish with checks failing or enforcement accidentally disabled.
  • Reject bad data with identifying evidence; do not hide it with OR IGNORE, OR REPLACE, casts or silent row deletion unless that policy is requested.
  • Gate — atomic consumer contract: on a scratch copy, exercise valid and independently invalid writes, dependent views/triggers and identity issuance; on failure verify rows, schema, dependencies, sequence and version unchanged.

tune-query

  • Read references/query-plans-and-indexes.md. Capture SQL, bound value types, representative cardinalities, schema/index definitions and engine version.
  • Inspect EXPLAIN QUERY PLAN for visited loops, search terms, covering access and temporary sorting. Time the query separately with equivalent results.
  • Change the smallest relevant index or predicate; retain NULL, collation and ordering semantics. Include write and storage cost in the tradeoff.
  • Refresh planner statistics according to the project's policy, then measure again with representative selective and unselective bindings.
  • Gate — useful plan change: report equivalent results plus measured latency or visited work before/after. An index appearing in a plan alone does not establish an improvement.

Topic router

TopicRead whenFile
Connection ownership, transaction phases, BUSY recoveryA connection leaks, a write races, or retry/transaction code changesreferences/connections-and-transactions.md
WAL state, checkpoint progress, durability, consistent backup and restoreSelecting journal mode, seeing WAL growth, copying or recovering database filesreferences/wal-backup-and-recovery.md
Affinity, STRICT, FK/NULL policy, native ALTER and table rebuildsImport accepts bad data, constraints change, or migration touches schema dependenciesreferences/types-and-migrations.md
Index shape, expression matching, planner statistics and observed workA query slows down or an index/EXPLAIN plan is being changedreferences/query-plans-and-indexes.md

Output format

For a review or incident report, use this sensible default; adapt to the task. Group findings by file or connection entry point.

text
path:line — observed defect and consumer-visible consequence
Engine: runtime version/source ID; journal mode; relevant connection settings
Evidence: error code + transaction phase, violated row, or measured query work
Before -> after: ownership, SQL or operation order being changed
Safety boundary: scratch/source/restore path; rollback and publication conditions
Verification: exact exercised case and resulting invariant; untested limits

For a migration or restore, also name the preserved schema objects, identity state, version marker and the check results that permit publication. Distinguish observed evidence from a proposed operational procedure.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Sqlite;

Designs and operates embedded SQLite database files, transactions, WAL, migrations and backups. Use when code opens a local .db or .sqlite file, a write hits SQLITE_BUSY or database is locked, a copied backup loses committed data, a table-rebuild migration breaks foreign keys, or EXPLAIN QUERY PLAN shows a scan.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Sqlite στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Sqlite είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη Sqlite στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε το https://github.com/Lynricsy/HyperSkills/tree/main/skills/sqlite. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Sqlite;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη Sqlite;

Με όσα θέλετε. Εφόσον ένα μοντέλο υποστηρίζει δεξιότητες, μπορείτε να χρησιμοποιήσετε τη Sqlite με αυτό — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama και άλλα — όλα στο TypingMind με τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Sqlite;

Ναι. Δημοσιεύεται στο GitHub από τον χρήστη Lynricsy με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇