/agentdb-memory:agentdb-skill-createfrom agentdb-memory
Promotes validated patterns into reusable Skills in AgentDB's skill library. Use when a pattern has succeeded 3+ times or user says 'make this a skill'.
Ships in agentdb-memory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Take an approach that's been validated multiple times and elevate it to a first-class Skill — queryable by intent, composable into chains, and tracked separately from one-off patterns.
agentdb_skill_create(
name: <verb-noun-noun> // e.g. "rotate-jwt-refresh-token"
description: <one-liner> // what it does
precondition: <plain English query> // matched by intent embedding
action: <step list> // executable steps
outcome: <success criteria> // what "worked" looks like
tags: [<topic>, <stack>, ...]
metadata: { sourceEpisodeIds: [...], confidence }
)
The precondition is what makes the skill discoverable — it's embedded and matched against future task intents. Write it like a search query: "need to rotate a JWT refresh token without invalidating active sessions", not like a docstring.
Skills can chain via agentdb_skill_compose:
compose(
intent: "set up authenticated API with token rotation",
available: [skill_a, skill_b, skill_c]
) → bandit picks the best chain ordering
The bandit tracks composition rewards over time; bad orderings decay automatically.
action. Use placeholders.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ruvnet/agentdb --plugin agentdb-memory4 skills in this plugin
/agentdb-memory-guardScreen what goes into AgentDB memory for prompt injection with the opt-in aidefence guard (AGENTDB_INJECTION_GUARD=warn|block). Use when agents store text from untrusted sources (web pages, tool output, user uploads) into episodes, patterns or skills; when a recalled memory contains instructions; or when the user asks how to stop memory poisoning in AgentDB./agentdb-recallRetrieve relevant memories for the current task from AgentDB. Use at the start of a task to load prior knowledge, when stuck to surface what worked before, or when the user asks "what do we know about X" / "have we done this before?"/agentdb-rememberOther plugins' skills for the same job