Agent skill

DB Infra Mocks

by pilinux in pilinux/gorest

Propose minimal seams and local substitutes so tests run without real RDBMS/Redis/Mongo infrastructure.

MITAuto-check passedDatabases

Install DB Infra Mocks

skills CLI
$ npx skills add pilinux/gorest --skill db-infra-mocks -a claude-code

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

GitHub CLI
$ gh skill install pilinux/gorest db-infra-mocks --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/pilinux/gorest.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/db-infra-mocks .claude/skills/db-infra-mocks && 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
db-infra-mocks
GitHub stars
506
Token cost
~439 tokens
SKILL.md length
176 words
Files
1
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

Propose minimal seams and local substitutes so tests run without real RDBMS/Redis/Mongo infrastructure.

  • Tasks that involve NoSQL databases
  • SKILL.md covers When to Use, Responsibilities, Rules and Project-Specific Details, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

DB Infra Mocks is an agent skill from pilinux/gorest. Propose minimal seams and local substitutes so tests run without real RDBMS/Redis/Mongo infrastructure.

Its SKILL.md is about 440 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering NoSQL databases. It works with Redis and MongoDB. The repository describes itself as: Go RESTful API starter kit with Gin, JWT, GORM (MySQL, PostgreSQL, SQLite), Redis, Mongo, 2FA, email verification, password recovery. The licence is MIT.

When your agent uses it

  • Tasks that involve NoSQL databases

Example prompts

  • “/db-infra-mocks”

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    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.

Context cost

DB Infra Mocks loads about 439 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 176 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~439

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 passed

The automated check found no risky patterns in SKILL.md.

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from pilinux/gorest at commit 38aab64, republished under its MIT licence (© pilinux). 176 words, ~439 tokens.

