Index of every page on this site: llms.txt
All skills
brettr7388 avatar

/talk-to-type

@f2b10aa
Run it yourself

Build a macOS push-to-talk dictation app that inserts cleaned-up text at the cursor in any app. Use when the user asks for dictation, voice typing, speech-to-text at the cursor, or a Wispr Flow style tool.

  • 1 file
  • 3.3 KB
  • Updated 4 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/brettr7388/app-killers/talk-to-type

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈55 tokens for metadata: the name and description. ≈778 when used: this file.

Description uses 2.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈220 characters, or 2.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Replaces Wispr Flow ($15/mo). Runs locally — no API key, no credits.

Talk To Type — push-to-talk dictation anywhere

Build a macOS menu bar app: hold a key, talk, release, and cleaned-up text appears at the cursor in whatever app is frontmost.

Swift + SwiftPM, no Xcode project needed — a build.sh that runs swift build -c release, assembles a .app bundle and ad-hoc codesigns it.

Behaviour

  • Hold Fn to record via a global event tap. Release to insert. Esc cancels.
  • Ignore an accidental tap under 0.4s with nothing said.
  • Fn + Space for hands-free mode: keep talking without holding. Tap Fn to stop.
  • Hold Fn + Ctrl for command mode: speak an instruction ("make this more concise", "turn this into bullet points"). If text is selected, replace it; otherwise insert.

Speech

Use Apple's on-device SFSpeechRecognizer. Free, no API key, works offline, and fast enough for push-to-talk. Feed the user's personal dictionary (names, brands, jargon) in as contextual strings — it fixes most proper-noun errors.

Cleanup

Polish the raw transcript with claude -p — the user's Claude subscription, not an API key. Strip filler words, resolve self-corrections ("tuesday, wait no, friday" → "friday"), fix grammar, and match the tone of the target app (formal in Mail, casual in Slack, code-aware in a terminal).

Ship a rule-based fallback for when claude isn't installed, so it degrades instead of breaking.

Inserting the text — do it exactly this way

1. save the user's current clipboard
2. put the transcript on the pasteboard
3. send a synthetic Cmd+V
4. RESTORE the saved clipboard

This is the only approach that works in every app. Skipping step 4 silently eats whatever the user had copied — it's the single most common way this feature makes people hate the app.

UI

A floating pill at the bottom of the screen while recording, colour-coded by mode, so it's obvious the mic is live. Keep a searchable history of the last ~200 dictations.

Permissions

Microphone, Speech Recognition, and Accessibility (for the global hotkey event tap and the paste). Prompt on first launch.

The trap: every rebuild changes the ad-hoc signature and invalidates the old TCC grants. The Accessibility toggle shows ON but is dead. After each rebuild:

tccutil reset Accessibility <bundle-id>
tccutil reset Microphone <bundle-id>
tccutil reset SpeechRecognition <bundle-id>

Why this one isn't a localhost app

Typing into other applications requires a native global event tap and Accessibility permission. A web page can't do it. This one is a real menu bar app.

What you need to build it

Not full Xcode. This builds with SwiftPM (swift build -c release), which only needs the Command Line Tools:

xcode-select --install     # ~1GB, and it opens a dialog you have to click Install on

Claude can run that command for you, but macOS shows a GUI prompt that a human has to accept — it can't be fully automated. Once the tools are in, everything else is scripted.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at f2b10aa. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 4 months ago

README badge

README badge for brettr7388/app-killers/talk-to-type