# Invite

> Invite is an Agent Skill for apps & automation published in the egregore-labs/egregore repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Invite a GitHub user into this Egregore instance from Codex when the user invokes /invite or $invite, or asks to invite someone without exposing credentials.

- Skill name: `invite`
- Category: [Apps & Automation](https://www.openparable.com/skill/apps-automation/1)
- Source: https://github.com/egregore-labs/egregore/blob/HEAD/.codex/skills/invite/SKILL.md
- Repository: egregore-labs/egregore (268 GitHub stars when collected)

## SKILL.md

# Egregore Invite

Native Codex Egregore skill. Invite a GitHub username to the configured repos
and, in connected mode, create the Egregore join link.

## Flow

1. Require a GitHub username. If missing, ask for it and stop.
2. Read mode and config from `egregore.json`. Never print secrets from `.env`.
3. Run credential-sensitive work in a single shell command that reads
   `GITHUB_TOKEN` and `EGREGORE_API_KEY` internally and only prints sanitized
   JSON.
4. Connected mode:
   - POST to the configured Egregore invite API with the GitHub username,
     org, repo, slug, API key, and GitHub token.
   - Parse the response and show invite status, memory access status, and the
     returned invite URL.
   - Best-effort graph record with `bin/graph.sh`.
   - Best-effort direct notification with `bin/notify.sh send` only if a
     contact channel exists.
5. Local mode:
   - Use GitHub API collaborator endpoints for the core repo, memory repo, and
     managed repos.
   - Create or update `memory/people/{username}.md`.
   - Commit and push memory.
   - Show the join command using `npx -y create-egregore@latest join`.
6. If remote hosting is enabled, provision hosting best-effort in a detached
   command and include the status only when it succeeds.

## Rules

- Never expose tokens, request bodies containing tokens, or raw API JSON.
- Only org admins can complete the connected invite flow; report API denial
  clearly and give the manual GitHub access URL.
- Do not use Claude Code commands.

---

Source: https://www.openparable.com/skill/apps-automation/invite (OpenParable). Cite the canonical URL above.
