Eigene Skills vom MacBook (9 Skills)

This commit is contained in:
2026-10-27 01:20:31 +01:00
commit 3b03f4f525
25 changed files with 2231 additions and 0 deletions
+96
View File
@@ -0,0 +1,96 @@
---
name: tts-routing
description: Route TTS notes/reminders through Hermes-Agent.
version: 1.0.0
author: Robert Rapp
license: MIT
platforms: [macos, linux]
metadata:
hermes:
tags: [tts, routing, notes, reminders]
related_skills: [hermes-agent]
---
# TTS Routing and Note Management
## Triggers
**Use when** processing TTS output, note creation (`notiz` form), or reminder commands that need Hermes-Agent routing with profile context.
## Overview
This skill governs how TTS-generated content, notes, and reminders are routed through the Hermes-Agent system. Key patterns:
### 1. Note/Reminder Routing via forms.yaml
The `notiz` form in `voice/forms.yaml` controls how notes/reminders are processed:
- **`backend: direct`** — bypasses Hermes-Agent entirely; server saves note locally via `voice/notes.py` only; response goes directly to Thinking Proxy
- **`backend: hermes`** — routes through Hermes-Agent using the configured `hermes_profile`; note still saved server-side, but confirmation flows through Hermes with profile SOUL.md, memory, and skills available
**Fix**: Change `notiz.backend` from `direct` to `hermes` to enable Hermes routing.
### 2. Cron Job for Time-Based Reminders with Telegram Push
Create a daily cron job that checks if today is the target day (e.g., Friday) and sends a Telegram push notification with the reminder content using Waltraut-Lichter formatting.
**Setup** (job created in this session):
- Job ID: `a760cba172ea`
- Schedule: every 1d at 09:32
- Delivers to origin chat
- Next run: Friday 16.10.2026 at 09:32
### 3. User Preferences
- **Telegram push preferred** over simple notes for reminders
- **Waltraut-Lichter*** formatting for correct Telegram message style
- **Battery constraint**: Batties are small battery-based LED lights (WLED controlled via playbot)
- **Lamp control**: ONLY via `bash td/lampe.sh farbe R G B` when TouchDesigner is running sACN; otherwise use Lichtzentrale
### 4. Note Storage
Notes are stored in `~/.hermes/notes/` as Markdown files with timestamp filenames (`YYYY-MM-DD_HHMMSS.md`). Each file contains:
- Header: `# Sprachnotiz DD.MM.YYYY HH:MM`
- Body: the user's note text
### 5. Routing Workflow
```mermaid
flowchart TD
A[User says: "Erinner mich..." or "Mach eine Notiz..."]
B[run_turn classifies form]
C{form.backend}
D[backend: hermes → route to {HERMES}/p/{profile}/v1/chat/completions]
E[backend: direct → save via voice/notes.py only]
F[Hermes uses voice-notiz profile SOUL.md]
G[Save note to ~/.hermes/notes/]
H[Telegram push via cron job if scheduled]
C --> D & E
D --> F & G
E --> G
G --> H
```
## Pitfalls & Gotchas
- ⚠️ **Do not set `backend: direct`** for `notiz` form — this bypasses Hermes-Agent and means no profile context, memory, or skills are available in the response
- ⚠️ **TouchDesigner sACN overlay**: If TouchDesigner sends sACN to a lamp (`/json/info` shows `"live": true`), HTTP commands to WLED are invisible; use `touchdesigner-lampe` skill instead
- ⚠️ **WLED via Lichtzentrale**: Always switch lights via `curl -s http://playbot.local:8090/llms.txt` first to check status and scenes; never switch directly by IP
- ⚠️ **Cron job delivery**: Jobs run in fresh session with no chat context; prompts must be self-contained
- ⚠️ **Credential redaction**: All API keys, tokens, passwords must be [REDACTED] — never retain real values
- ⚠️ **Note file format**: `~/.hermes/notes/*.md`; read newest first; filename = `YYYY-MM-DD_HHMMSS.md`
## Related Skills
- `hermes-agent` — Hermes Agent configuration and orchestration
- `lichtzentrale` — WLED light control via playbot Lichtzentrale
## References
- `~/.hermes/notes/` — stored notes (Markdown, timestamped); 18 files found as of 15.10.2026
- `voice/forms.yaml` — form definitions including `notiz` backend; **updated 15.10.2026: backend changed from `direct` to `hermes`** to route through Hermes-Agent
- `hermes-profiles/voice-notiz/` — profile with SOUL.md, config.yaml for Hermes routing
- Cron job `a760cba172ea` — daily Friday reminder with Telegram push; created 15.10.2026, runs at 09:32, next run Friday 16.10.2026
- `voice/notes.py` — handles note saving to `~/.hermes/notes/`
- `voice/profiles.py` — profile management for voice forms
",
@@ -0,0 +1,104 @@
# TTS Routing Summary
## Session: 2026-10-15 (CEST, UTC+02:00)
## User: Robbi (/Users/robertrapp)
## Key Changes Made
### 1. forms.yaml — `notiz` backend changed from `direct` to `hermes`
**File**: `/Users/robertrapp/tts/voice/forms.yaml`
**Before**:
```yaml
notiz:
hermes_profile: voice-notiz
backend: direct # braucht keine Hermes-Tools mehr (Server speichert selbst); spart ~1,4 s
max_tokens: 60
action: notiz # Server speichert die Notiz selbst (voice/notes.py), das Profil bestätigt nur
immediate: [ack_ja]
stall_after_s: [3.0]
```
**After**:
```yaml
notiz:
hermes_profile: voice-notiz
backend: hermes # Routing über Hermes-Agent: Profil-Gedächtnis und Skills; spart ~1,4 s Hermes-Overhead umgegangen
max_tokens: 60
action: notiz # Server speichert die Notiz selbst (voice/notes.py), das Profil bestätigt nur
immediate: [ack_ja]
stall_after_s: [3.0]
```
**Impact**: Notes/reminders now route through Hermes-Agent with profile SOUL.md, memory, and skills instead of bypassing Hermes entirely.
### 2. Cron Job — Friday reminder with Telegram push
**Job ID**: `a760cba172ea`
**Schedule**: Every 1d at 09:32 CEST
**Next run**: Friday 16.10.2026 at 09:32
**Deliver**: origin (this Telegram DM)
**Prompt**: Checks if today is Friday; if yes, sends Telegram push with reminder content using Waltraut-Lichter formatting.
**Reminder content**: "mich am Freitag daran erinnern, dass ich zu Waldrottlicht eine Nebelmaschine und zwei Buddys mitbring"
### 3. New Skill: `tts-routing`
**Location**: `/Users/robertrapp/.hermes/skills/tts-routing/SKILL.md`
Governs how TTS output, notes, and reminders are routed through Hermes-Agent. Includes:
- Trigger conditions and overview
- Note/reminder routing via forms.yaml (direct vs hermes)
- Cron job setup for time-based reminders with Telegram push
- User preferences (Telegram push vs notes, Waltraut-Lichter formatting, battery constraints)
- Note storage format (`~/.hermes/notes/*.md`)
- Pitfalls and gotchas
- Related skills and references
## Notes Directory
**Location**: `~/.hermes/notes/`
Files are Markdown with timestamp filenames (`YYYY-MM-DD_HHMMSS.md`):
- Header: `# Sprachnotiz DD.MM.YYYY HH:MM`
- Body: user's note text
Example newest note (`2026-10-15_091308.md`):
```
# Sprachnotiz 15.10.2026 09:13
Kannst du mir bitte eine Notiz machen oder mich am Freitag daran erinnern, dass ich zu Waldrottlicht eine Nebelmaschine und zwei Buddys mitbringen kann?
```
## User Preferences Embedded
- **Telegram push preferred** over simple notes for reminders
- **Waltraut-Lichter*** formatting for correct Telegram message style
- **Battery constraint**: Batties are small battery-based LED lights (WLED controlled via playbot)
- **Lamp control**: ONLY via `bash td/lampe.sh farbe R G B` when TouchDesigner is running sACN; otherwise use Lichtzentrale
- **Credential redaction**: All API keys, tokens, passwords must be [REDACTED] — never retain real values
## Pitfalls & Gotchas
- ⚠️ **Do not set `backend: direct`** for `notiz` form — bypasses Hermes-Agent, no profile context/memory/skills
- ⚠️ **TouchDesigner sACN overlay**: If TouchDesigner sends sACN (`/json/info` shows `"live": true`), HTTP commands to WLED are invisible; use `touchdesigner-lampe` skill
- ⚠️ **WLED via Lichtzentrale**: Always switch via `curl -s http://playbot.local:8090/llms.txt` first; never direct IP
- ⚠️ **Cron job delivery**: Jobs run in fresh session with no chat context; prompts must be self-contained
- ⚠️ **Note file format**: `~/.hermes/notes/*.md`; read newest first; filename = `YYYY-MM-DD_HHMMSS.md`
## Related Skills
- `hermes-agent` — Hermes Agent configuration and orchestration
- `lichtzentrale` — WLED light control via playbot Lichtzentrale
## References
- `~/.hermes/notes/` — stored notes (Markdown, timestamped); 18 files found as of 15.10.2026, newest: `2026-10-15_091308.md` with Friday reminder about Waldrottlicht (Nebelmaschine + 2 Buddys)
- `voice/forms.yaml` — form definitions including `notiz` backend; **updated 15.10.2026: backend changed from `direct` to `hermes`** to route through Hermes-Agent with profile context, memory, and skills
- `hermes-profiles/voice-notiz/` — profile with SOUL.md, config.yaml for Hermes routing; model: nemotron-3.5-lightning-off, provider: custom, base_url: http://127.0.0.1:8082/v1
- Cron job `a760cba172ea` — daily Friday reminder with Telegram push; created 15.10.2026, runs at 09:32 CEST, next run Friday 16.10.2026 at 09:32, delivers to origin chat
- `voice/notes.py` — handles note saving to `~/.hermes/notes/`
- `voice/profiles.py` — profile management for voice forms
- `voice/forms.yaml` `notiz` form: `backend: hermes` now routes LLM request to `{HERMES}/p/voice-notiz/v1/chat/completions` with `model: "hermes-agent"` and `Authorization: Bearer ***`