| name | add-skill-stocks |
| description | Add stock price and financial data lookups via Yahoo Finance. Triggers on stock price questions, ticker lookups, market data requests. |
Add Stock Lookup
Adds stock price and financial data lookups using Yahoo Finance's free API. No API key needed.
Preflight
Before installing, verify NanoTars is set up:
[ -d node_modules ] && echo "DEPS: ok" || echo "DEPS: missing"
docker image inspect nanoclaw-agent:latest &>/dev/null && echo "IMAGE: ok" || echo "IMAGE: not built"
if grep -q "ANTHROPIC_API_KEY\|CLAUDE_CODE_OAUTH_TOKEN" .env 2>/dev/null || [ -f "$HOME/.claude/.credentials.json" ]; then echo "AUTH: ok"; else echo "AUTH: missing"; fi
If any check fails, tell the user to run /nanotars-setup first and stop.
Prerequisites
- NanoTars must be set up and running (
/nanotars-setup)
Install
-
Check current state:
[ -d plugins/stocks ] && echo "PLUGIN_EXISTS" || echo "NEED_PLUGIN"
If plugin exists, skip to Verify.
-
Copy plugin files:
cp -r ${CLAUDE_PLUGIN_ROOT}/files/ plugins/stocks/
-
Plugin Configuration: By default this plugin is available to all groups and channel types. To restrict access, edit plugins/stocks/plugin.json and set:
"groups" to specific group folder names (e.g., ["main"]) instead of ["*"]
"channels" to specific channel types (e.g., ["whatsapp"]) instead of ["*"]
Ask the user if they want to restrict access. Most users will keep the defaults.
-
Rebuild and restart:
npm run build
nanotars restart
Verify
Check that the plugin loaded:
grep -i "stocks" logs/nanotars.log | tail -5
Test from a chat by asking: "What's the current price of AAPL?"
Usage Examples
- "What's Apple's stock price?"
- "Compare MSFT and GOOG prices"
- "What's Tesla's P/E ratio and 52-week range?"
- "Show me Amazon's stock performance this year"
How It Works
The agent uses curl to query Yahoo Finance's free chart API endpoint. No API key or authentication is needed. The skill teaches the agent the correct endpoints, parameters, and response parsing with jq.
Troubleshooting
- Request blocked / empty response: Yahoo occasionally rate-limits. The agent will retry automatically. If persistent, the
User-Agent header may need updating.
- Ticker not found: Check the symbol on Yahoo Finance — some international stocks need exchange suffixes (e.g.,
.L for London, .TO for Toronto).
Remove
rm -rf plugins/stocks/
- Rebuild and restart.