setup

A setup command for configuring the HydraDB Claude Code plugin in a workspace.

In plain words
What is it for?
Use it to inspect plugin status, choose workspace or user-level configuration, and enable HydraDB features such as automatic recall and ingestion.
Why use it?
It checks the current configuration and identifies or creates the settings needed for stored memory, automatic syncing, and search.

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/hydra-db/hydradb-claude-code/setup
Any agent
npx skills add hydra-db/hydradb-claude-code --skill setup
Clone the repo
git clone --depth 1 https://github.com/hydra-db/hydradb-claude-code

Made for: Claude Code, Codex.

Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 807 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.00807
Opus 5 $0.00017 $0.00404
Sonnet 5 $0.00007 $0.00161
Haiku 4.5 $0.00003 $0.00081

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

Security

Grade A, and why

setup 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 2d 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.

skills/setup/SKILL.md · 72 lines

What it actually says

Configure the HydraDB plugin for the current workspace.

  1. Check current status first:
node "${CLAUDE_PLUGIN_ROOT}/scripts/plugin.mjs" doctor --json
  1. If HydraDB is already configured, explain which config layers are active and whether anything still needs to change.

  2. If configuration is missing, prefer one of these paths:

    • .hydradb-plugin.local.json for machine-local overrides
    • .hydradb-plugin.json for shareable workspace defaults
    • ${CLAUDE_PLUGIN_DATA}/config.json for persistent user-level plugin defaults
    • ./.hydradb-plugin-data/config.json only when CLAUDE_PLUGIN_DATA is not available in the current environment
  3. Use ${CLAUDE_PLUGIN_ROOT}/.hydradb-plugin.json.example for workspace config or ${CLAUDE_PLUGIN_ROOT}/config.example.json for the full shape. For a minimal safe setup, this is enough:

{
  "apiBaseUrl": "https://api.hydradb.com",
  "apiKey": "${HYDRADB_API_KEY}",
  "tenantId": "${HYDRADB_TENANT_ID}",
  "subTenantId": "",
  "autoRecall": true,
  "autoIngest": true,
  "captureMode": "off",
  "searchMode": "memory",
  "ingestionMode": "memory",
  "recallMode": "thinking",
  "graphContext": true,
  "maxContextChars": 7000,
  "requestTimeoutMs": 15000,
  "writeTimeoutMs": 15000,
  "ignoreMarker": "hydra-ignore"
}
  1. Never invent secrets. Prefer environment variables for secret values:

    • HYDRADB_API_KEY
    • HYDRADB_TENANT_ID
    • HYDRADB_SUB_TENANT_ID (set it explicitly; "" is valid if you want HydraDB's default sub-tenant)
    • optional HYDRADB_BASE_URL
    • optional HYDRADB_USER_NAME
  2. JSON config values can reference environment variables like "${HYDRADB_API_KEY}". Prefer that over putting literal secrets into repo files.

  3. Only put a literal API key in a file if the user explicitly asks for it. Otherwise keep secrets out of committed config.

  4. After any config edit, recommend running:

node "${CLAUDE_PLUGIN_ROOT}/scripts/plugin.mjs" doctor
  1. If the user wants manual-only memory, set captureMode to off and point them to /hydradb:remember or /hydradb:save-session.

  2. If the user wants whole-session upsert behavior, set captureMode to session-upsert. If they want both isolated turns and rolling session memories, set it to both.

  3. The default workspace sync target should usually be ingestionMode: "memory", with markdown-first includeGlobs. Only recommend knowledge or both recall if the user understands the tradeoff.

  4. If HydraDB feels slow or the user wants tighter hook budgets, suggest lowering requestTimeoutMs and writeTimeoutMs, or setting HYDRADB_REQUEST_TIMEOUT_MS and HYDRADB_WRITE_TIMEOUT_MS.

  5. If the plugin is configured but the user is unsure whether prompt-time recall actually ran, suggest /hydradb:last-recall. Do not claim that no context was injected unless that command or explicit recall output confirms it.

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. 2d ago First seen · 72 lines · 35 tokens per session scan A 7e11dd4a6bda

Subscribe to this mod's changes

setup is a skill published in the GitHub repository hydra-db/hydradb-claude-code (2 stars, last pushed 5d ago), licensed Apache-2.0. It adds 35 tokens to every session and 807 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

manage-mcp-servers

Add, remove, list, or manage MCP servers in the OpenClaw MCP bridge. Use when installing new servers, removing existing ones, listing available/installed servers, checking server status, or troubleshooting MCP connection issues.

AIWerk/openclaw-mcp-bridge · 50 tokens

korean-autopilot

한국어로 Claude Code 사용법을 묻거나, 한국어로 작업을 지시하는 사용자를 자동으로 감지하고 적절한 Claude Code 커맨드를 실행하거나 안내합니다. Automatically detects Korean-speaking users and helps them navigate Claude Code by executing or suggesting the right commands based on natural language input. Triggers when: user speaks Korean and asks about Claude Code commands…

shinhyukahn/cck · 123 tokens

sync-claude-skills-to-codex

Sync Claude Code skills (plugins + personal) to Codex CLI by copying folders. Creates /bin/list-skills enumerator for skill discovery. Run after installing new Claude plugins.

ariccb/sync-claude-skills-to-codex · 47 tokens

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

omh-buzz

This is a Hermes-native buzz workflow skill.

rlaope/oh-my-hermes · 95 tokens

omh-code-review

This is a Hermes-native code-review workflow skill.

rlaope/oh-my-hermes · 46 tokens