agent-plugin
A Claude Code plugin (and marketplace) that bundles frontend-design, context7, and ponytail capabilities, plus MCP servers for web search and code graph.
⚠️ Configuration in progress — component content (skills/agents/hooks) will be added step by step. Dependencies are already declared.
Dependencies
This plugin depends on three plugins from three different marketplaces:
| Dependency | Marketplace | Version (verified) |
|---|
frontend-design | claude-plugins-official (Anthropic official) | 1.1.0 |
context7 | claude-plugins-official (Anthropic official) | latest |
ponytail | ponytail (DietrichGebert/ponytail) | 4.9.0 |
Cross-marketplace dependencies are allowed via allowCrossMarketplaceDependenciesOn in .claude-plugin/marketplace.json.
MCP servers
This plugin ships two MCP servers in .mcp.json. Secrets are never stored in this repo — they are injected at runtime via environment variables. Set them before enabling the plugin, or the server will fail to connect (see Environment variables).
| Server | Transport | Purpose | Needs config? |
|---|
tavily_proxy | http | Web search API proxy | ⚠️ requires TAVILY_API_KEY |
codegraph-mcp | stdio (codegraph serve --mcp) | Code knowledge graph for agents | ❌ none (needs codegraph CLI installed) |
Environment variables
| Variable | Used by | Required | Default |
|---|
TAVILY_API_KEY | tavily_proxy | ✅ required | — |
The tavily_proxy URL embeds the key as a query parameter: https://tavily.ijkzen.cn/mcp?key=${TAVILY_API_KEY} — the key is read from the environment, never hard-coded here.
How to set the variables
# Shell (before launching Claude Code)
export TAVILY_API_KEY="your-tavily-key"
# Or add to your Claude Code settings env (~/.claude/settings.json)
{
"env": {
"TAVILY_API_KEY": "your-tavily-key"
}
}
Verify the servers connect
claude mcp list # both should appear; missing-variable warnings show if a required env is unset
claude mcp get tavily_proxy
If a required variable is unset, claude mcp list shows a missing-variable warning and the server uses the literal ${VAR} text — set the variable and restart Claude Code.
Hooks
| Hook | Script | Behavior |
|---|
SessionStart | scripts/codegraph-sync.sh | On session start: if the current project is a git work tree, keep its codegraph index fresh — run codegraph sync if .codegraph/ exists (already initialized), else codegraph init once. Silent (no output); no-op outside git repos or when the codegraph CLI is missing. |
PreToolUse (WebSearch) | scripts/deny-websearch.sh | Denies the system WebSearch tool and redirects the model to the Tavily search tool (tavily-search). |
PreToolUse (WebFetch) | scripts/deny-webfetch.sh | Denies the system WebFetch tool and redirects the model to the Tavily extract tool (tavily-extract). |
The redirect tool names are intentionally unprefixed (e.g. tavily-search, not mcp__<server>__tavily-search) so the model resolves the closest matching tool in whatever harness runs this plugin — including non-Claude-Code harnesses that support the plugin format.
OpenCode
This repo is also an OpenCode (V2) plugin. The adapter in opencode/
ports the same capabilities onto the OpenCode plugin API:
| Claude Code component | OpenCode equivalent |
|---|
skills/*/SKILL.md | ctx.skill.transform |
.mcp.json | ctx.mcp.transform |
PreToolUse (WebSearch/WebFetch) | ctx.tool.hook("execute.before") |
SessionStart | setup() + session.created events |
Enable it in ~/.config/opencode/opencode.jsonc (or a project config):
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["/absolute/path/to/agent-plugin/opencode"]
}
See opencode/README.md for environment variables and
behavioral differences. disable-model-invocation: true maps to OpenCode's
autoinvoke: false, so those skills stay loadable but are hidden from the model.
The three marketplace dependencies are ported too: frontend-design and
ponytail (plus its -review/-audit/-debt/-gain/-help skills) are
vendored under opencode/vendor/skills/, context7 is registered as a remote
MCP server, and ponytail's mode hooks are reimplemented on the OpenCode session
hooks.
Installation
# Add this repo as a marketplace
claude plugin marketplace add github:ijkzen/agent-plugin
# Install the plugin (auto-installs dependencies)
claude plugin install agent-plugin
# Or directly
claude plugin add github:ijkzen/agent-plugin
Structure