FRED series search
Call the fred-client package's CLI and relay its JSON result. Keep all search and API logic in the package rather than reimplementing it in the skill.
Prerequisite
Install fred-client and configure a FRED API key:
pipx install fred-client
export FRED_API_KEY=...
The key may instead be stored in ~/.config/fred-client/credentials.json as
{"FRED_API_KEY": "..."}.
Run
fred search "<SEARCH_TEXT>" [--limit NUMBER] --json
- Preserve the user's search phrase; quote it when it contains spaces.
- Use
--limitonly when the user requests a result count. - Show the returned series IDs and titles. Point out the best match without hiding alternatives.
- If the user next wants metadata, use the metadata skill. For values over time, use fetch.
- Relay a nonzero CLI error concisely. A missing command means fred-client is not installed; a missing or rejected key requires installing/configuring the package, not changing the skill.