Skip to content
cccskills
FreePublished on GitHub

promote

Change an HQ company member role or guest path scope.

The English summary is being prepared. Showing the original description.

indigoai-us/hq-core90 stars(GitHub 90 + cccskills 0)

Run score Not tested

See how to install

Files included (2)

  • SKILL.md1.9 KB
  • agents/openai.yaml108 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

/promote — Change a Member's Role

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

  1. Resolve auth — read the Cognito session from ~/.hq/cognito-tokens.json
  2. Resolve company — from --company flag, or active company via .hq/config.json
  3. Validate args — --paths is only valid with guest role
  4. Call vault-service — via VaultClient.updateRole() from @indigoai-us/hq-cloud
  5. 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

RolePermissions
ownerFull control + delete entity
adminManage members + read/write all
memberRead/write unrestricted paths
guestScoped 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)
  • --paths sets allowedPrefixes — only meaningful for guest role
  • Role changes take effect on the member's next STS vend

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

accept

Free

Accept HQ membership invites from a magic link or raw token.

The English summary is being prepared. Showing the original description.

indigoai-us/hq-core90Updated Oct 26, 2026

adr

Free

Capture qualifying architecture decisions as ADRs in the right HQ or repo location.

The English summary is being prepared. Showing the original description.

indigoai-us/hq-core90Updated Oct 26, 2026

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

The English summary is being prepared. Showing the original description.

indigoai-us/hq-core90Updated Oct 26, 2026

Find shallow modules and propose deepening refactors, ranked with file refs; never edits code. Use when code is hard to change or planning a refactor.

The English summary is being prepared. Showing the original description.

indigoai-us/hq-core90Updated Oct 26, 2026

Generate dark ASCII banner graphics for HQ and social launch assets.

The English summary is being prepared. Showing the original description.

indigoai-us/hq-core90Updated Oct 26, 2026

Compare approaches to best-in-class prior art, merge existing work, verify cruft removal, and recommend the most durable design before PRD work.

The English summary is being prepared. Showing the original description.

indigoai-us/hq-core90Updated Oct 26, 2026

See all skills by indigoai-us

Report a problem with this skill