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.
npx skills add gul-labs/craftsman-marketplace --skill craft-dbgit clone --depth 1 https://github.com/gul-labs/craftsman-marketplaceWrote 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/gul-labs/craftsman-marketplace/craft-db)<a href="https://agentmods.dev/skills/gul-labs/craftsman-marketplace/craft-db"><img src="https://agentmods.dev/badge/skills/gul-labs/craftsman-marketplace/craft-db/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/gul-labs/craftsman-marketplace/craft-db"><img src="https://agentmods.dev/badge/skills/gul-labs/craftsman-marketplace/craft-db.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00118 | $0.03272 |
| Opus 5.5 | $0.00047 | $0.01309 |
| Sonnet 5.5 | $0.00024 | $0.00654 |
| Haiku 4.5 | $0.00012 | $0.00327 |
Grade A, and why
craft-db 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.
How it starts
The opening of the file, as written. The whole thing — 204 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DB Craft
This skill encodes one engineer's method for database work. Discover the target repo's dialect,
current adapter, migrations, and tenant-scope helpers before editing. Projects that explicitly
adopt the Craftsman Postgres profile follow references/postgres-standard.md: its Node adapter is
pg with drizzle-orm/node-postgres. Elsewhere, assess the actual provider, runtime, and failure
evidence before recommending a driver migration. Other dialects need their own choices.
Operating principle — discover before you build
Different repos are at different points in their DB evolution. Before touching anything, spend a few minutes mapping what already exists so you extend rather than duplicate or fight the grain:
package.json/ lockfile → isdrizzle-orm,prisma,knex,pg,mysql2, or similar already present?- Existing migration directory (e.g.
drizzle/,prisma/migrations/,db/migrations/) → what conventions are already established (naming, timestamps, reversibility)? - Schema files → column naming style (camelCase vs snake_case), timestamp columns (
createdAt/created_at), soft-delete column name and type, how tenant id is stored and named. - Query helpers → is there a shared conditions/helpers file that enforces tenant scoping and soft-delete filters? Read it before writing any query.
- Dialect → Postgres, MySQL, SQLite? Some patterns (advisory locks,
RETURNING, expression indexes) are dialect-specific.
State what you found, then propose the smallest set of changes that achieves the goal.
The data layers (work in this order)
-
Schema design — model the domain correctly before writing a line of migration code. Choose the right types, enforce NOT NULL where the domain demands it, express relationships as real foreign keys, and name columns consistently with the existing schema. See
references/schema.md. -
Migrations — translate the schema design into a forward-only migration, reviewed before it ever runs. Prefer reversible migrations where the cost is low (drop → add back); know when forward-only is the honest choice. See
references/migrations.md.
What ships with it
9 files 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.
- references/access-patterns.md 23 KB
- references/connection-pooling.md 34 KB
- references/driver-migration.md 13 KB
- references/indexing.md 18 KB
- references/integrity.md 20 KB
- references/migrations.md 20 KB
- references/postgres-standard.md 12 KB
- references/schema.md 21 KB
- references/seeding-and-testing.md 20 KB
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 Changed · +46 lines 2e52ef044df5
- 3mo ago First seen · 158 lines · 118 tokens per session scan A 8602e96fe6be
craft-db is a skill published in the GitHub repository gul-labs/craftsman-marketplace (1 stars, last pushed 2d ago), licensed MIT. It adds 118 tokens to every session and 3,272 once invoked, about $0.0005 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-31.
craft-db compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| craft-dbgul-labs/craftsman-marketplace | Skill | 1 | 2d ago | MIT | A | 118 | Claude Code |
| data-modelingcbrock84/headcount | Skill | 2.6k | yesterday | MIT | A | 77 | Claude Code |
| data-migrationcbrock84/headcount | Skill | 2.6k | yesterday | MIT | A | 102 | Claude Code |
| ecto-patternsoliver-kriska/claude-elixir-phoenix | Skill | 579 | 2d ago | MIT | A | 51 | Claude Code |
| phoenix-contextsoliver-kriska/claude-elixir-phoenix | Skill | 579 | 2d ago | MIT | A | 46 | Claude Code |
| ecto-n1-checkoliver-kriska/claude-elixir-phoenix | Skill | 579 | 2d ago | MIT | A | 49 | Claude Code, Codex |
| ggsqlposit-dev/skills | Skill | 578 | 20d ago | MIT | A | 33 | Claude Code |