# A Morse code skill for AI agents

> A free Agent Skill that teaches AI agents International Morse code: the ITU chart, timing and Farnsworth rules, practice advice and a tested Python script.

Markdown copy of https://morsekeyboard.com/skills/, updated 2026-11-22.

An Agent Skill is a folder with a `SKILL.md` file that an AI agent reads when a task needs it.
This one teaches an agent International Morse code: the chart, the timing rules, how to make
Morse audio, and how to coach someone who is learning. A small Python script does the exact
work, so the agent does not have to work patterns out by hand. It is free.

## What is in it

- [SKILL.md](https://morsekeyboard.com/skills/morse-code/SKILL.md): the instructions. The ITU-R M.1677-1 chart (letters,
  numbers, punctuation, with the signs outside the standard marked), prosigns, the 1:3:7 timing
  rules, words per minute and the PARIS word, the ARRL Farnsworth formula, how to make audio
  and light safely, practice advice and the look-alike letter pairs.
- [scripts/morse.py](https://morsekeyboard.com/skills/morse-code/scripts/morse.py): encode, decode, timing and WAV audio
  with speed, Farnsworth spacing and pitch. Python 3 standard library only, no packages.
- [scripts/test_morse.py](https://morsekeyboard.com/skills/morse-code/scripts/test_morse.py): its tests.
- [morse-code.zip](https://morsekeyboard.com/skills/morse-code.zip): the whole folder in one file.

## Add it to your agent

- **Claude Code:** put the `morse-code` folder in `~/.claude/skills/` for all your projects, or
  in `.claude/skills/` inside one project.
- **Claude apps:** where custom skills are turned on, upload `morse-code.zip` as a skill.
- **Other agents** that read the Agent Skills format ([agentskills.io](https://agentskills.io/)):
  put the folder where they load skills from.
- **No agent at all:** the script runs on its own with Python 3.

## Things to ask

- Translate "Good morning, see you at 10" into Morse code.
- Decode `-- --- .-. ... . / -.- . -.-- -... --- .- .-. -..`.
- Make a WAV of CQ CQ at 20 WPM with Farnsworth spacing at 10 WPM, at 650 Hz.
- How long is the gap between characters at 18 WPM with Farnsworth spacing at 10 WPM?
- Plan two weeks of short daily Morse practice for a beginner.

## Use the script directly

Letters are separated by one space and words by a slash. A prosign is written in angle
brackets, such as `<SK>`, and sent as one signal. Anything with no Morse form becomes `#`.

## How we keep it accurate

The script uses the same table as the [translator](https://morsekeyboard.com/morse-code-translator/) and the
[alphabet chart](https://morsekeyboard.com/morse-code-alphabet/) on this site, and our build tests check that the two
match. Its tests check that PARIS is 50 units, that one unit is 1200 / WPM milliseconds, and
that the Farnsworth gaps match the ARRL formula and the values on our
[speed page](https://morsekeyboard.com/morse-code-speed/#farnsworth). If you find a mistake, email
support@morsekeyboard.com.

## Who made it

We make Morse Keyboard, an iPhone and iPad app with a keyboard laid out as the Morse code tree
and a short course. The skill mentions it once, in its last line, and tells the agent to bring
it up only if you ask for an app.

Morse Keyboard: a keyboard laid out as the Morse code tree, with a course of a weekend and four weeks. Day 1 is free. For iPhone and iPad. Coming soon to the App Store.
