Skip to content

fix(docs): skills are /<name>, not /airc:<name> - #19

Merged
joelteply merged 1 commit into
mainfrom
hotfix/skills-invocation-docs
Apr 16, 2026
Merged

joelteply merged 1 commit into
mainfrom
hotfix/skills-invocation-docs

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

install.sh symlinks flat to ~/.claude/skills/, so the valid invocation is /<name> not /airc:<name>. Memento's tab typed /airc:update (following the docs), got "Unknown command", and had to guess /update. Docs now match reality.

install.sh symlinks skills flat into ~/.claude/skills/<name>, so the
valid slash-command invocation is /<name> (/update, /connect, /teardown).
The /airc:<name> form only works if skills were installed as a proper
Claude Code plugin package with an 'airc' namespace — we don't do that.

Bit us today: memento's tab typed `/airc:update` (following the docs)
and got "Unknown command: /airc:update", then had to guess `/update`.

Fixed:
- install.sh: "Skill: /airc:<name>" → "Skill: /<name>" (truthful)
- README.md, skills/*/SKILL.md, integrations/claude-code/README.md:
  every /airc:<name> reference now reads /<name>

Not fixed: install layout stays flat. Namespaced install (~/.claude/skills/airc/<name>)
would make /airc:<name> actually work, but changing layout breaks users'
existing /<name> invocations and requires migration logic in install.sh.
Treating that as a separate, considered change.
@joelteply
joelteply merged commit 46bd4ab into main Apr 16, 2026
1 check passed
@joelteply
joelteply deleted the hotfix/skills-invocation-docs branch April 16, 2026 00:05
joelteply added a commit that referenced this pull request Apr 16, 2026
… docs

Today's production story crammed years of user pain into one day: two
hosts fighting over port 7547, memento paired with the wrong host for
hours, sends that "succeeded" into a different mesh, resume silently
retrying forever on stale auth. The code fixes landed in #17/#18; this
PR fixes the DOCUMENTATION + SKILLS so future users/agents don't
rediscover the same footguns.

## New skill: /repair

One-command nuclear re-pair. Reconstructs the saved invite string
from config, then runs `airc teardown --flush && airc connect <invite>`.
Replaces the error-prone "teardown (forgot --flush) + resume (silent
auth fail)" dance that bit memento today. Takes optional invite argument
to repair onto a new host (useful when you discover you were on the
wrong mesh).

## Updated skills

- /connect: paste invite VERBATIM including `:port` — trimming silently
  pairs with whoever's on default 7547. Troubleshooting section now
  covers the resume-auth-probe failure mode + the wrong-host-on-shared-
  machine case.

- /teardown: explicit --flush vs plain-teardown decision rule. "Rule of
  thumb: if anything about your pairing feels uncertain, use --flush."

- /resume: documents the new auth probe. Failure mode now says follow
  the repair command verbatim from the stderr output.

- /invite: warns to include the port in the pasted string when non-default.
  Tells the user to call out `:7548` explicitly so the recipient doesn't
  trim it.

- /send: replaced the misleading "try teardown and re-pair" guidance.
  Now lists the three exit-class behaviors (auth fail / network queue /
  pending cap) with the correct repair for each.

## Updated integrations

All six integration READMEs (claude-code, cursor, generic, openai-codex,
opencode, windsurf) now document:
- Auth vs network error distinction on send failure
- `/repair` or equivalent nuclear re-pair sequence
- Port-collision symptom ("peers look right but nobody responds — check
  host name in `airc peers`")
- New lifecycle markers ([joined], [left], [QUEUED], [DRAINED], [AUTH FAILED])
  in the generic JSONL protocol doc

## Why this matters

The error-class evidence and the re-pair sequence existed in the code
after today's hotfixes, but the user-facing docs still said "try teardown
and re-pair" with no --flush — which is EXACTLY the wrong advice. A user
following the old docs would land right back in the broken-by-default
state that cost us hours.

Refs #17, #18, #19, and the airc-96dd / vhsm-2c84 port collision on
[email protected] — 2026-04-15 eval.
joelteply added a commit that referenced this pull request Apr 16, 2026
… docs (#20)

Today's production story crammed years of user pain into one day: two
hosts fighting over port 7547, memento paired with the wrong host for
hours, sends that "succeeded" into a different mesh, resume silently
retrying forever on stale auth. The code fixes landed in #17/#18; this
PR fixes the DOCUMENTATION + SKILLS so future users/agents don't
rediscover the same footguns.

## New skill: /repair

One-command nuclear re-pair. Reconstructs the saved invite string
from config, then runs `airc teardown --flush && airc connect <invite>`.
Replaces the error-prone "teardown (forgot --flush) + resume (silent
auth fail)" dance that bit memento today. Takes optional invite argument
to repair onto a new host (useful when you discover you were on the
wrong mesh).

## Updated skills

- /connect: paste invite VERBATIM including `:port` — trimming silently
  pairs with whoever's on default 7547. Troubleshooting section now
  covers the resume-auth-probe failure mode + the wrong-host-on-shared-
  machine case.

- /teardown: explicit --flush vs plain-teardown decision rule. "Rule of
  thumb: if anything about your pairing feels uncertain, use --flush."

- /resume: documents the new auth probe. Failure mode now says follow
  the repair command verbatim from the stderr output.

- /invite: warns to include the port in the pasted string when non-default.
  Tells the user to call out `:7548` explicitly so the recipient doesn't
  trim it.

- /send: replaced the misleading "try teardown and re-pair" guidance.
  Now lists the three exit-class behaviors (auth fail / network queue /
  pending cap) with the correct repair for each.

## Updated integrations

All six integration READMEs (claude-code, cursor, generic, openai-codex,
opencode, windsurf) now document:
- Auth vs network error distinction on send failure
- `/repair` or equivalent nuclear re-pair sequence
- Port-collision symptom ("peers look right but nobody responds — check
  host name in `airc peers`")
- New lifecycle markers ([joined], [left], [QUEUED], [DRAINED], [AUTH FAILED])
  in the generic JSONL protocol doc

## Why this matters

The error-class evidence and the re-pair sequence existed in the code
after today's hotfixes, but the user-facing docs still said "try teardown
and re-pair" with no --flush — which is EXACTLY the wrong advice. A user
following the old docs would land right back in the broken-by-default
state that cost us hours.

Refs #17, #18, #19, and the airc-96dd / vhsm-2c84 port collision on
[email protected] — 2026-04-15 eval.
joelteply added a commit that referenced this pull request Apr 21, 2026
* skills+integrations: repair flow, port-collision warning, error-class docs

Today's production story crammed years of user pain into one day: two
hosts fighting over port 7547, memento paired with the wrong host for
hours, sends that "succeeded" into a different mesh, resume silently
retrying forever on stale auth. The code fixes landed in #17/#18; this
PR fixes the DOCUMENTATION + SKILLS so future users/agents don't
rediscover the same footguns.

## New skill: /repair

One-command nuclear re-pair. Reconstructs the saved invite string
from config, then runs `airc teardown --flush && airc connect <invite>`.
Replaces the error-prone "teardown (forgot --flush) + resume (silent
auth fail)" dance that bit memento today. Takes optional invite argument
to repair onto a new host (useful when you discover you were on the
wrong mesh).

## Updated skills

- /connect: paste invite VERBATIM including `:port` — trimming silently
  pairs with whoever's on default 7547. Troubleshooting section now
  covers the resume-auth-probe failure mode + the wrong-host-on-shared-
  machine case.

- /teardown: explicit --flush vs plain-teardown decision rule. "Rule of
  thumb: if anything about your pairing feels uncertain, use --flush."

- /resume: documents the new auth probe. Failure mode now says follow
  the repair command verbatim from the stderr output.

- /invite: warns to include the port in the pasted string when non-default.
  Tells the user to call out `:7548` explicitly so the recipient doesn't
  trim it.

- /send: replaced the misleading "try teardown and re-pair" guidance.
  Now lists the three exit-class behaviors (auth fail / network queue /
  pending cap) with the correct repair for each.

## Updated integrations

All six integration READMEs (claude-code, cursor, generic, openai-codex,
opencode, windsurf) now document:
- Auth vs network error distinction on send failure
- `/repair` or equivalent nuclear re-pair sequence
- Port-collision symptom ("peers look right but nobody responds — check
  host name in `airc peers`")
- New lifecycle markers ([joined], [left], [QUEUED], [DRAINED], [AUTH FAILED])
  in the generic JSONL protocol doc

## Why this matters

The error-class evidence and the re-pair sequence existed in the code
after today's hotfixes, but the user-facing docs still said "try teardown
and re-pair" with no --flush — which is EXACTLY the wrong advice. A user
following the old docs would land right back in the broken-by-default
state that cost us hours.

Refs #17, #18, #19, and the airc-96dd / vhsm-2c84 port collision on
[email protected] — 2026-04-15 eval.

* feat(teardown): --all flag — nuke every airc process on this machine, ignore scope

Joel 2026-04-21: airc kept "going down" between sessions. Root cause:
two airc-connect bash processes from a previous session (Wed) survived
every teardown for 2 days because they ran from `/tmp/airc-prefix
connect` (the curl|bash bootstrap variant) and were tracked by a
PID file in a scope dir that no longer existed when later teardowns
ran. The default `airc teardown` is scope-aware by design (so it
won't touch other tabs' sessions), but that means it can't recover
from the case where state is so messy that we've lost track of where
the pidfiles SHOULD be.

`airc teardown --all` covers that case. It's additive (still does the
scope-aware path too) and surgical:

- pgrep `(airc|airc-prefix)\s+connect` for THIS user → kill
- For each port in 7547-7559: lsof for python listeners → if the
  command line shows `socket.SOCK_STREAM`/`AF_INET` (i.e. it's an
  airc listener, not some unrelated python), kill it
- pgrep `\.airc/messages\.jsonl` for stale ssh/tail subprocesses
  reading scope message logs → kill them too
- Then falls through to scope-aware path so this scope's pidfile
  + flush also happen if `--flush` was passed alongside

Doesn't touch processes outside the airc port range or anything that
isn't clearly airc-shaped. The "for this user" filter (`pgrep -u`)
keeps it safe on shared machines.

Help text updated to mention `--all`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant