Agent skill

Sqlite Ops

by aiskillstore in aiskillstore/marketplace

Patterns for SQLite databases in Python projects - state management, caching, and async operations.

MITAuto-check: notesDatabases

Install Sqlite Ops

skills CLI
$ npx skills add aiskillstore/marketplace --skill sqlite-ops -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aiskillstore/marketplace sqlite-ops --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aiskillstore/marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/0xdarkmatter/sqlite-ops .claude/skills/sqlite-ops && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sqlite-ops
GitHub stars
430
Used in
1 other repo
Token cost
~578 tokens
SKILL.md length
112 words
Files
7 (incl. scripts, references, assets)
Skills in repo
1,085
Repo updated
First seen
Licence
MIT

At a glance

Patterns for SQLite databases in Python projects - state management, caching, and async operations.

  • Database schema
  • SKILL.md covers Quick Connection, Context Manager Pattern, WAL Mode and Common Gotchas, plus 3 more sections
  • Calls sqlite3
  • Tasks that involve State management

What it does

Sqlite Ops is an agent skill from aiskillstore/marketplace. Patterns for SQLite databases in Python projects - state management, caching, and async operations. Triggers on: sqlite, sqlite3, aiosqlite, local database, database schema, migration, wal mode.

Its SKILL.md is about 580 tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts, reference files and assets (for example `references/async-patterns.md`, `references/migration-patterns.md` and `references/schema-patterns.md`). Compatibility notes: Requires Python 3.8+ with sqlite3 (standard library) or aiosqlite for async.

It sits in Databases, covering State management, Database schema design and Caching. It works with SQLite and Python. The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified. The licence is MIT.

When your agent uses it

  • Database schema
  • Tasks that involve State management
  • Tasks that involve Database schema design

Example prompts

  • “Use the sqlite-ops skill to pattern for SQLite databases in Python projects - state management, caching, and async operations”
  • “/sqlite-ops”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): Requires Python 3.8+ with sqlite3 (standard library) or aiosqlite for async.
  • Pre-approved tools (allowed-tools): Read, Write, Bash

What it can do on your machine

Read from SKILL.md and the folder at commit 4ac52da. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • sqlite3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Python 3.8+ with sqlite3 (standard library) or aiosqlite for async.

    From compatibility in the SKILL.md frontmatter.

Context cost

Sqlite Ops loads about 578 tokens when it runs, and up to ~6.4k if it reads all its reference files. Until then it costs about 51 tokens; SKILL.md has 112 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~578
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aiskillstore/marketplace at commit 4ac52da, republished under its MIT licence (© aiskillstore). 112 words, ~578 tokens.

Download SKILL.mdSave it as .claude/skills/sqlite-ops/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
sqlite-ops
description
Patterns for SQLite databases in Python projects - state management, caching, and async operations. Triggers on: sqlite, sqlite3, aiosqlite, local database, database schema, migration, wal mode.
allowed-tools
Read, Write, Bash
compatibility
Requires Python 3.8+ with sqlite3 (standard library) or aiosqlite for async.
license
MIT
metadata.author
claude-mods

SQLite Operations

Patterns for SQLite databases in Python projects.

Quick Connection

python
import sqlite3

def get_connection(db_path: str) -> sqlite3.Connection:
    conn = sqlite3.connect(db_path, check_same_thread=False)
    conn.row_factory = sqlite3.Row  # Dict-like access
    conn.execute("PRAGMA journal_mode=WAL")  # Better concurrency
    conn.execute("PRAGMA foreign_keys=ON")
    return conn

Context Manager Pattern

python
from contextlib import contextmanager

@contextmanager
def db_transaction(conn: sqlite3.Connection):
    try:
        yield conn
        conn.commit()
    except Exception:
        conn.rollback()
        raise

WAL Mode

Enable for concurrent read/write:

python
conn.execute("PRAGMA journal_mode=WAL")
ModeReadsWritesBest For
DELETE (default)Blocked during writeSingleSimple scripts
WALConcurrentSingleWeb apps, MCP servers

Common Gotchas

IssueSolution
"database is locked"Use WAL mode
Slow queriesAdd indexes, check EXPLAIN QUERY PLAN
Thread safetyUse check_same_thread=False
FK not enforcedRun PRAGMA foreign_keys=ON

CLI Quick Reference

bash
sqlite3 mydb.sqlite    # Open database
.tables                # Show tables
.schema items          # Show schema
.headers on && .mode csv && .output data.csv  # Export CSV
VACUUM;                # Reclaim space

When to Use

  • Local state/config storage
  • Caching layer
  • Event logging
  • MCP server persistence
  • Small to medium datasets

Additional Resources

For detailed patterns, load:

  • ./references/schema-patterns.md - State, cache, event, queue table designs
  • ./references/async-patterns.md - aiosqlite CRUD, batching, connection pools
  • ./references/migration-patterns.md - Version migrations, JSON handling

© aiskillstore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references, assets) in skills/0xdarkmatter/sqlite-ops of aiskillstore/marketplace.

  • SKILL.md
  • assets/.gitkeep
  • references/async-patterns.md
  • references/migration-patterns.md
  • references/schema-patterns.md
  • scripts/.gitkeep
  • skill-report.json

