Invite
Apps & AutomationinviteInvite 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.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/egregore-labs/egregore/blob/HEAD/.codex/skills/invite/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/invite, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Egregore Invite
Native Codex Egregore skill. Invite a GitHub username to the configured repos and, in connected mode, create the Egregore join link.
Flow
- Require a GitHub username. If missing, ask for it and stop.
- Read mode and config from
egregore.json. Never print secrets from.env. - Run credential-sensitive work in a single shell command that reads
GITHUB_TOKENandEGREGORE_API_KEYinternally and only prints sanitized JSON. - 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 sendonly if a contact channel exists.
- 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.
- 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.