cgw-database

cgw-database is a skill for Claude Code, Codex from safe-global/safe-client-gateway. It costs 207 tokens per session (467 once invoked), scanned A, original, no licence file.

A development guide for database migrations, TypeORM entities, and database queries in a specific TypeScript service. TypeORM is a library that maps TypeScript code to database tables.

In plain words
What is it for?
Adding or changing database tables, entities, migrations, foreign keys, indexes, and queries in safe-client-gateway.
Why use it?
It helps prevent unsafe schema changes, missing indexes, and inconsistent database code in that project.

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/safe-global/safe-client-gateway/cgw-database
Any agent
npx skills add safe-global/safe-client-gateway --skill cgw-database
Clone the repo
git clone --depth 1 https://github.com/safe-global/safe-client-gateway

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 cgw-database

README.md
[![agentmods](https://agentmods.dev/badge/skills/safe-global/safe-client-gateway/cgw-database.svg)](https://agentmods.dev/skills/safe-global/safe-client-gateway/cgw-database)
Your own site
<a href="https://agentmods.dev/skills/safe-global/safe-client-gateway/cgw-database"><img src="https://agentmods.dev/badge/skills/safe-global/safe-client-gateway/cgw-database.svg" alt="Measured on agentmods" height="20"></a>
Per session 207 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 467 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00207 $0.00467
Opus 5 $0.00103 $0.00234
Sonnet 5 $0.00041 $0.00093
Haiku 4.5 $0.00021 $0.00047

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

Security

Grade A, and why

cgw-database 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.

.claude/skills/cgw-database/SKILL.md · 18 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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 · 18 lines · 207 tokens per session scan A c34ce75e6814

Subscribe to this mod's changes

cgw-database is a skill published in the GitHub repository safe-global/safe-client-gateway (50 stars, last pushed today), with no licence file. It adds 207 tokens to every session and 467 once invoked, about $0.0010 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-09-01.

Related

Other skills, from other repositories

cabloy-resource-field-update

Use this skill whenever the user wants to update a field on an existing Cabloy backend resource: add a new persisted field, refine validation, add enum-like constraints, attach or change ZovaRender.field / ZovaRender.cell metadata, decide whether vonaModule.fileVersion should change, or demonstrate a custom frontend…

cabloy/cabloy · 0 tokens

dkg-importer

Bulk-import a large RDF graph (code graph, corpus, GitHub history, etc.) into a DKG node's working memory. Use this skill when you need to push more than a few thousand triples in a single import — it codifies the chunking budgets, the assertion-loop shape, the resumability manifest, and the canonical URI rules so…

OriginTrail/dkg · 87 tokens

nestjs

Use when building or structuring a NestJS backend — feature modules, providers and DI wiring, provider scopes and request-lifecycle order, where to bind guards/pipes/interceptors/filters, and testing with Test.createTestingModule. NOT a bare Express/Fastify service with no DI (that is nodejs), NOT framework-agnostic…

ericrisco/rsc-harness · 81 tokens

mail-time

Use when building, wiring, reviewing, or debugging MailTime and ostrio:mailer email queues for horizontally scaled Node.js, Bun, or Meteor apps. Trigger on MailTime, MongoQueue, RedisQueue, PostgresQueue, mailTimePreset, JoSk email scheduling, Redis Cluster / KeyDB Cluster / Valkey useHashTags, KeyDB…

veliovgroup/mail-time · 179 tokens

huawei-cloud-ges-graph

Provides access guide for Huawei Cloud Graph Database GES service. Covers Cypher queries, GQL queries, schema/label management, summary info queries, graph data editing and more. Use this skill when users want to operate Huawei Cloud graph database GES service via terminal.

huaweicloud/huaweicloud-skills · 64 tokens

webiny-api-opensearch-catalog

Name: createOpenSearchClient Import: import { createOpenSearchClient } from "webiny/api/opensearch" Source: @webiny/api-opensearch/client.ts.

webiny/webiny-js · 19 tokens