Skip to main content

Thalovant

thalovant-skillkit

Build and test Thalovant skills for Open Voice OS (OVOS) with shared message, locale, conversation, and packaging helpers. SkillKit provides base classes, a project scaffold, and checks for skill resources and built packages. OVOS owns intent routing, speech, sessions, and scheduling.

A skill can hand a request back with pass_on(message). When a core is loaded in the same process, the replay uses that core's entry topic. Standalone skills keep the established legacy topic; a remote spec-only core must translate that legacy topic. See the handback notes.

Quickstart

You need Python 3.11 or newer with venv and pip, a terminal, and access to your Python package index. SkillKit and the projects it generates both require 3.11 (the kit's floor was 3.10 until 0.30.0). No running hub or speaker is needed here.

Start in a working directory where thalovant-skill-garden-watering does not already exist:

python3 -m venv .venv
. .venv/bin/activate
python -m pip install --pre "thalovant-skillkit==0.39.0"
thalovant-skillkit new garden-watering
cd thalovant-skill-garden-watering
python -m pip install --pre -e ".[test]" build
thalovant-skillkit check
python -m pytest -q

This example pins SkillKit 0.39.0. --pre allows the current OVOS prerelease stack; see the reference for legacy Workshop 8 compatibility.

You should have a fallback skill with five passing tests, English and French locale resources, package metadata, and a GitHub test workflow. The check reports ok: thalovant-skill-garden-watering keeps its contracts. This scaffold uses vocabulary files, so it has no intent examples for fleet comparison. The workflow tests and validates packages; it does not install your skill on a speaker.

The sample answers what is garden watering with a placeholder reply and declines ordinary room chatter. Edit thalovant_skill_garden_watering/__init__.py for its behavior and locale/ inside that package for vocabulary and replies. Both initial vocabularies use the same English keyword; translate them before calling the skill translated.

Regional tags such as en-CA, en-GB, and fr-CA reuse compatible translations while retaining the speaker's language. For regional wording, keep only the differences in locale/regional.json; thalovant-skillkit locales --write builds complete OVOS resources. See the regional guide.

Speech markup

A reply can carry SSML beside its plain words: a pause, a code read one character at a time, a word in another language. The Thalovant voice app reads the markup. Clients that only read the plain words, such as the Android app, say the same sentence without it. SkillKit never puts a tag in the plain words.

A pause before a punchline. Put a twin beside the dialog, one line for each line of the dialog, with the same {placeholders}. For locale/en-US/dialog/joke.dialog:

Why did the scarecrow win an award? Because he was outstanding in his field.

write locale/en-US/dialog/joke.ssml:

Why did the scarecrow win an award? <break time="700ms"/> Because he was outstanding in his field.

self.speak_dialog("joke") and self.dialog("joke", lang) pick a line and send both forms of that line. A language without a twin says its plain line.

Spelling a code. Mark up the value instead of the dialog. This works in every language the skill ships, with no locale file to change:

from thalovant_skillkit.ssml import spell

self.speak_dialog("code", {"code": spell("XK7")})

A word in another language. Build the sentence in Python:

from thalovant_skillkit.ssml import foreign, say

self.speak_to(message, say("One", foreign("café au lait", "fr-FR"), "coming up."))

Numbers, dates, amounts and units. Say how a value is read, and the voice reads it in the language of the reply:

from thalovant_skillkit.ssml import as_time, cardinal, currency, say, unit

say("Dinner is at", as_time("7:30 pm"), "for", cardinal("1,200"), "people at",
    currency("$12.50"), "each, outside at", unit("23 °C"))
# English: "half past seven p.m.", "one thousand, two hundred", "twelve dollars and fifty
# cents", "twenty three degrees celsius"; the plain words are the text as written.

Pacing every line. SPEECH_STYLE = SpeechStyle(sentence_break="350ms") on the skill class paces every dialog in every language with no twin per line, and wraps the literal times, amounts and units of a line so the voice reads them correctly.

A skill that serves one household's private thing. thalovant_skillkit.device is the one gate, read from the router's stamp only. link_allowed(message.context, "music_assistant") asks whether the speaking device's own household has that link (a route through the household's bridge needs nobody listed); device_allowed(message.context, allowed) is the deny-by-default list for a route with one server for the whole hub. Neither has a way to read context["peer"], site_id or any other word a client writes, a stamp without a device id names nobody, and an id is never compared with a name. On a hub that does not load the home router nothing writes the stamp, so a client could forge it: keep the one-server route off a shared hub.

