agentleFS
egregore-labsegregore-labs/egregore/.claude/skills/invite/SKILL.md

invite

Skill293 starsChanged 11 days agoMITView on GitHub

Invite someone to this Egregore — repository access plus a setup link when Connected. Use for /invite <username>, 'invite <username>', or 'add <username> to the org'; not member removal.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the supplied GitHub username as {provider_username}.

    line 28
  2. Distinctive:

    Read the fields needed to render the receipt:

    line 41
  3. Distinctive:

    Use each printed field as its correspondingly named placeholder below.

    line 47
  4. Very specific:

    Write it to tmp/invite-message.md, make the file mode 0600, then run:

    line 106
  5. Very specific:

    Use the printed values as {plan_id} and {digest}, respectively, for the notification Runtime's approve/cancel commands.

    line 122

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Egregore invite

Invite one future organization member through the Egregore Runtime. The GitHub username is a linked-provider alias used by today's access transport; it is not an Egregore account, actor, or membership identifier.

When to invoke

Invite someone to this Egregore — repository access plus a setup link when Connected. Use for /invite <username>, 'invite <username>', or 'add <username> to the org'; not member removal.

Input

Require one GitHub username. If it is missing, show and stop:

Usage: /invite <github-username>

Example: /invite newuser

Execute

Use the supplied GitHub username as {provider_username}; quote placeholders in single quotes when you use them in a command, and write any single quote inside a value as '\''. Run exactly one invitation transaction and save its JSON receipt:

mkdir -p tmp
bash bin/invite.sh '{provider_username}' > tmp/invite-receipt.json

Read the fields needed to render the receipt:

jq -r '{status, provider_username, org_name, provider_status, memory_status, invite_url, join_command, group_link, manual_access_url, warnings} | to_entries[] | "\(.key): \(.value)"' tmp/invite-receipt.json

Use each printed field as its correspondingly named placeholder below.

The adapter resolves ActorContext, keeps AccountIdentity, ActorIdentity, and OrgMembership separate, authorizes ADMINISTER before external effects, and selects the current GitHub or Connected control-plane transport. It owns credentials, repository grants, the provisional canonical invitation record, path-scoped Git provenance, and sanitized error mapping. Do not call GitHub, the Egregore API, graph, storage providers, or Git directly.

Connected service permission denials are authoritative. Explain that an organization admin must invite the person and show manual_access_url when the receipt contains one. Never infer permission from a GitHub username.

Render

For an accepted Connected invite with invite_url:

Inviting {provider_username} to {org_name}...

  Repository access: {provider_status}
  Memory access:     {memory_status}
  Invite link:       created

Share this link with {provider_username}:

  {invite_url}

They'll authenticate, accept the access invitation, and receive
the install command.

For an accepted Local invite:

Invited {provider_username} to {org_name}.

  Repository access: {provider_status}
  Memory record:     {memory_status}

Tell them to run:

  {join_command}

Append the returned group link when present. Render warnings truthfully and use the returned manual access URL for failed repository grants. Never show raw JSON, tokens, request bodies, or internal identity IDs.

Optional direct notification — separate consent

The invite action never authorizes a message. Only when a direct destination exists and the user wants Egregore to deliver the link, create a fresh actor-bound notification plan for this exact message:

You've been invited to {org_name} on Egregore! Join here: {invite_url-or-command}

Write it to tmp/invite-message.md, make the file mode 0600, then run:

chmod 600 tmp/invite-message.md
bash bin/notification.sh plan --kind send \
  --recipient '{provider_username}' --message-file tmp/invite-message.md > tmp/invite-plan.json
jq -r '.plan_id, .digest' tmp/invite-plan.json

Use the printed values as {plan_id} and {digest}, respectively, for the notification Runtime's approve/cancel commands. Read the preview fields:

jq -r '.org, .recipient, .channels, .deliveries, .message' tmp/invite-plan.json

Show the exact organization, recipient, every channel, and message in a dedicated Send / Edit / Cancel checkpoint. Dispatch only after fresh exact approval using the notification Runtime's approve/dispatch commands. Never fall back from direct delivery to a group, reuse old approval, retry from a detached task, or treat sharing the invite link as notification consent.

Rules

  • Local works without graph or Connected infrastructure.
  • Connected preserves the existing seven-day setup-link behavior.
  • An invite is provisional authority to create a future membership. Do not mint an AccountIdentity, ActorIdentity, or OrgMembership for the invitee.
  • Existing onboarded profiles are never overwritten by an invitation stub.
  • Notification consent and membership-invite authorization are separate.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.