huxley-skill-stocks
Voice-controlled stock quotes for Huxley, the voice agent framework. A reference skill demonstrating the third-party authoring path: own repo, PyPI distribution, config_schema form-rendering, ctx.secrets for API keys.
Status: Reference skill for Huxley T1.14 (skill marketplace v1). Built and tested against
huxley-sdkfrom the Huxley repo's main branch during v1 development. Switches to a versioned PyPI pin oncehuxley-sdkis published.
What it does
Three voice tools on top of the Alpha Vantage free tier:
get_stock_price(ticker)— "what's Apple stock at" / "how is TSLA doing"get_watchlist_summary()— "how's my watchlist" — summarizes the persona's configured tickerscompare_stocks(tickers)— "compare Apple and Microsoft" — short side-by-side
Install
Requirements: Python 3.13+ (matches Huxley's runtime).
# From a Huxley persona's runtime venv:
uv add huxley-skill-stocks
# Or, while developing against an unreleased huxley-sdk:
uv add "huxley-skill-stocks @ git+https://github.com/ma-r-s/huxley-skill-stocks"
The skill registers under the entry-point name stocks. The skill name in persona.yaml's skills: block, the per-persona secrets dir (<persona>/data/secrets/<name>/), and the entry-point key in pyproject.toml must all match.
Configure
Add to your persona's persona.yaml:
skills:
stocks:
watchlist: ["AAPL", "MSFT", "GOOG"]
currency: USD
# api_key lives in <persona>/data/secrets/stocks/values.json
Drop your Alpha Vantage API key in <persona>/data/secrets/stocks/values.json:
{
"api_key": "your-alpha-vantage-key"
}
Get a free key at alphavantage.co/support/#api-key — long-lived, no OAuth refresh.
Restart Huxley, press to talk: "what's Apple stock at?"
Why this skill exists
This is Huxley's canonical third-party reference skill — the worked example the authoring docs walk through. It's deliberately minimal but exercises every primitive a real third-party skill needs:
config_schemadeclared (secret string + array + enum — the three JSON-Schema shapes Huxley's PWA renders).ctx.secretsfor the API key (per-persona,<persona>/data/secrets/stocks/values.json).ctx.configfor plain config (watchlist, currency).- Standalone repo — proves the third-party authoring flow works end-to-end without dropping the skill into Huxley's
server/skills/tree. - No OAuth — Alpha Vantage uses a long-lived API key, so this skill doesn't drag token-refresh complexity into Huxley's v1 marketplace.
Development
uv sync
uv run ruff check src tests
uv run mypy src
uv run pytest
Tests use pytest-httpx to mock Alpha Vantage responses; no network in CI.
License
MIT.
Metadata
Release files for huxley-skill-stocks 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| huxley_skill_stocks-0.1.0.tar.gz | 13.5 kB | Without provenance | Details for huxley_skill_stocks-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| huxley_skill_stocks-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for huxley_skill_stocks-0.1.0-py3-none-any.whl |
Total release size: 24.1 kB
Release files / huxley_skill_stocks-0.1.0.tar.gz
| Download URL | huxley_skill_stocks-0.1.0.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e6e97005598a93349094b5a780c2adf9716ba8734ab40979a0ac116267d4a3a
|
|
BLAKE2b-256 checksum How to use checksums |
c4eab4dcd62ef239fb9e1a4c8ca3d072b5d8b9df0edad3cf32c7f5fbb14098cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.5
|
Release files / huxley_skill_stocks-0.1.0-py3-none-any.whl
| Download URL | huxley_skill_stocks-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78353cc89c330854b1c950627cd0d62bc7239e74bf233e3c6b8c88feefe0f2bd
|
|
BLAKE2b-256 checksum How to use checksums |
0c1c6ea3e1c1f25cd1416588ef3f64facc33b134ff1890e3b2ec7f5d25400df3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.5
|
Security for huxley-skill-stocks 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.