Words that are somebody else's. thalovant_skillkit.safety.speakable is the one cleaner for text a skill did not write (a title, a player's name, an answer a home relayed): entities read, tags and every angle bracket gone, no address, no control or bidi character, cut at a word. Clean a value before it goes into a dialog, and say a whole relayed answer with self.speak_to(message, text, untrusted=True): it is never promoted to utterance_ssml. self.pass_on(message) hands a sentence the skill must not answer back to the other skills, silently, once. safety also refuses a server URL that would leak the token, reach this machine or reach inside the cluster (url_problem), and dial_vetted connects to the address that was checked, never to the name again. device and safety are 0.37, the link gate, untrusted, pass_on and dial_vetted 0.38; import them behind a guard on a skill whose floor is older (see the reference).

A skill that must load on an older kit. A hub keeps the kit it loaded at boot while it installs a newer skill, so import anything newer than your floor behind a guard, or through thalovant_skillkit.compat (0.36):

from thalovant_skillkit.compat import speech_style_or_none, ssml_helper

cardinal = ssml_helper("cardinal")  # the kit's helper, or the text as written
SPEECH_STYLE = speech_style_or_none(sentence_break="350ms")  # None on a kit without it

A plain string passed to these helpers is escaped, so what a user said can never become markup. A client without SSML says the plain words, with no tag in them. thalovant-skillkit check checks every twin, and so does check --fleet-only. The reference lists the helpers, the tags a voice renders, the rules of SPEECH_STYLE and what each helper comes to without SSML.

What the screen shows

A satellite with a display (the Mark II) draws a card a skill puts on its reply, beside the words. A client without a screen ignores it, as one without alarms ignores the schedule the alarm skills send. The card is data, never code: four kinds the screen lays out itself, and a layout the skill draws.

from thalovant_skillkit import display

card = display.weather("Toronto", condition="Cloudy", icon="cloudy",
                       temperature=11, high=12, low=4, unit="°",
                       days=[display.item("Wed", "9°", icon="rain")],
                       actions=[display.action("tomorrow", "Tomorrow")])
with display.showing(card):
    self.speak_dialog("weather.answer", {"summary": summary})

display.text, display.list_card, display.weather and display.media build the four kinds; display.showing(card) attaches it to every reply spoken inside the block (speak and speak_dialog keep OVOS's signatures), and speak_to(message, text, display=card) to one. display.clear() takes the cards down. The sizes the satellite enforces are checked here first, so a card that will not be shown raises CardError with the reason.

A layout of your own. Ship gui/thalovant/<name>.rfwtxt, a Remote Flutter Widgets file composed from the screen's widget library (Title, Body, Figure, Tile, Pill, Symbol, Button...; the screen's README lists it), bind the card's data, and name the actions its buttons send:

layout = display.layout_file(self, "weather.day")
card = display.layout(layout, data={"place": "Toronto", "temperature": "11"},
                      body=summary, actions=[display.action("refresh", "Refresh")])

The file travels with every card, with its hash; a screen that cannot draw it shows body, the words that were said. display.layout(..., fullscreen=True) gives the layout the whole screen, with no frame and no time along the top: for a card that is a scene of its own, such as a thank-you mosaic; an ordinary card keeps its frame.

When a button is tapped, the satellite reports it as thalovant.display.action; self.add_display_action_handler(handler) delivers handler(tap, message) for this skill's cards (display.Tap: card, action, skill, at). Answer with speak_to(message, ..., display=...), so the reply reaches the screen that was tapped. The contract, with every size, is in thalovant-voice's README, "What the screen shows".

