SQLiteCpp: Skill for Claude Code

.claude/skills/sqlitecpp-testing-practices/SKILL.md

sqlitecpp-testing-practices is a skill for Claude Code from SRombauts/SQLiteCpp. It costs 21 tokens per session (455 once invoked), scanned A, original, MIT.

A collection of GoogleTest patterns for testing SQLiteCpp, the C++ interface for SQLite databases. It describes test layout, in-memory databases, build registration, and test commands.

In plain words
What is it for?
Use it when adding or organizing SQLiteCpp tests, choosing between in-memory and file databases, registering tests with CMake or Meson, and running the test suite.
Why use it?
It makes SQLiteCpp tests follow a consistent structure and ensures new test files are included in the project's build systems.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is SRombauts/SQLiteCpp's own configuration. It tells Claude Code how to work on SQLiteCpp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything SQLiteCpp configures →

About the project

SQLiteC++ is a C++ wrapper around SQLite's native C interface, providing classes for working with SQLite databases. It is used by C++ developers who want a lightweight interface with standard library types, exceptions, and resource management. The catalogue entries provide skills for working with the library.

SRombauts/SQLiteCpp · 2,807 stars · on GitHub · srombauts.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to SRombauts/SQLiteCpp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SRombauts/SQLiteCpp/master/.claude/skills/sqlitecpp-testing-practices/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/SRombauts/SQLiteCpp

Made for: Claude Code.

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 sqlitecpp-testing-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/srombauts/sqlitecpp/sqlitecpp-testing-practices/github.svg)](https://agentmods.dev/skills/srombauts/sqlitecpp/sqlitecpp-testing-practices)
Your own site
<a href="https://agentmods.dev/skills/srombauts/sqlitecpp/sqlitecpp-testing-practices"><img src="https://agentmods.dev/badge/skills/srombauts/sqlitecpp/sqlitecpp-testing-practices/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sqlitecpp-testing-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/srombauts/sqlitecpp/sqlitecpp-testing-practices"><img src="https://agentmods.dev/badge/skills/srombauts/sqlitecpp/sqlitecpp-testing-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 455 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00021 $0.00455
Opus 5.5 $0.00008 $0.00182
Sonnet 5.5 $0.00004 $0.00091
Haiku 4.5 $0.00002 $0.00046

Measured 2mo ago against content hash ecf54099d33f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sqlitecpp-testing-practices 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 2mo 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.

.claude/skills/sqlitecpp-testing-practices/SKILL.md · 60 lines

What it actually says

SQLiteCpp Testing Practices

Scope

  • Uses GoogleTest (system if found, otherwise googletest/ fallback).
  • Test files live in tests/*_test.cpp (see tests/Database_test.cpp).
  • File headers use @ingroup tests.

Test File Structure

#include <gtest/gtest.h>
#include <SQLiteCpp/Database.h>

TEST(DatabaseTest, CanOpenReadWriteDatabase)
{
    // Arrange: setup test database
    SQLite::Database db(":memory:", SQLite::OPEN_READWRITE | SQLite::OPEN_CREATE);

    // Act: perform operation
    db.exec("CREATE TABLE test (id INTEGER PRIMARY KEY)");

    // Assert: verify behavior
    EXPECT_EQ(1, db.exec("INSERT INTO test DEFAULT VALUES"));
}

Adding a New Test File

  • Create tests/NewClass_test.cpp.
  • Register it in CMakeLists.txt under SQLITECPP_TESTS.
  • Register it in meson.build under sqlitecpp_test_srcs.

Common Patterns

  • Prefer :memory: databases when possible.
  • Use file-based databases when testing file I/O behavior (see tests/Database_test.cpp).
  • Use TEST() for independent tests; use TEST_F() only when a shared fixture is needed.

Running Tests

# CMake (from build dir)
ctest --output-on-failure
bin/SQLiteCpp_tests --gtest_filter=Database.*

# Meson
meson test -C builddir
meson test -C builddir --test-args="--gtest_filter=Database.*"

Canonical References

  • Test style: tests/Database_test.cpp
  • CMake test list: CMakeLists.txt (SQLITECPP_TESTS)
  • Meson test list: meson.build (sqlitecpp_test_srcs)

Cross-References

  • Workflow checklist: sqlitecpp-workflow
  • Build configuration: sqlitecpp-build-cmake, sqlitecpp-build-meson
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. 2mo ago First seen · 60 lines · 21 tokens per session scan A ecf54099d33f

Subscribe to this mod's changes

sqlitecpp-testing-practices is a skill published in the GitHub repository SRombauts/SQLiteCpp (2,807 stars, last pushed 13d ago), licensed MIT. It adds 21 tokens to every session and 455 once invoked, about $0.0001 per session on Opus 5.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

sqlitecpp-testing-practices compared with skills from other repositories

sqlitecpp-testing-practices next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sqlitecpp-testing-practicesSRombauts/SQLiteCppSkill2.8k13d agoMITA21Claude Code
test-masterJeffallan/claude-skillsSkill12k7d agoMITA104Claude Code
migrate-xunit-to-xunit-v3dotnet/skillsSkill5.8kyesterdayMITA149Claude Code
go-testingGentleman-Programming/gentle-aiSkill8.4kyesterdayMITA26Claude Code, Codex
principle-test-behavior-not-implementationmichael-denyer/pstack-claudeSkill4.1kyesterdayMITA50Claude Code
dart-testdartsim/dartSkill1.2kyesterdayBSD-2-ClauseA18Claude Code, Codex
test-generatorrshankras/claude-code-apple-skillsSkill8642d agoMITA33Claude Code