SQLCipher Encrypted Database Expert

SQLCipher Encrypted Database Expert is a skill for Claude Code, Codex from martinholovsky/claude-skills-generator. It costs 33 tokens per session (4,056 once invoked), scanned A, original, Unlicense.

A specialist guide for SQLCipher, a version of SQLite that encrypts database files, covering keys, migrations, backups, and secure data handling.

In plain words
What is it for?
Use it when setting up encryption, rotating keys, migrating SQLite databases, tuning encrypted databases, planning backups, or assessing risks from a compromised key.
Why use it?
It helps avoid mistakes that could expose encrypted data or make key management and database upgrades unsafe.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/martinholovsky/claude-skills-generator/sqlcipher
Any agent
npx skills add martinholovsky/claude-skills-generator --skill sqlcipher
Clone the repo
git clone --depth 1 https://github.com/martinholovsky/claude-skills-generator

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for SQLCipher Encrypted Database Expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/martinholovsky/claude-skills-generator/sqlcipher.svg)](https://agentmods.dev/skills/martinholovsky/claude-skills-generator/sqlcipher)
Your own site
<a href="https://agentmods.dev/skills/martinholovsky/claude-skills-generator/sqlcipher"><img src="https://agentmods.dev/badge/skills/martinholovsky/claude-skills-generator/sqlcipher.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,056 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00033 $0.04056
Opus 5 $0.00016 $0.02028
Sonnet 5 $0.00007 $0.00811
Haiku 4.5 $0.00003 $0.00406

Measured 4d ago against content hash 0f3fbb7e96a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

SQLCipher Encrypted Database Expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sqlcipher/SKILL.md · 496 lines

How it starts

The opening of the file, as written. The whole thing — 496 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SQLCipher Encrypted Database Expert

0. Mandatory Reading Protocol

CRITICAL: Before implementing encryption operations, read the relevant reference files:

Trigger Reference File
First-time encryption setup, key derivation, memory handling references/security-examples.md
SQLite migration, custom PRAGMAs, performance tuning, backups references/advanced-patterns.md
Security architecture, threat assessment, key compromise planning references/threat-model.md

1. Overview

Risk Level: HIGH

Justification: SQLCipher handles encryption of sensitive data at rest. Improper key management can lead to data exposure, weak key derivation enables brute-force attacks, and cryptographic misconfigurations can completely compromise security guarantees.

You are an expert in SQLCipher encrypted database development, specializing in:

  • Encryption key management with secure derivation and storage
  • Key rotation without data loss or downtime
  • Cryptographic best practices for AES-256 configuration
  • Secure memory handling to prevent key exposure
  • Migration strategies from plain SQLite to encrypted databases

Primary Use Cases

  • Encrypted local storage for sensitive user data
  • HIPAA/GDPR compliant data storage
  • Secure credential and secret management
  • Privacy-focused applications

2. Core Principles

2.1 Development Principles

  1. TDD First - Write tests before implementation for all encryption operations
  2. Performance Aware - Optimize cipher configuration and page sizes for efficiency
  3. Use strong key derivation - PBKDF2 with high iteration counts (256000+)
  4. Never hardcode encryption keys - Derive from user input or secure storage
  5. Secure memory handling - Zero out keys after use
  6. Implement key rotation - Plan for compromised keys
  7. Monitor dependencies - Track OpenSSL and SQLite CVEs

2.2 Data Protection Principles

  1. Encryption at rest with AES-256-CBC
  2. HMAC verification for integrity checking
  3. Secure key storage using OS keychain/credential manager
  4. Backup encryption with independent keys
  5. Secure deletion with PRAGMA secure_delete

Read the full file on GitHub · 496 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 496 lines · 33 tokens per session scan A 0f3fbb7e96a3

Subscribe to this mod's changes

SQLCipher Encrypted Database Expert is a skill published in the GitHub repository martinholovsky/claude-skills-generator (45 stars, last pushed 9mo ago), licensed Unlicense. It adds 33 tokens to every session and 4,056 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

frontmcp-config

Use when configuring a FrontMCP server through frontmcp.config or the @FrontMcp options. Covers auth modes (public, transparent, local, remote), OAuth plus credential vault and secureStore, CORS, HTTP port / entry-path prefix / unix socket, security headers (CSP, HSTS, X-Frame-Options, X-Content-Type-Options), rate…

agentfront/frontmcp · 187 tokens

memory-layer

Standalone persistent memory for Pi — smart search, symbol clustering, dedup, auto-recovery, trust scoring. Zero Python dependency.

GeneGulanesJr/LaPis · 29 tokens

brainctl

Unified agent memory CLI — read, write, search, and maintain the shared memory spine (brain.db). Use for persistent cross-session memory, knowledge graph, event logging, decisions, affect tracking, and consolidation.

TSchonleber/brainctl · 45 tokens

frontmcp-setup

Use when starting, scaffolding, or organizing a FrontMCP project. Covers creating a new project (CLI scaffold or manual) for Node, Vercel, and other targets; standalone versus Nx-monorepo layout, naming conventions, generators, and dependency rules; composing multiple @App classes, ESM packages, and remote MCP servers…

agentfront/frontmcp · 176 tokens

quicken

Read and analyze a user's local Quicken for Mac data through its Core Data SQLite database in strict read-only mode. Use when the user explicitly asks to inspect or answer questions from a Quicken for Mac file, including accounts, balances, freshness, net worth, transactions, payees, spending, cash flow, budgets…

dweekly/quicken-mac-mcp · 94 tokens

database-query

当用户要连接外部数据库(SQLite / MySQL / PostgreSQL)编写 SQL、查询数据、导出结果或分析库表结构时使用。.

ntygod/ZhiWei · 37 tokens