new-plugin

new-plugin is a skill for Claude Code, Codex from clidey/whodb. It costs 22 tokens per session (1,296 once invoked), scanned A, original, Apache-2.0.

A workflow for adding a new data source, such as a SQL database, NoSQL database, object store, or external API, to WhoDB.

In plain words
What is it for?
Use it to create database plugins or source connectors, register their type, and implement the operations WhoDB needs.
Why use it?
It gives each source a common interface instead of requiring separate GraphQL code for every database or service.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cd core && go build ./cmd/whodb && go test ./src/sourcecatalog/... && ./lint.sh.

Good fit Use it to create database plugins or source connectors, register their type, and implement the operations WhoDB needs.

Compare 6 skills from other repositories ↓
About the project

WhoDB is a self-hosted workspace for exploring and managing databases through a browser, desktop app, or terminal interface. Developers and data teams use it to browse and edit data, run queries, inspect table relationships, move data, and optionally ask questions through an AI provider. The catalogue includes add-ons for operating WhoDB and working with its database tools.

clidey/whodb · 5,074 stars · on GitHub · whodb.com

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/clidey/whodb
agentmods
npx agentmods add skills/clidey/whodb/new-plugin

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 new-plugin

README.md
[![agentmods](https://agentmods.dev/badge/skills/clidey/whodb/new-plugin/github.svg)](https://agentmods.dev/skills/clidey/whodb/new-plugin)
Your own site
<a href="https://agentmods.dev/skills/clidey/whodb/new-plugin"><img src="https://agentmods.dev/badge/skills/clidey/whodb/new-plugin/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 new-plugin

Your own site · 80×15
<a href="https://agentmods.dev/skills/clidey/whodb/new-plugin"><img src="https://agentmods.dev/badge/skills/clidey/whodb/new-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,296 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.
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.00022 $0.01296
Opus 5.5 $0.00009 $0.00518
Sonnet 5.5 $0.00004 $0.00259
Haiku 4.5 $0.00002 $0.00130

Measured 17d ago against content hash 22dc6b27c5cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

new-plugin 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 17d 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.

.agents/skills/new-plugin/SKILL.md · 49 lines

How it starts

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

Add a Data Source

Pick a path:

  • Database plugin: a SQL or NoSQL database with a Go driver. Implement engine.PluginFunctions; the shared database driver adapts it to the source API.
  • Source-first connector: anything else (object stores, APIs). Implement source.SourceConnector and source.SourceSession directly.

Never add per-source GraphQL; the generic Source* API serves every type. Read contract.md in this skill before declaring capabilities, SSL or aliases.

Database plugin

  1. Type ID. Add DatabaseType_<Name> = "<Name>" to the const block in core/src/engine/engine.go. The string is the source ID everywhere: catalog, icon key, WHODB_<NAME> env profiles.
  2. Plugin package in core/src/plugins/<name>/; core/src/plugins/postgres/ is the reference.
    • SQL: embed gorm_plugin.GormPlugin. The constructor calls ConfigureIdentifierQuoting(...), sets Type, PluginFunctions = plugin and GormPluginFunctions = plugin; init() calls engine.RegisterPlugin(...).
    • GormPlugin has no default for DB, GetTableInfoQuery, GetTableNameAndAttributes, GetStorageUnitExistsQuery, GetPrimaryKeyColQuery, GetAllSchemasQuery, GetCreateTableQuery, GetSupportedOperators, GetGraphQueryDB, GetDatabases, RawExecute or GetSSLStatus. Everything else has a default; override only what differs.
    • Non-SQL: embed engine.BasePlugin; unsupported user operations return errors.ErrUnsupported. See the mongodb, redis, elasticsearch and memcached plugins.
    • Do DB work inside plugins.WithConnection(config, p.DB, ...); direct driver calls use config.OperationContext().
    • Open network connections through sourcedial: when sourcedial.Dialer() is non-nil, pass it to the driver's dial hook (pgx DialFunc, go-redis Dialer, mongo SetDialer with sourcedial.ContextDialer); when nil, leave the driver's dialing alone. If the hook replaces the driver's TLS setup, use sourcedial.DialTLS. Add the connector to core/src/plugins/sourcedial_test.go.
    • Wire-compatible with an existing plugin? Add a catalog alias instead of a plugin (see contract.md).
  3. Register. Blank-import the package in core/cmd/whodb/main.go. A CGO plugin that cannot build on arm/riscv64 registers through a build-tagged file in core/src/ instead (see src_duckdb.go).
  4. Connection form. Add a ConnectableDatabase to catalog in core/src/dbcatalog/catalog.go: ID, Label, PluginType (the plugin that runs it), Extra (advanced fields and defaults such as "Port"), Fields, RequiredFields, SSLModes (extend sslModesFor in ssl_modes.go).
  5. Contract. Add a FamilySpec to familySpecs in core/src/sourcecatalog/catalog.go. Build object types with the helpers in that file (metadataObjectType, tabularObjectType, tabularReadOnlyObjectType, documentObjectType, keyValueObjectType, keyValueExistingMutableObjectType); never hand-build source.ObjectType. A catalog entry with no family spec for its ID or plugin type is skipped silently (core/src/sources/database/register.go).
  6. Session metadata. Put type definitions, operators and the alias map in core/src/sourcecatalog/specs/ (sql.go or nonrelational.go) and register them in registerSessionMetadata() in core/src/sourcecatalog/metadata.go. Plugins may import specs for type normalization but never register metadata from init().
  7. Frontend. Add an SVG to ceLogos in frontend/src/components/icons.tsx, keyed by the exact source ID (lookup falls back to the plugin type). Forms, SSL options and capability flags render from the backend contract. Add a customFormRenderer through registerSourceTypeOverrides() (frontend/src/config/source-registry.ts) only when the field-based form cannot work.

Read the full file on GitHub · 49 lines

Files

What ships with it

1 file 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. 17d ago First seen · 49 lines · 22 tokens per session scan A 22dc6b27c5cb

Subscribe to this mod's changes

new-plugin is a skill published in the GitHub repository clidey/whodb (5,074 stars, last pushed today), licensed Apache-2.0. It adds 22 tokens to every session and 1,296 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-11-13.

Related

new-plugin compared with skills from other repositories

new-plugin next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
new-pluginclidey/whodbSkill5.1ktodayApache-2.0A22Claude Code, Codex
drizzle-ormpledgeandgrow/pledge-skillsSkill114mo agoMITA28Claude Code, Codex
graphjin-evaldosco/graphjinSkill3.2kyesterdayApache-2.0A27Claude Code, Codex
graphjin-env-workflowsdosco/graphjinSkill3.2kyesterdayApache-2.0A60Claude Code
graphjin-envdosco/graphjinSkill3.2kyesterdayApache-2.0A61Claude Code, Codex
add-graphjin-databasedosco/graphjinSkill3.2kyesterdayApache-2.0A60Claude Code, Codex
find-postgres-bugdigoal/blogSkill8.6kyesterdayGPL-2.0A195Codex