New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

db-skills

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-skills

Install database skills onto coding agents (OpenCode, Claude Code, Codex, Cursor)

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

db-skills

Website  npm  License

Built by Docfork

Curated database skills for AI coding agents (OpenCode, Claude Code, Codex, Cursor).

Each skill is a small, reviewable workflow in skills/<skill-name>/SKILL.md (with name + description frontmatter). Think: schema discovery, safe migrations, debugging slow queries, and data quality checks.

Installation

npm install -g db-skills

Quick Start

# see what's bundled in this package
db-skills list

# install all bundled db skills (global)
db-skills add --all --global --yes

Usage

Commands

CommandPurpose
db-skills listlist bundled skills
db-skills addinstall selected skills (interactive by default)
db-skills add --allinstall all bundled skills
db-skills rm / db-skills removeuninstall selected skills

Options

OptionDescription
-g, --globalinstall to user directories instead of the current project
--agent <agents...>target specific agents (e.g. cursor, claude-code)
-s, --skill <skills...>select skills by name (skip selection prompt)
--mode <mode>install mode: copy (default) or symlink
-y, --yesskip confirmation prompts

Examples

# list skills
db-skills list

# install one skill globally to cursor + claude-code
db-skills add -g --agent cursor claude-code --skill query-database-schema

# install everything globally (ci-friendly)
db-skills add --all -g -y

# remove one skill globally
db-skills rm -g --skill query-database-schema -y

Supported Agents

This CLI can install skills into these agent directories:

Agent--agentProject PathGlobal Path
Cursorcursor.cursor/skills/~/.cursor/skills/
Claude Codeclaude-code.claude/skills/~/.claude/skills/
Codexcodex.codex/skills/~/.codex/skills/
OpenCodeopencode.opencode/skills/~/.config/opencode/skills/

How installs work

  • source of truth: bundled skills live under ./skills/<skill-name>/SKILL.md
  • canonical store: installs copy into .agents/skills/<skill-name>/ (project) or ~/.agents/skills/<skill-name>/ (global)
  • agent install:
    • copy: copies from canonical store into each agent directory
    • symlink: symlinks each agent directory to canonical store

Available Skills

This section is auto-generated from ./skills/*/SKILL.md. To refresh it, run npm run sync-skills.

SkillPurpose
data-quality-auditAudits database data quality (nulls, duplicates, orphans, invalid ranges) and produces a short findings report with remediation queries
debug-slow-queriesDiagnoses and fixes slow database queries using explain plans, statistics, and targeted indexes or rewrites
query-database-schemaInspects database schema and metadata (tables, columns, indexes, constraints, relationships)
write-safe-migrationsPlans and executes safe database migrations with low-downtime patterns, verification, and rollback

Contributing

This repo is curated. Skill requests and focused PRs are welcome.

  • request a skill: open an issue using the “db-skill request” template
  • contribute a skill: see CONTRIBUTING.md

Troubleshooting

"No skills found"

  • ensure skills live at skills/<skill-name>/SKILL.md
  • ensure frontmatter has name and description
  • ensure name matches the directory name exactly

Skill not loading in agent

  • verify the skill exists under the agent skills directory after install
  • some agents require additional configuration to load skills from disk

License

MIT

Keywords

cli

FAQs

Package last updated on 23 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts