sqlite
Skill0 starsChanged 21 days agoMITView on GitHub
Query, change, and back up a local SQLite database with the sqlite3 CLI. Use when the data already lives in a .db file.
- Installs packages
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Create a database, add a table, and read it back.
- Distinctive: line 62
When a value is not a literal you typed, bind it from Python:
- Distinctive: line 73
Run an untrusted SQL script with the safe mode so it cannot shell out or load extensions:
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SQLite
Work on a local SQLite database file. The sqlite3 CLI is enough for inspection, one-off queries, and backups. Use Python's stdlib sqlite3 when a value comes from outside the command you typed.
When to use
The user has a .db file, or they want a small single-file database for notes, logs, or agent state. This skill covers that file. It does not cover a client/server database.
Install
sqlite3 is often already on the machine. Check, then install the package only if the command is missing.
sqlite3 -version# Debian / Ubuntu
sudo apt-get install sqlite3
# macOS already ships sqlite3. Homebrew installs a newer build:
brew install sqlitePython needs no extra package. import sqlite3 is in the standard library.
Commands
Create a database, add a table, and read it back. -json prints rows an agent can parse.
sqlite3 notes.db "CREATE TABLE notes (id INTEGER PRIMARY KEY, body TEXT NOT NULL);"
sqlite3 notes.db "INSERT INTO notes (body) VALUES ('hello');"
sqlite3 -json notes.db "SELECT id, body FROM notes;"See what is in the file:
sqlite3 notes.db ".tables"
sqlite3 notes.db ".schema"Turn foreign keys on for a session, then check them. SQLite leaves them off until you ask.
sqlite3 notes.db "PRAGMA foreign_keys = ON; PRAGMA foreign_keys;"Back up a live database with the CLI backup command, then confirm the copy. Copying the file with cp can catch a WAL database mid-write.
sqlite3 notes.db ".backup 'notes-backup.db'"
sqlite3 notes-backup.db "PRAGMA integrity_check;"When a value is not a literal you typed, bind it from Python:
import sqlite3
con = sqlite3.connect("notes.db")
con.execute("PRAGMA foreign_keys = ON")
row = con.execute("SELECT body FROM notes WHERE id = ?", (1,)).fetchone()
print(row[0])Run an untrusted SQL script with the safe mode so it cannot shell out or load extensions:
sqlite3 --safe notes.dbGotchas
PRAGMA foreign_keysdefaults to0. Set it on every connection that should enforce foreign keys.- A WAL database keeps
dbname-walanddbname-shmbeside the main file. Use.backupso those pages are included. INTEGER PRIMARY KEYis the rowid. Inserting without an id assigns one.- Build queries with
?placeholders. Concatenating text into SQL is how a value becomes a statement. integrity_checkprintsokwhen the copy is consistent.
Also on Honeypot — a free, open index of skills for AI agents: https://honeypot-e6c.pages.dev Image: Indexed on Honeypot
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- G1Joshi/Agent-Skills★ 15same name
- fatih-developer/fth-skills★ 7same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- llms-full.txtllms.txt
- llms.txtllms.txt
- agent-checkoutSkill
- coinbaseSkill
- context7Skill
- cronSkill
- cursorSkill
- discordSkill
- honeypotSkill
- image-optimizeSkill
- kalshiSkill
- oids-python-sdkSkill
- oidsSkill
- pdf-textSkill
- playwright-mcpSkill
- polymarketSkill
- robinhood-mcpSkill
- skill_creatorSkill
- the_odds_apiSkill
- webhooksSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

