International Code of Signals
Fluent command of Pub. 102 — the 1969 International Code of Signals — as a working signal book and as a century-hardened protocol-design casebook for agent systems and Port Daddy's maritime symbology.
Use This For
- Decoding or composing any ICOS signal: single letters, two-letter groups (
NC, CB 6), medical M** groups, complements, hoists with substitutes, procedure signals.
- Explaining signaling procedure per method: flag hoist etiquette (dip/close-up), flashing-light message anatomy, sound-signal restrictions, radiotelephony calls, MAYDAY/PAN PAN/SECURITE.
- Distress and lifesaving signals: the 14 COLREGS distress signals, shore-to-ship landing signals, breeches-buoy protocol.
- Designing inter-agent message registries, ack semantics, priority classes, or mode-scoped vocabularies on ICOS principles.
- Auditing or extending Port Daddy's flag symbology (
SIGNAL_FOR_STATE, hoist combos, alert-tier colors) against the real Code.
Do Not Use This For
- COLREGS navigation rules (right of way, lights, fog conduct) — the Code only touches COLREGS where sound signals overlap.
- Ship handling and maneuvering craft (
a-task-analysis-of-pier-side-ship-handli — Jury-rig library, not bundled in this repo).
- Radio spectrum/licensing questions, GMDSS equipment carriage rules.
- Palette or branding work with no signal semantics (
color-theory-palette-harmony-expert).
Bundle Contents
Everything shipped with this skill (only this file auto-loads — the rest is here so you know to reach for it):
| Path |
What it is |
data/signals.json |
THE ground-truth corpus, parsed from Pub. 102: 26 single-letter signals (+12 numeral-complement forms), 645 two-letter General Code signals + 723 complements, 445 Medical Code signals, procedure signals, Morse, phonetic tables, Complements Tables 1–3, icebreaker session table. Coverage verified against the raw extraction (645/645, 445/445) |
scripts/icos_lookup.py |
Query CLI over the corpus — exact lookup, hybrid search, spelling, hoists, tables (usage below) |
scripts/rebuild_corpus.py |
Regenerates data/signals.json from a pdftotext -layout extraction of the Pub. 102 PDF; only needed if the source book changes |
references/*.md |
Seven deep dives — five chapter distillations + two adaptation layers (index at the bottom of this file) |
examples/worked-examples.md |
Encode/decode walkthroughs across methods and both transfer layers |
agents/openai.yaml |
Codex/OpenAI agent binding (same corpus-first discipline) |
Provenance: Pub. 102, International Code of Signals, US Edition 1969 (Revised 2003), NIMA — a US Government publication, no copyright claimed under 17 U.S.C.
The Code at a Glance
mindmap
root((ICOS 1969))
Chapter 1 — Transmission
7 methods, one semantics
Data grammar: A/C/D/L/G/R/S/V/T/Z prefixes
Procedure signals: AR, AS, RPT+scope, T, EEEEEE
Morse + Alfa-Bravo + NADAZERO figures
Single letters
Urgent or very common
Complements: K 1, Z 2359
Icebreaker session WM...WO
Chapter 2 — General Code
645 two-letter signals by subject
Complements Tables 1-3
Pratique ZS-ZZ
Chapter 3 — Medical
445 M** signals
Case-description schema
Tables M-1/2/3 ontology
Chapter 4 — Emergency
14 distress encodings
Lifesaving signals
MAYDAY / PAN PAN / SECURITE
Transfer layer
Agent protocol design
Port Daddy symbology
Core Workflow
flowchart TD
Q[Request] --> T{Kind?}
T -->|What does X mean / find signal for Y| L[scripts/icos_lookup.py code or search]
T -->|Compose a message| C[Base group + complements + typed data fields<br/>see general-signal-code.md composition pattern]
T -->|Procedure question| P[references/signaling-instructions.md<br/>+ single-letter-and-procedure.md]
T -->|Emergency semantics| D[references/distress-and-lifesaving.md]
T -->|Medical exchange| M[references/medical-signal-code.md]
T -->|Agent protocol design| A[references/agent-protocol-adaptation.md<br/>10 mechanisms + registry procedure]
T -->|pd flags / UI semantics| S[references/port-daddy-symbology.md<br/>audit table + extension rules]
L --> V{Answer complete?}
C --> V
V -->|Cite the group + exact meaning| OUT[Answer with code, meaning, method notes]
V -->|Ambiguous context| CTX[State the context binding: harbor vs sea,<br/>icebreaker session, fishing grounds, sound vs visual]
Always verify a group against the corpus before asserting its meaning — python3 scripts/icos_lookup.py code <GROUP>. The corpus (data/signals.json, parsed from Pub. 102) is ground truth over memory: 26 single letters, 645 two-letter signals + 723 complements, 445 medical signals, procedure signals, Morse, phonetics, complements tables, icebreaker table.
The Lookup Tool
python3 scripts/icos_lookup.py code NC # exact lookup (also: "AE 2", MAA, W)
python3 scripts/icos_lookup.py search towing # HYBRID search: BM25 + `pd embed` cosine, RRF-fused
python3 scripts/icos_lookup.py spell MAYDAY # phonetic + Morse spelling
python3 scripts/icos_lookup.py hoist 1100 # flag hoist incl. substitute logic
python3 scripts/icos_lookup.py table 2 # complements tables 1/2/3
Search follows the repo's hybrid policy (AGENTS.md "Search & Matching Policy"): semantic similarity comes from the corpus-policy-selected local text profile via pd embed --corpus pd.skill.international-code-signals.v1, with corpus vectors cached one-time under ~/.port-daddy/cache/. If the model is unavailable it degrades to lexical-only loudly and points at pd doctor.
scripts/rebuild_corpus.py <pdftotext-output> <out.json> regenerates the corpus from a pdftotext -layout extraction of the Pub. 102 PDF (only needed if the source book changes).
Non-Negotiables (the expert reflexes)
- Meaning = signal × context.
P differs in harbor / on fishing grounds / by sound; icebreaker sessions (WM...WO) re-bind letters wholesale. Never gloss a letter without stating which context you assumed.
- Complete-meaning principle. Groups never compose into sentences; only complements, modality operators (
C/NO/RQ — never on single letters), and typed data fields modify a group. Unallocated groups mean nothing.
- Transport vs semantics.
RPT = transmission failed; ZL = transmission fine, meaning opaque. Keep the distinction in every protocol you touch.
- R has no single-letter meaning in the 1969 Code (procedure "Received" only) — the "way is off my ship" gloss is the 1931 code surviving as folklore.
- Distress is a legal category, not an intensity knob: grave and imminent danger + need of immediate assistance, else it's PAN PAN or a code signal.
- Asterisked letters (B C D E G H I S T Z) by sound only within COLREGS-compliant use.
Anti-Pattern: Answering from Flag-Chart Folklore
Novice: quotes meanings from decorative flag charts or pre-1969 tables (R = "way is off my ship", U = "you are standing into danger" phrasings vary, invented meanings for numerals).
Expert: the 1969 revision (effective 1 April 1969) re-allocated the namespace; only Pub. 102 text is normative. Look the group up in data/signals.json and quote it exactly.
Timeline: 1857 first code → 1931/1932 two-volume code (vocabulary method, geographic sections) → 1965 IMCO adoption, effective 1969: complete-meaning signals only → 2003 US revision (this corpus).
Detection: a claimed meaning that isn't in the corpus.
Anti-Pattern: Porting the Metaphor Without the Registry
Novice: adopts maritime flags in an agent UI as theming; meanings drift per surface and contradict the book.
Expert: the transfer value of ICOS is its discipline — registered meanings, control/content separation, priority preemption — not its aesthetics. Port the registry and its governance, then the flags carry real information (see port-daddy-symbology.md).
Detection: a SIGNAL_FOR_STATE-style table with glosses absent from the corpus.
References
references/signaling-instructions.md — Consult for transmission procedure by any method: flag/light/sound/RT/hand-flag protocol, data grammar (bearings, positions, times), substitutes, repetition scopes.
references/single-letter-and-procedure.md — Consult for the 26 single-letter meanings, numeral complements, icebreaker session table, procedure signals, Morse, phonetic tables.
references/general-signal-code.md — Consult for two-letter namespace layout, key signals per subject, Complements Tables 1–3, pratique handshake, composition pattern.
references/medical-signal-code.md — Consult for the M** consultation schema, Tables M-1/2/3, and its lessons for structured triage vocabularies.
references/distress-and-lifesaving.md — Consult for the 14 distress signals, lifesaving/landing signals, MAYDAY/PAN PAN/SECURITE procedure and preemption.
references/agent-protocol-adaptation.md — Consult when designing agent message registries, ack/priority semantics, or reviewing coordination protocols.
references/port-daddy-symbology.md — Consult when touching pd's flag mappings, hoist badges, alert-tier colors, or extending maritime UI semantics.
examples/worked-examples.md — Worked encode/decode walkthroughs across methods and both adaptation layers.
agents/openai.yaml — Codex/OpenAI agent binding for this skill (same corpus-first discipline, same IO contract).
1---2name: international-code-of-signals3description: >-4 Expert on the International Code of Signals (ICOS, Pub. 102, 1969/2003) — encode, decode, and explain maritime5 signals by any method (flag hoists, flashing light, sound, radiotelephony): single-letter urgent signals, the6 two-letter General Signal Code, the three-letter Medical Signal Code, procedure signals, Morse, phonetic7 alphabets, distress and lifesaving signals, MAYDAY/PAN PAN/SECURITE — plus adapting ICOS mechanisms8 (complete-meaning registries, complements tables, two-phase acks, priority preemption) to inter-agent9 communication protocol design and to Port Daddy's flag symbology (SIGNAL_FOR_STATE, hoists, alert tiers). Use10 for signal lookup/composition, flag meanings, signaling procedure, agent message-registry design, or auditing11 pd maritime UI semantics. NOT for COLREGS right-of-way rules, ship handling12 (`a-task-analysis-of-pier-side-ship-handli`, a Jury-rig-library skill), radio hardware/frequency regulation, or palette work without signal13 semantics (`color-theory-palette-harmony-expert`).14license: Apache-2.015allowed-tools: Read,Grep,Glob,Bash(python3:*)16metadata:17 category: Domain Knowledge & Protocol Design18 tags:19 - international-code-of-signals20 - maritime-signaling21 - signal-flags22 - agent-protocols23 - port-daddy-symbology24 provenance:25 kind: first-party26 owners:27 - port-daddy28 source: https://skillmd.com/skills/curiositech/international-code-of-signals29 upstream: "Pub. 102, International Code of Signals, US Edition 1969 (Revised 2003), NIMA — parsed corpus in data/signals.json"30 pairs-with:31 - skill: agent-conversation-protocols32 reason: ICOS supplies the historical design patterns (complete-meaning registry, procedure signals, priority classes) that agent conversation protocols formalize.33 - skill: agent-interchange-formats34 reason: Complements tables and typed data fields are the ICOS ancestors of interchange schemas; use together when designing fleet message formats.35 - skill: color-theory-palette-harmony-expert36 reason: Flag-face colors vs semantic state colors need palette discipline when extending pd's maritime UI.37 io-contract:38 kind: deliverable39 consumes:40 - kind: signal-or-message-to-encode-or-decode41 format: text42 - kind: protocol-or-symbology-design-brief43 format: markdown44 produces:45 - kind: signal-translation-or-composition46 format: text47 - kind: protocol-or-symbology-design-review48 format: markdown49---5051# International Code of Signals5253Fluent command of Pub. 102 — the 1969 International Code of Signals — as a working signal book *and* as a century-hardened protocol-design casebook for agent systems and Port Daddy's maritime symbology.5455## Use This For5657- Decoding or composing any ICOS signal: single letters, two-letter groups (`NC`, `CB 6`), medical `M**` groups, complements, hoists with substitutes, procedure signals.58- Explaining signaling procedure per method: flag hoist etiquette (dip/close-up), flashing-light message anatomy, sound-signal restrictions, radiotelephony calls, MAYDAY/PAN PAN/SECURITE.59- Distress and lifesaving signals: the 14 COLREGS distress signals, shore-to-ship landing signals, breeches-buoy protocol.60- Designing inter-agent message registries, ack semantics, priority classes, or mode-scoped vocabularies on ICOS principles.61- Auditing or extending Port Daddy's flag symbology (`SIGNAL_FOR_STATE`, hoist combos, alert-tier colors) against the real Code.6263## Do Not Use This For6465- COLREGS navigation rules (right of way, lights, fog conduct) — the Code only touches COLREGS where sound signals overlap.66- Ship handling and maneuvering craft (`a-task-analysis-of-pier-side-ship-handli` — Jury-rig library, not bundled in this repo).67- Radio spectrum/licensing questions, GMDSS equipment carriage rules.68- Palette or branding work with no signal semantics (`color-theory-palette-harmony-expert`).6970## Bundle Contents7172Everything shipped with this skill (only this file auto-loads — the rest is here so you know to reach for it):7374| Path | What it is |75|---|---|76| `data/signals.json` | THE ground-truth corpus, parsed from Pub. 102: 26 single-letter signals (+12 numeral-complement forms), 645 two-letter General Code signals + 723 complements, 445 Medical Code signals, procedure signals, Morse, phonetic tables, Complements Tables 1–3, icebreaker session table. Coverage verified against the raw extraction (645/645, 445/445) |77| `scripts/icos_lookup.py` | Query CLI over the corpus — exact lookup, hybrid search, spelling, hoists, tables (usage below) |78| `scripts/rebuild_corpus.py` | Regenerates `data/signals.json` from a `pdftotext -layout` extraction of the Pub. 102 PDF; only needed if the source book changes |79| `references/*.md` | Seven deep dives — five chapter distillations + two adaptation layers (index at the bottom of this file) |80| `examples/worked-examples.md` | Encode/decode walkthroughs across methods and both transfer layers |81| `agents/openai.yaml` | Codex/OpenAI agent binding (same corpus-first discipline) |8283Provenance: *Pub. 102, International Code of Signals*, US Edition 1969 (Revised 2003), NIMA — a US Government publication, no copyright claimed under 17 U.S.C.8485## The Code at a Glance8687```mermaid88mindmap89 root((ICOS 1969))90 Chapter 1 — Transmission91 7 methods, one semantics92 Data grammar: A/C/D/L/G/R/S/V/T/Z prefixes93 Procedure signals: AR, AS, RPT+scope, T, EEEEEE94 Morse + Alfa-Bravo + NADAZERO figures95 Single letters96 Urgent or very common97 Complements: K 1, Z 235998 Icebreaker session WM...WO99 Chapter 2 — General Code100 645 two-letter signals by subject101 Complements Tables 1-3102 Pratique ZS-ZZ103 Chapter 3 — Medical104 445 M** signals105 Case-description schema106 Tables M-1/2/3 ontology107 Chapter 4 — Emergency108 14 distress encodings109 Lifesaving signals110 MAYDAY / PAN PAN / SECURITE111 Transfer layer112 Agent protocol design113 Port Daddy symbology114```115116## Core Workflow117118```mermaid119flowchart TD120 Q[Request] --> T{Kind?}121 T -->|What does X mean / find signal for Y| L[scripts/icos_lookup.py code or search]122 T -->|Compose a message| C[Base group + complements + typed data fields<br/>see general-signal-code.md composition pattern]123 T -->|Procedure question| P[references/signaling-instructions.md<br/>+ single-letter-and-procedure.md]124 T -->|Emergency semantics| D[references/distress-and-lifesaving.md]125 T -->|Medical exchange| M[references/medical-signal-code.md]126 T -->|Agent protocol design| A[references/agent-protocol-adaptation.md<br/>10 mechanisms + registry procedure]127 T -->|pd flags / UI semantics| S[references/port-daddy-symbology.md<br/>audit table + extension rules]128 L --> V{Answer complete?}129 C --> V130 V -->|Cite the group + exact meaning| OUT[Answer with code, meaning, method notes]131 V -->|Ambiguous context| CTX[State the context binding: harbor vs sea,<br/>icebreaker session, fishing grounds, sound vs visual]132```133134**Always verify a group against the corpus before asserting its meaning** — `python3 scripts/icos_lookup.py code <GROUP>`. The corpus (`data/signals.json`, parsed from Pub. 102) is ground truth over memory: 26 single letters, 645 two-letter signals + 723 complements, 445 medical signals, procedure signals, Morse, phonetics, complements tables, icebreaker table.135136## The Lookup Tool137138```bash139python3 scripts/icos_lookup.py code NC # exact lookup (also: "AE 2", MAA, W)140python3 scripts/icos_lookup.py search towing # HYBRID search: BM25 + `pd embed` cosine, RRF-fused141python3 scripts/icos_lookup.py spell MAYDAY # phonetic + Morse spelling142python3 scripts/icos_lookup.py hoist 1100 # flag hoist incl. substitute logic143python3 scripts/icos_lookup.py table 2 # complements tables 1/2/3144```145146Search follows the repo's hybrid policy (AGENTS.md "Search & Matching Policy"): semantic similarity comes from the corpus-policy-selected local text profile via `pd embed --corpus pd.skill.international-code-signals.v1`, with corpus vectors cached one-time under `~/.port-daddy/cache/`. If the model is unavailable it degrades to lexical-only **loudly** and points at `pd doctor`.147148`scripts/rebuild_corpus.py <pdftotext-output> <out.json>` regenerates the corpus from a `pdftotext -layout` extraction of the Pub. 102 PDF (only needed if the source book changes).149150## Non-Negotiables (the expert reflexes)1511521. **Meaning = signal × context.** `P` differs in harbor / on fishing grounds / by sound; icebreaker sessions (`WM`...`WO`) re-bind letters wholesale. Never gloss a letter without stating which context you assumed.1532. **Complete-meaning principle.** Groups never compose into sentences; only complements, modality operators (`C`/`NO`/`RQ` — never on single letters), and typed data fields modify a group. Unallocated groups mean nothing.1543. **Transport vs semantics.** `RPT` = transmission failed; `ZL` = transmission fine, meaning opaque. Keep the distinction in every protocol you touch.1554. **R has no single-letter meaning** in the 1969 Code (procedure "Received" only) — the "way is off my ship" gloss is the 1931 code surviving as folklore.1565. **Distress is a legal category**, not an intensity knob: grave and imminent danger + need of immediate assistance, else it's PAN PAN or a code signal.1576. **Asterisked letters** (B C D E G H I S T Z) by *sound* only within COLREGS-compliant use.158159## Anti-Pattern: Answering from Flag-Chart Folklore160161**Novice**: quotes meanings from decorative flag charts or pre-1969 tables (R = "way is off my ship", U = "you are standing into danger" phrasings vary, invented meanings for numerals).162**Expert**: the 1969 revision (effective 1 April 1969) re-allocated the namespace; only Pub. 102 text is normative. Look the group up in `data/signals.json` and quote it exactly.163**Timeline**: 1857 first code → 1931/1932 two-volume code (vocabulary method, geographic sections) → 1965 IMCO adoption, effective 1969: complete-meaning signals only → 2003 US revision (this corpus).164**Detection**: a claimed meaning that isn't in the corpus.165166## Anti-Pattern: Porting the Metaphor Without the Registry167168**Novice**: adopts maritime flags in an agent UI as theming; meanings drift per surface and contradict the book.169**Expert**: the transfer value of ICOS is its *discipline* — registered meanings, control/content separation, priority preemption — not its aesthetics. Port the registry and its governance, then the flags carry real information (see `port-daddy-symbology.md`).170**Detection**: a `SIGNAL_FOR_STATE`-style table with glosses absent from the corpus.171172## References173174- `references/signaling-instructions.md` — Consult for transmission procedure by any method: flag/light/sound/RT/hand-flag protocol, data grammar (bearings, positions, times), substitutes, repetition scopes.175- `references/single-letter-and-procedure.md` — Consult for the 26 single-letter meanings, numeral complements, icebreaker session table, procedure signals, Morse, phonetic tables.176- `references/general-signal-code.md` — Consult for two-letter namespace layout, key signals per subject, Complements Tables 1–3, pratique handshake, composition pattern.177- `references/medical-signal-code.md` — Consult for the M** consultation schema, Tables M-1/2/3, and its lessons for structured triage vocabularies.178- `references/distress-and-lifesaving.md` — Consult for the 14 distress signals, lifesaving/landing signals, MAYDAY/PAN PAN/SECURITE procedure and preemption.179- `references/agent-protocol-adaptation.md` — Consult when designing agent message registries, ack/priority semantics, or reviewing coordination protocols.180- `references/port-daddy-symbology.md` — Consult when touching pd's flag mappings, hoist badges, alert-tier colors, or extending maritime UI semantics.181- `examples/worked-examples.md` — Worked encode/decode walkthroughs across methods and both adaptation layers.182- `agents/openai.yaml` — Codex/OpenAI agent binding for this skill (same corpus-first discipline, same IO contract).