claude-shared · shared skill
A one-sentence Discord notice that carries a brief any AI can read cold — and refuses to post a link nobody can open.
/startwork · merged to main 2026-10-24 · administrator
When someone starts work, everyone else learns about it by accident or by asking. Their AI assistants learn nothing at all, because the material lives in a private repository.
The gap is not notification. It is that a notice without a fetchable brief cannot be acted on.
A link nobody can open is worse than no link at all — so reachability is checked, never assumed.
The design principle everything else follows from
Every precondition is enforced by HTTP status or string check. A bad post cannot be edited away, so it must not be sent.
Attribution and deck attachment resolve themselves. Anything a caller must remember is a thing that gets forgotten.
Layer zero is the outcome in a line. Depth lives behind a link, for the reader who wants it.
Fetchable on nginx, 200 to anyone. Canonical on GitLab, pinned to a commit SHA. Both go in the post; they are not interchangeable.
Everyone posts to the same place, so each notice names its owner. Without that, the channel is anonymous and unroutable.
It authorises posting to one channel. It proves nothing about who posted, so nothing may be authorised on it.
OPERATOR OUTSIDE READERS
(administrator | websurfinmurf) (teammates + their AI)
| ^
| /startwork | reads
v |
+------------------------+ +--------------------+
| startwork (skill) |---- posts embed -------> | Discord channel |
| claude-shared repo | | (shared, public) |
+------------------------+ +--------------------+
| | |
| validates | reads credential | link is followed
v v v
+-------------+ +------------------------+ +------------------------+
| nginx | | secrets/discord.env | | nginx /presentations/ |
| HTTP 200? | | webhook, 0600, channel | | brief.md + reveal deck |
| GitLab 302? | | scoped | | 200, no auth |
+-------------+ +------------------------+ +------------------------+
|
v
+------------------------+
| GitLab (private) | canonical source, pinned to a SHA
| 58/59 projects private | readable only with an account
+------------------------+
The skill writes no HTML and publishes no files. It validates, then posts.
Depth on each check is in the topics below.
A collaborator runs one command with a sentence and a link. The skill proves the link is reachable by someone with no account, finds an explainer deck if one exists, stamps the notice with the owner's name, and posts it to a channel everyone shares. If any link would be a dead end, nothing is sent. The brief it points at is plain markdown, so another person's AI can read it without credentials and without asking anyone.
git merge-base --is-ancestor. A local-only commit 404s for everyone else.*.linuxserver.lan and RFC1918 addresses never leave.Each notice carries an author line, defaulted from id -un and overridable with --who. That label is for humans reading the channel.
A channel-scoped posting token. Anyone holding it can post as the webhook. It does not expire on its own; if it leaks, delete the webhook rather than rotating around it.
Proof of identity. --who is unauthenticated and trivially spoofable. Nothing may be authorised on it — it is a courtesy to readers, not an access control.
Stored at secrets/discord.env, mode 0600, no group or ACL access. A webhook was chosen over a bot token because its blast radius is one channel.
caller: /startwork --what "↑ back to hub" --brief-url [--brief-canonical ] | v [ 1. shape ]------ >40 words? multi-line? ----------------------------> REFUSE | v [ 2. perimeter ]-- *.linuxserver.lan? RFC1918? ---------------------> REFUSE | v [ 3. deck ] BRIEF_URL contains /presentations/ / /brief.md | | derive / | +--> GET /presentations/ / / -- 200 --> attach | +--> GET /presentations/ / -- 200 --> attach | +--> neither --> omit field v [ 4. brief ]----- GET | 200 ............................................ pass | 302 | 401 | 403 .... "behind auth, other AI | cannot read it" .........> REFUSE v [ 5. canonical ]- regex for /-/blob/ / ; branch name -----------> REFUSE | git merge-base --is-ancestor @{upstream} | not on remote ................................... REFUSE v [ 6. identity ]-- author = --who | $STARTWORK_OWNER | id -un | v [ 7. render ]---- JSON embed built by python3 (no shell interpolation) | +-- --dry-run --> print payload, touch no credential, exit 0 | v [ 8. post ]------ read secrets/discord.env (0600) POST ?wait=true 2xx --> print message id + the delete command else --> print body, exit 1
?wait=trueWithout it Discord answers 204 with no body, the message id is lost, and the post cannot be removed. With it, every post prints its own delete command.
The embed is serialised by json.dumps, not assembled with shell quoting. A sentence containing a quote or a backslash cannot corrupt the payload.
--dry-run exits before the credential is read, so it works on a machine that has never been set up.
Preferring GitLab is right for teammates and wrong for the channel. Both measured, unauthenticated, from the public address:
| Target | Result | What an outside AI reads |
|---|---|---|
nginx.ai-servicers.com/presentations/ | 200 | the brief |
| private GitLab blob | 302 | a login form |
/presentations/<project>/<work>/brief.md. Public, no auth. This is the link that makes the notice useful to anyone not on your GitLab.
Versioned and reviewable for account holders. Immutable, because a branch link would describe different work next week.
/presentations/ portal, card grid, already public
/presentations/<project>/ established — one deck per project
/presentations/<project>/<work>/ work level, for a single piece of work
/presentations/<project>/<work>/brief.md
/presentations/<project>/<work>/index.html ← this deck
nginx routes that location with alias plus try_files $uri $uri/, so the second level needed no configuration change. The older flat /shared/<slug>/ pattern is left alone.
Because the brief URL encodes project and work, the deck location is derivable — which is why attachment needs no argument.
↑ back to hub| Goal | Command |
|---|---|
| Post a notice | /startwork |
| See the payload, send nothing | notify-discord.sh --what "…" --brief-url <url> --dry-run |
| Ask what deck would attach | notify-discord.sh --deck-for <project>/<work> |
| Post as another owner | --who websurfinmurf |
Deck outside /presentations/ | --deck <slug|url> |
| Suppress deck lookup | --no-deck |
| Remove a post | curl -X DELETE "$DISCORD_WEBHOOK_URL/messages/<id>" |
Every successful post prints its own delete command. Run --dry-run first — a webhook post cannot be meaningfully edited, only deleted.
understandingdeckBuilds a teaching explainer and registers it on the /presentations/ portal card grid, so it is not an orphan URL. Preferred. This deck was produced by it.
revealjs-presentationSlide styling and layout only, for a deck you are placing yourself.
A deck earns its keep when a reader needs the shape of the work before the detail. For a one-sentence change it is overhead — post the brief alone.
↑ back to hub.md as application/octet-stream. A human clicking a brief link gets a download, not readable text. AI fetchers are unaffected. The fix is a mime-type entry in nginx's config, which belongs to that project.| Item | State |
|---|---|
Skill in claude-shared main | Merged — MR !23 and !24 |
| Discord credential | Configured, webhook named startwork, 0600 |
| Guardrails | All five verified by test, including live refusals |
| Notices posted | Two — MinIO replacement, and this skill's own arrival |
| Briefs published | cicd/minio-replacement, claude-shared/startwork |
| Automatic deck attachment | Shipped in MR !24 — no flag required |
.md mime type on nginx | Open — routed to the nginx project |
why it matters
The notice is one sentence because that is what gets read. The brief is plain markdown on a public path because that is what another person's AI can actually fetch. And the post refuses to send a link that resolves to a login page — because the failure it is designed to prevent is the silent one, where everything looks delivered and nobody can read it.
questions welcome · /startwork · regenerate with /understandingdeck