Agent skill
create-plugin
Add a new datasource plugin to ethpandaops/mcp. Triggers on: add plugin, new plugin, create plugin, add datasource.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/create-plugin-ethpandaops-mcp
SKILL.md
Create New Plugin
Add a datasource plugin following the existing patterns.
Files to Create
plugins/{name}/
├── config.go # Config struct + Validate() + ApplyDefaults()
├── plugin.go # Implements plugin.Plugin interface
├── examples.go # Embeds examples.yaml
├── examples.yaml # Query examples
└── python/{name}.py # Sandbox module (connects via proxy)
Plus:
pkg/proxy/handlers/{name}.go- Reverse proxy handler
Templates
Copy from plugins/prometheus/ for a simple plugin, or plugins/clickhouse/ for one with schema discovery.
Registration Steps
- builder.go - Import and add
reg.Add({name}plugin.New()) - builder.go - Add case to
buildProxy()type switch - pkg/proxy/proxy.go - Add field to
Optionsstruct - pkg/proxy/proxy.go - Register handler in
Start() - sandbox/ethpandaops/ethpandaops/init.py - Add to lazy imports
- Copy Python module to
sandbox/ethpandaops/ethpandaops/
Key Rules
- Credentials NEVER go to sandbox - use
SandboxEnv()for metadata only - ProxyConfig() returns credentials for the proxy handler
- Python module reads
ETHPANDAOPS_{NAME}_DATASOURCESenv var (JSON, no creds) - Python module calls proxy at
/{name}/{instance}/...
Checklist
- Implements all
plugin.Pluginmethods (seepkg/plugin/plugin.go) - Proxy handler follows pattern in
pkg/proxy/handlers/prometheus.go -
make lint && make testpass -
make docker-sandboxbuilds
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?