A date for ears and for a screen

A reminder read aloud says "tomorrow at nine forty a.m."; the same reminder in an app reads "tomorrow at 9:40 AM", and one further off "Monday, 28th at 9:40 AM". moments gives both forms, and speak_with_written sends both, so a speaker hears one and a screen shows the other:

from thalovant_skillkit.moments import date_text, speak_with_written, time_text, uses_24_hour_clock

clock = uses_24_hour_clock(lang)
spoken = f"Reminder set for {date_text(due, lang, now)} at {time_text(due, lang, clock)}."
written = (f"Reminder set for {date_text(due, lang, now, written=True)} "
           f"at {time_text(due, lang, clock, written=True)}.")
speak_with_written(self, spoken, message, lang, written=written)

duration_text(seconds, lang) says "five minutes" and writes "5:00". Nothing is imported until the first date is formatted, so a skill that never says one pays nothing at boot.

While the knowledge service looks

A question put to the knowledge service takes a few seconds, and the room is silent for all of it. Open a lookup_notice where you have the message to answer, and knowledge_reply says "From Wikipedia…" the moment the service names its source and a slow step follows, or "Looking it up…" when nothing has come back after 1.2 seconds. A quick answer says nothing first:

from thalovant_skillkit.knowledge import knowledge_reply, lookup_notice

with lookup_notice(lambda line: self.speak_to(message, line)):
    reply = knowledge_reply(service_url=url, prompt=question, lang=lang, mode="answer",
                            max_sources=3, augmentation="auto", age_policy_setting=None,
                            headers=headers, timeout=4.0)

The line exists in each of the eleven languages the public hubs serve. A skill that posts its own request calls ask_service(...) inside the block instead of requests.post, and gets the same notice.

Continue building

  • Writing a Skill — choose a base class and understand how a skill works with OVOS.
  • SkillKit tutorial — build a bilingual educational quiz with sounds, one working lesson at a time.
  • API and CLI reference — helper contracts, session state, native OVOS testing, resource lookup, and command options.
  • Changelog — releases and upgrade notes.

Contribute

From a SkillKit checkout, activate a virtual environment and run the same lint and unit checks as CI:

python -m pip install --pre -e . pytest ruff
python -m ruff check thalovant_skillkit test scripts
python -m pytest -q

For changes to native OVOS integration, also follow the integration job in the test workflow. Its optional dependencies and harness contracts are covered in the reference. Report reproducible problems or suggest improvements in GitHub issues.

Metadata

Release files for thalovant-skillkit 0.39.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thalovant-skillkit 0.39.0
File Size Uploaded Provenance Actions
thalovant_skillkit-0.39.0.tar.gz 300.3 kB With provenance Details for thalovant_skillkit-0.39.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for thalovant-skillkit 0.39.0
File Interpreter ABI Platform Actions
thalovant_skillkit-0.39.0-py3-none-any.whl Python 3 none any Details for thalovant_skillkit-0.39.0-py3-none-any.whl

Total release size: 481.0 kB

Release files / thalovant_skillkit-0.39.0.tar.gz

Download URL thalovant_skillkit-0.39.0.tar.gz
Size 300.3 kB
Tags Source
SHA-256 checksum
How to use checksums
05e6bb2c9532e98944fbaabd9ebb636e09f4523676be319ea3f11373bd66bd0e
BLAKE2b-256 checksum
How to use checksums
b6f56ceab9c8f4f979c5924a73ee83341b5a217398e732ecb79b776c3d9fe618
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / thalovant_skillkit-0.39.0-py3-none-any.whl

Download URL thalovant_skillkit-0.39.0-py3-none-any.whl
Size 180.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0bdc0cd74170f73677e474c2e3b4073b0d80e0a0dbe3828e46f26a074eb10b06
BLAKE2b-256 checksum
How to use checksums
bf65966d48ecaaf535684a4cdf8e6f11e3a26fc6ea6f012c0f61e5629cd43e79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for thalovant-skillkit 0.39.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for thalovant_skillkit-0.39.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.39.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page