setup
Configure the HydraDB Claude Code plugin for the current workspace. Use when the user wants to enable HydraDB memory, fix configuration, or create a workspace config file.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-06
- Stars
- ★ 5
- Forks
- 2
01 前言 Front Matter
- name
- setup
- description
- Configure the HydraDB Claude Code plugin for the current workspace. Use when the user wants to enable HydraDB memory, fix configuration, or create a workspace config file.
- allowed-tools
- Read, Write, Edit, MultiEdit, Bash(node *)
- disable-model-invocation
- true
03 SKILL.md 正文
Configure the HydraDB plugin for the current workspace.
- Check current status first:
node "${CLAUDE_PLUGIN_ROOT}/scripts/plugin.mjs" doctor --json
-
If HydraDB is already configured, explain which config layers are active and whether anything still needs to change.
-
If configuration is missing, prefer one of these paths:
.hydradb-plugin.local.jsonfor machine-local overrides.hydradb-plugin.jsonfor shareable workspace defaults${CLAUDE_PLUGIN_DATA}/config.jsonfor persistent user-level plugin defaults./.hydradb-plugin-data/config.jsononly whenCLAUDE_PLUGIN_DATAis not available in the current environment
-
Use
${CLAUDE_PLUGIN_ROOT}/.hydradb-plugin.json.examplefor workspace config or${CLAUDE_PLUGIN_ROOT}/config.example.jsonfor 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"
}
-
Never invent secrets. Prefer environment variables for secret values:
HYDRADB_API_KEYHYDRADB_TENANT_IDHYDRADB_SUB_TENANT_ID(set it explicitly;""is valid if you want HydraDB's default sub-tenant)- optional
HYDRADB_BASE_URL - optional
HYDRADB_USER_NAME
-
JSON config values can reference environment variables like
"${HYDRADB_API_KEY}". Prefer that over putting literal secrets into repo files. -
Only put a literal API key in a file if the user explicitly asks for it. Otherwise keep secrets out of committed config.
-
After any config edit, recommend running:
node "${CLAUDE_PLUGIN_ROOT}/scripts/plugin.mjs" doctor
-
If the user wants manual-only memory, set
captureModetooffand point them to/hydradb:rememberor/hydradb:save-session. -
If the user wants whole-session upsert behavior, set
captureModetosession-upsert. If they want both isolated turns and rolling session memories, set it toboth. -
The default workspace sync target should usually be
ingestionMode: "memory", with markdown-firstincludeGlobs. Only recommendknowledgeorbothrecall if the user understands the tradeoff. -
If HydraDB feels slow or the user wants tighter hook budgets, suggest lowering
requestTimeoutMsandwriteTimeoutMs, or settingHYDRADB_REQUEST_TIMEOUT_MSandHYDRADB_WRITE_TIMEOUT_MS. -
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.
04 同仓库更多 Skills
sync-workspace
Deprecated alias for /hydradb:ingest. Force a workspace sync of markdown-first workspace context into HydraDB. Prefer /hydradb:ingest; this still works.
status
Deprecated alias for /hydradb:doctor. Inspect HydraDB plugin configuration, active settings, and sync state. Prefer /hydradb:doctor; this still works.
search
Deprecated alias for /hydradb:query. Manually query HydraDB using the configured search mode. Prefer /hydradb:query; this still works.
save-session
Deprecated alias for /hydradb:ingest. Save the current Claude Code session into HydraDB as one evolving session memory. Prefer /hydradb:ingest; this still works.
remember
Deprecated alias for /hydradb:ingest. Store a durable note, preference, or decision in HydraDB memory. Prefer /hydradb:ingest; this still works.
reindex
Deprecated hidden alias for syncing workspace context into HydraDB.