/ashlr-team-invite
Invite someone to your ashlr team by email. Sends a magic-link invite (admin role required).
Invite a new member to the caller's team.
Usage: The user invokes this skill with an email, optionally followed by admin or member (default: member):
Steps:
-
If the first non-flag argument is missing or doesn't look like an email (no
@), reply:"Usage:
/ashlr-team-invite <email> [admin|member]"and stop.
-
Resolve the API base URL (default
https://api.ashlr.ai, override withASHLR_API_URL), and the API token: -
POST the invite:
-
Interpret the response:
- HTTP 200 → print
✓ invite sent to <email>. Expires in 7 days. - HTTP 403 with
{"error":"Admin role required."}→ print✗ You must be a team admin to invite members. - HTTP 404 with
{"error":"Not a team member."}→ print✗ You're not on a team yet. Create one with POST /team/create first. - Any other error → print the server's
errorfield verbatim.
- HTTP 200 → print
-
Print no preamble. Print no trailing summary. Just the one-line outcome.
No other commands. No branching beyond the four response cases above.