Open the folder on GitHubat commit 4ac52da

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in aiskillstore/marketplace, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Sqlite Ops next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sqlite Ops compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sqlite Ops this skillaiskillstore/marketplace4301 repos~578Automated safety check: NotesMIT
Apollo GraphqlKilo-Org/kilo-marketplace1891 repos~3.1kAutomated safety check: PassApache-2.0
Add Memory KindEverMind-AI/EverOS13k—~2.6kAutomated safety check: PassApache-2.0
Saleor Django Migration Rulessaleor/saleor23k—~1.6kAutomated safety check: PassBSD-3-Clause
Cursor BYOK Database Schemaleookun/cursor-byok3.2k—~1.3kAutomated safety check: PassMIT
Add Mpk Taskmirage-project/mirage2.5k—~4.5kAutomated safety check: PassApache-2.0

Similar skills

  • Apollo Graphql

    Kilo-Org/kilo-marketplace

    Guidelines for developing GraphQL APIs and React applications using Apollo Client for state management, data fetching, and caching

    189 GitHub starsUsed in 1 repo~3.1k tokens
    Backend & APIsAuto-check passed
  • Add Memory Kind

    EverMind-AI/EverOS

    Walks through adding a new persisted memory kind to EverOS: choose storage among Markdown, SQLite and LanceDB, pick a Markdown strategy, then wire schemas, repos and writers.

    13k GitHub stars~2.6k tokensUpdated today
    DatabasesAuto-check passed
  • Rules for writing Django migrations in Saleor that avoid long table locks and stay compatible with zero-downtime rolling deploys.

    23k GitHub stars~1.6k tokensUpdated today
    DatabasesAuto-check passed
  • Cursor BYOK Database Schema

    leookun/cursor-byok

    Guides SQLite schema changes in the Cursor BYOK server, keeping SQLx migrations, the Rust store, API contracts and fixtures aligned.

    3.2k GitHub stars~1.3k tokensUpdated 9 days ago
    DatabasesAuto-check passed
  • Add Mpk Task

    mirage-project/mirage

    Step-by-step guide for adding a new task implementation to Mirage Persistent Kernel (MPK).

    2.5k GitHub stars~4.5k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Inspects, queries and carefully modifies the MoviePilot SQLite or PostgreSQL database through a bundled script that reads connection settings itself, without needing the password in the prompt.

    12k GitHub stars~7.1k tokensUpdated today
    DatabasesAuto-check passed

More from aiskillstore/marketplace

All 1,085 skills in this repo
  • Code Stats

    aiskillstore/marketplace

    Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs).

    430 GitHub starsUsed in 2 repos~697 tokens
    Auto-check: notes
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~720 tokens
    Auto-check: notes
  • Doc Scanner

    aiskillstore/marketplace

    Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance.

    430 GitHub starsUsed in 1 repo~644 tokens
    Auto-check: notes
  • File Search

    aiskillstore/marketplace

    Modern file and content search using fd, ripgrep (rg), and fzf.

    430 GitHub starsUsed in 1 repo~598 tokens
    Auto-check: notes
  • Find Replace

    aiskillstore/marketplace

    Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

    430 GitHub starsUsed in 1 repo~527 tokens
    Auto-check: notes
  • Investigating Codebases

    aiskillstore/marketplace

    Automatically activated when user asks how something works, wants to understand unfamiliar code, needs to explore a new codebase, or asks questions like "where is X implemented?", "how does Y…

    430 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check: notes

Works with

Categories

Questions about Sqlite Ops

What does Sqlite Ops do?

Patterns for SQLite databases in Python projects - state management, caching, and async operations. Sqlite Ops is an agent skill from aiskillstore/marketplace. Patterns for SQLite databases in Python projects - state management, caching, and async operations.

When should I use Sqlite Ops?

Sqlite Ops fits situations like: database schema; tasks that involve State management; tasks that involve Database schema design.

How do I install Sqlite Ops in Claude Code?

Run `npx skills add aiskillstore/marketplace --skill sqlite-ops -a claude-code`. Or copy the skill folder (skills/0xdarkmatter/sqlite-ops in aiskillstore/marketplace) into .claude/skills/sqlite-ops in your project. Claude Code loads it when a task matches its description.

How do I install Sqlite Ops in Codex?

Run `npx skills add aiskillstore/marketplace --skill sqlite-ops -a codex`. Or copy the skill folder (skills/0xdarkmatter/sqlite-ops in aiskillstore/marketplace) into .agents/skills/sqlite-ops in your project. Codex loads it when a task matches its description.

Can I use Sqlite Ops in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aiskillstore/marketplace --skill sqlite-ops -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sqlite-ops, .gemini/skills/sqlite-ops, .github/skills/sqlite-ops and .opencode/skills/sqlite-ops in your project.

What does Sqlite Ops need to run?

Going by SKILL.md and its folder, Sqlite Ops needs the command-line tools its instructions call (sqlite3). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Bash. Compatibility (from SKILL.md): Requires Python 3.8+ with sqlite3 (standard library) or aiosqlite for async..

Does Sqlite Ops access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Sqlite Ops safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Sqlite Ops use?

Sqlite Ops is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sqlite Ops use?

About 578 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.8k tokens, read only when the agent opens those files.

What are the alternatives to Sqlite Ops?

Skills that share tags, products or a category with Sqlite Ops: Apollo Graphql (Kilo-Org/kilo-marketplace, 189 stars), Add Memory Kind (EverMind-AI/EverOS, 13k stars), Saleor Django Migration Rules (saleor/saleor, 23k stars) and Cursor BYOK Database Schema (leookun/cursor-byok, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sqlite Ops?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 430 GitHub stars. The repository holds 1,085 skills in this directory. The repository was last updated on October 7, 2026.

Source: aiskillstore/marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.