/promote — Change a Member's Role
SkillDev toolsChange an HQ company member role or guest path scope.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the /promote — Change a Member's Role skill
What this skill tells your AI
The instructions your AI receives, as published by indigoai-us/hq-core in .claude/skills/promote/SKILL.md and read by ahel’s review.
Change an existing member's role on a company. Admin+ only.
Usage:
/promote <person-slug-or-uid> <owner|admin|member|guest> [--paths <docs/,shared/>] [--company <slug>]
Process
- Resolve auth — read Cognito session from
~/.hq/credentials.json - Resolve company — from
--companyflag, or active company via.hq/config.json - Validate args —
--pathsis only valid with guest role - Call vault-service — via
VaultClient.updateRole()from@indigoai-us/hq-cloud - Print result — updated role and any scope changes
Implementation
import { promote } from "@indigoai-us/hq-cloud";
const result = await promote({
target: "psn_alice",
newRole: "guest",
paths: "docs/",
company: "acme",
callerUid: "<caller-person-uid>",
vaultConfig: { apiUrl, authToken },
});
console.log(`Role updated to ${result.membership.role}`);
Output Format
On success:
Role updated for psn_alice on acme:
member → guest
Allowed paths: docs/
Next STS vend will reflect scoped credentials.
On error:
Permission denied — only admins and owners can change member roles.
Cannot leave company without an owner — promote another member to owner first.
Member "psn_alice" not found in this company.
Roles
| Role | Permissions |
|---|---|
owner | Full control + delete entity |
admin | Manage members + read/write all |
member | Read/write unrestricted paths |
guest | Scoped to --paths prefixes only |
Notes
- Admin+ only — members and guests cannot promote
- Demoting the last owner is blocked (company must always have at least one owner)
--pathssetsallowedPrefixes— only meaningful for guest role- Role changes take effect on the member's next STS vend
Signals
- GitHub stars
- 84
- Forks
- 15
- Last commit
- Sep 2026
- Hacker News mentions
- 20
Advanced
- Catalog kind
- skill
- Gateway key
promote-indigoai-us- Source
- github.com/indigoai-us/hq-core