Add sample plugins for testing and training#59
Conversation
Add two sample plugins from jpshackelford/openhands-sample-plugins: - city-weather: Get current weather, time, and precipitation forecast for any city using the free Open-Meteo API (no API key required) - Provides slash command /city-weather:now <city> - Shows temperature in both Fahrenheit and Celsius - Displays precipitation forecast for next 4 hours - magic-test: A simple test plugin for verifying plugin loading - Triggers on magic words: alakazam, abracadabra - Returns a specific phrase to verify plugins are working These plugins are useful for testing plugin infrastructure and training users on the plugin format. Co-authored-by: openhands <openhands@all-hands.dev>
Register city-weather and magic-test plugins in the marketplace for discoverability. Co-authored-by: openhands <openhands@all-hands.dev>
|
Note that the use of |
Document the city-weather plugin with: - Feature overview and usage examples - Instructions for testing plugin loading via OpenHands Cloud API - SDK usage example for software-agent-sdk 1.10.0+ - Plugin structure and API reference Co-authored-by: openhands <openhands@all-hands.dev>
Are you sure that claude plugins need this though? I think they can also just support |
|
I investigated this and unfortunately Claude Code only supports Tested with Claude Code v2.1.62 using non-interactive validation: # With .claude-plugin directory - works
claude plugin validate plugins/city-weather
# ✔ Validation passed
# With only .plugin directory (renamed .claude-plugin away) - fails
claude plugin validate plugins/city-weather
# ✘ Found 1 error:
# ❯ directory: No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.jsonThe CLI explicitly looks for So the current structure with |
Summary
Add two sample plugins from jpshackelford/openhands-sample-plugins for testing plugin infrastructure and training users on the plugin format.
Added Plugins
city-weather
Get current weather, time, and precipitation forecast for any city using the free Open-Meteo API (no API key required).
Features:
/city-weather:now <city>Usage:
magic-test
A simple test plugin for verifying plugin loading works correctly.
Features:
Purpose:
Testing
These plugins were originally developed and tested in the source repository and follow the Claude Code plugin marketplace format.
@jpshackelford can click here to continue refining the PR