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.
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.
curl -O https://raw.githubusercontent.com/SRombauts/SQLiteCpp/master/.claude/skills/sqlitecpp-testing-practices/SKILL.mdgit clone --depth 1 https://github.com/SRombauts/SQLiteCppWrote 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.
[](https://agentmods.dev/skills/srombauts/sqlitecpp/sqlitecpp-testing-practices)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
What it actually says
SQLiteCpp Testing Practices
Scope
- Uses GoogleTest (system if found, otherwise
googletest/fallback). - Test files live in
tests/*_test.cpp(seetests/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.txtunderSQLITECPP_TESTS. - Register it in
meson.buildundersqlitecpp_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; useTEST_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
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.
- 2mo ago First seen · 60 lines · 21 tokens per session scan A ecf54099d33f
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.
sqlitecpp-testing-practices compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sqlitecpp-testing-practicesSRombauts/SQLiteCpp | Skill | 2.8k | 13d ago | MIT | A | 21 | Claude Code |
| test-masterJeffallan/claude-skills | Skill | 12k | 7d ago | MIT | A | 104 | Claude Code |
| migrate-xunit-to-xunit-v3dotnet/skills | Skill | 5.8k | yesterday | MIT | A | 149 | Claude Code |
| go-testingGentleman-Programming/gentle-ai | Skill | 8.4k | yesterday | MIT | A | 26 | Claude Code, Codex |
| principle-test-behavior-not-implementationmichael-denyer/pstack-claude | Skill | 4.1k | yesterday | MIT | A | 50 | Claude Code |
| dart-testdartsim/dart | Skill | 1.2k | yesterday | BSD-2-Clause | A | 18 | Claude Code, Codex |
| test-generatorrshankras/claude-code-apple-skills | Skill | 864 | 2d ago | MIT | A | 33 | Claude Code |