claude-shared · shared skill

Starting work should hand
everyone else the context.

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

The context is in one person's head, and asking for it costs a round trip.

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.

58/59
GitLab projects on this host are private — a blob link returns a login page to anyone outside
302
What an outside reader's AI actually fetches from that link, instead of the brief
1
Sentence a collaborator will reliably read before deciding whether to care

The gap is not notification. It is that a notice without a fetchable brief cannot be acted on.

One command posts the notice and proves the links work first.

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

1 · Refuse, don't warn

Every precondition is enforced by HTTP status or string check. A bad post cannot be edited away, so it must not be sent.

2 · Automatic, not remembered

Attribution and deck attachment resolve themselves. Anything a caller must remember is a thing that gets forgotten.

3 · One sentence, pulled

Layer zero is the outcome in a line. Depth lives behind a link, for the reader who wants it.

Three ideas carry the whole design.

A brief has two addresses

Fetchable on nginx, 200 to anyone. Canonical on GitLab, pinned to a commit SHA. Both go in the post; they are not interchangeable.

One channel, many owners

Everyone posts to the same place, so each notice names its owner. Without that, the channel is anonymous and unroutable.

The webhook is not an identity

It authorises posting to one channel. It proves nothing about who posted, so nothing may be authorised on it.

Where it sits: between a repo nobody outside can read and a channel anybody can.

   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.

Five stages, and four of them can stop the post.

01
Gather
One sentence naming the outcome. Over 40 words or two lines is refused.
02
Resolve
Fetchable nginx address, plus a canonical GitLab blob pinned to a SHA.
03
Attach
Deck derived from the brief URL. Work level, then project level. Omitted if neither exists.
04
Validate
Brief must be 200 unauthenticated. SHA must be on the remote. No internal hostnames.
05
Post
Embed with owner attribution. Returns a message id, so it can be deleted.

Depth on each check is in the topics below.

What to read next.

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.

Five things will stop a post, and none of them are warnings.

  • 1Brief not readable without an account. 302, 401 and 403 are each rejected by name. This is the one that matters — it is why the skill exists.
  • 2Canonical link names a branch. A branch link describes different work next week. A SHA is required.
  • 3SHA not on the remote. Checked with git merge-base --is-ancestor. A local-only commit 404s for everyone else.
  • 4Internal hostname or private IP in the text. The channel sits outside the perimeter. *.linuxserver.lan and RFC1918 addresses never leave.
  • 5More than one sentence. Over 40 words or multi-line. If the scope needs two sentences it is not decided yet.
↑ back to hub

The webhook authorises a channel, not a person.

Each notice carries an author line, defaulted from id -un and overridable with --who. That label is for humans reading the channel.

What the credential is

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.

What it is not

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.

↑ back to hub

Inside: a post crossing every check.

  caller: /startwork  --what ""  --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
    
↑ back to hub

Two details in there are deliberate, not incidental.

?wait=true

Without 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.

JSON built in Python

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.

↑ back to hub

A private repository makes the obvious link the wrong one.

Preferring GitLab is right for teammates and wrong for the channel. Both measured, unauthenticated, from the public address:

TargetResultWhat an outside AI reads
nginx.ai-servicers.com/presentations/200the brief
private GitLab blob302a login form

Fetchable — nginx

/presentations/<project>/<work>/brief.md. Public, no auth. This is the link that makes the notice useful to anyone not on your GitLab.

Canonical — GitLab at a SHA

Versioned and reviewable for account holders. Immutable, because a branch link would describe different work next week.

↑ back to hub

The layout reuses the deck convention rather than adding a tree.

  /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

What you actually type.

GoalCommand
Post a notice/startwork
See the payload, send nothingnotify-discord.sh --what "…" --brief-url <url> --dry-run
Ask what deck would attachnotify-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 postcurl -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.

↑ back to hub

If there is no deck, delegate — don't hand-write one.

understandingdeck

Builds 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-presentation

Slide 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

What could still go wrong.

  • !nginx serves .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.
  • !The brief can go stale. Nothing checks that it still describes the work. The canonical SHA pins what was true at posting time; the fetchable copy does not.
  • !One channel for every owner. Simple and attributable, but it does not scale to many parallel workstreams without becoming noise.
  • !Publishing is manual. The skill validates and posts; it does not write the brief. Forgetting to publish is caught — by a refusal, not a reminder.
  • !Reachability is checked from this host. A 200 here is strong evidence but not proof for every network path a reader might take.
↑ back to hub

Merged and in use.

ItemState
Skill in claude-shared mainMerged — MR !23 and !24
Discord credentialConfigured, webhook named startwork, 0600
GuardrailsAll five verified by test, including live refusals
Notices postedTwo — MinIO replacement, and this skill's own arrival
Briefs publishedcicd/minio-replacement, claude-shared/startwork
Automatic deck attachmentShipped in MR !24 — no flag required
.md mime type on nginxOpen — routed to the nginx project
↑ back to hub

why it matters

Handing over context
should not require a round trip.

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