Download SKILL.mdSave it as .claude/skills/db-infra-mocks/SKILL.md (or your agent's skills folder).
name
db-infra-mocks
description
Propose minimal seams and local substitutes so tests run without real RDBMS/Redis/Mongo infrastructure.
license
MIT
metadata.mode
design
metadata.purpose
infra

DB Infrastructure Mocks

When to Use

  • Integration dependencies (RDBMS, Redis, MongoDB) prevent running tests or local development and you need safe, testable alternatives.

Responsibilities

  • Locate where clients and connections are constructed and consumed (database/ package).
  • Propose interface-based seams and minimal mock implementations.
  • Provide migration path and verification steps so production behavior remains unchanged.

Rules

  • Prefer small interfaces and constructor injection over large refactors.
  • Make tests deterministic and avoid network calls.
  • Provide unit and integration verification steps for any change.

Project-Specific Details

  • RDBMS connections: gdb.InitDB() / gdb.GetDB() (GORM *gorm.DB).
  • Redis connections: gdb.InitRedis() / gdb.GetRedis() (radix v4 radix.Client).
  • MongoDB connections: gdb.InitMongo() / gdb.GetMongo() (*mongo.Client from official driver v2).
  • Close all: gdb.CloseAllDB().
  • RDBMS: Use SQLite in-memory (driver: "sqlite3") for simple GORM-backed tests.
  • Redis: Use a radix v4 compatible mock or inject an interface wrapper around radix.Client.
  • MongoDB: Inject a mock repository interface or use a local test MongoDB instance.

Output

  • Dependency map with path:line of client construction and usage.
  • Recommended seam (interface signature) and where to inject it.
  • Example mock/test code snippet and verification commands.
  • test-runner, patch-applier, migration-helper

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

Files

Just SKILL.md in .agents/skills/db-infra-mocks of pilinux/gorest.

Open the folder on GitHubat commit 38aab64

Compare with similar skills

DB Infra Mocks 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.

DB Infra Mocks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
DB Infra Mocks this skillpilinux/gorest506—~439Automated safety check: PassMIT
Database Domain Specialistmodu-ai/moai-adk1.2k—~2.8kAutomated safety check: PassApache-2.0
Discover Databaserand/cc-polymath181—~2kAutomated safety check: PassMIT
Svc Databases0ld13rr/pentestcode828—~379Automated safety check: PassMIT
Railway Databasedavila7/claude-code-templates33k—~1.9kAutomated safety check: PassMIT
Hunt Nosqlisickn33/agentic-awesome-skills47k1 repos~2kAutomated safety check: PassMIT

Similar skills

  • Database guidance for PostgreSQL, MongoDB, Redis and Oracle plus Neon, Supabase and Firestore: schema design, indexing, query tuning and cloud database choice.

    1.2k GitHub stars~2.8k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Discover Database

    rand/cc-polymath

    Automatically discover database skills when working with SQL, PostgreSQL, MongoDB, Redis, database schema design, query optimization, migrations, connection pooling, ORMs, or database selection.

    181 GitHub stars~2k tokensUpdated 7 mo ago
    DatabasesAuto-check passed
  • Svc Database

    s0ld13rr/pentestcode

    Database RCE paths — UDF, xpcmdshell, COPY TO PROGRAM, Redis key write.

    828 GitHub stars~379 tokensUpdated 8 days ago
    DatabasesAuto-check passed
  • Railway Database

    davila7/claude-code-templates

    Add official Railway database services (Postgres, Redis, MySQL, MongoDB).

    33k GitHub stars~1.9k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Hunt Nosqli

    sickn33/agentic-awesome-skills

    Hunt NoSQL Injection

    47k GitHub starsUsed in 1 repo~2k tokens
    DatabasesAuto-check passed
  • Use Sealos

    hashgraph-online/awesome-codex-plugins

    Deploy and operate apps on Sealos Cloud: sign in to a Sealos account, deploy any project or self-hosted app (from the template store, an official Docker image, or project source code), provision…

    1.3k GitHub stars~2.2k tokensUpdated yesterday
    DatabasesAuto-check passed

More from pilinux/gorest

All 20 skills in this repo
  • Config Loader Helper

    pilinux/gorest

    Diagnoses configuration failures in the gorest project by listing the required environment variables grouped by feature and giving minimal commands for a safe local test setup.

    506 GitHub stars~441 tokensUpdated 15 days ago
    Auto-check passed
  • Enumerates Go declarations and signatures from the syntax tree, then proposes small, mechanically safe refactors with file and line citations.

    506 GitHub stars~414 tokensUpdated 15 days ago
    Auto-check passed
  • Local Build and Run

    pilinux/gorest

    Builds and runs a Go project locally to reproduce compile or runtime problems safely, using test environment variables and mocks instead of production credentials.

    506 GitHub stars~362 tokensUpdated 15 days ago
    Auto-check passed
  • Code Navigation

    pilinux/gorest

    Rapid, focused navigation to locate definitions/usages and map the impact of proposed changes.

    506 GitHub stars~354 tokensUpdated 15 days ago
    Auto-check passed
  • Cited Code Explainer

    pilinux/gorest

    Explains how a module behaves in a few short, read-only sections, with a path-and-line citation behind every non-trivial claim.

    506 GitHub stars~244 tokensUpdated 15 days ago
    Auto-check passed
  • Cited File Reader

    pilinux/gorest

    Reads only the lines needed from a source file and answers with a short summary and path:line citations, without changing anything.

    506 GitHub stars~250 tokensUpdated 15 days ago
    Auto-check passed

Works with

Categories

Questions about DB Infra Mocks

What does DB Infra Mocks do?

Propose minimal seams and local substitutes so tests run without real RDBMS/Redis/Mongo infrastructure. DB Infra Mocks is an agent skill from pilinux/gorest. Propose minimal seams and local substitutes so tests run without real RDBMS/Redis/Mongo infrastructure.

When should I use DB Infra Mocks?

DB Infra Mocks fits situations like: tasks that involve NoSQL databases.

How do I install DB Infra Mocks in Claude Code?

Run `npx skills add pilinux/gorest --skill db-infra-mocks -a claude-code`. Or copy the skill folder (.agents/skills/db-infra-mocks in pilinux/gorest) into .claude/skills/db-infra-mocks in your project. Claude Code loads it when a task matches its description.

How do I install DB Infra Mocks in Codex?

Run `npx skills add pilinux/gorest --skill db-infra-mocks -a codex`. Or copy the skill folder (.agents/skills/db-infra-mocks in pilinux/gorest) into .agents/skills/db-infra-mocks in your project. Codex loads it when a task matches its description.

Can I use DB Infra Mocks 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 pilinux/gorest --skill db-infra-mocks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/db-infra-mocks, .gemini/skills/db-infra-mocks, .github/skills/db-infra-mocks and .opencode/skills/db-infra-mocks in your project.

What does DB Infra Mocks need to run?

SKILL.md names no scripts, command-line tools or credentials: DB Infra Mocks is instructions for the agent only.

Does DB Infra Mocks 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 DB Infra Mocks safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does DB Infra Mocks use?

DB Infra Mocks 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 DB Infra Mocks use?

About 439 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to DB Infra Mocks?

Skills that share tags, products or a category with DB Infra Mocks: Database Domain Specialist (modu-ai/moai-adk, 1.2k stars), Discover Database (rand/cc-polymath, 181 stars), Svc Database (s0ld13rr/pentestcode, 828 stars) and Railway Database (davila7/claude-code-templates, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains DB Infra Mocks?

pilinux (a GitHub user) maintains it in pilinux/gorest, which has 506 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on September 25, 2026.

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