Skip to content
Back to skills

Accept

ASecurity

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

  • 98 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 19, 2026
toolstypescriptgobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add indigoai-us/hq-core --skill accept --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Accept?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Accept
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/indigoai-us-accept/badge)](https://www.skillsdirectory.com/skills/indigoai-us-accept)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: accept
description: Accept HQ membership invites from a magic link or raw token.
allowed-tools: Bash, Read
---

# /accept — Accept a Membership Invite

Accept a vault-backed membership invite using a magic link or raw token.

**Usage:**
```
/accept <token-or-magic-link>
```

## Process

1. **Parse token** — extracts raw token from `hq://accept/<token>` or raw input
2. **Resolve caller** — reads the Cognito session from `~/.hq/cognito-tokens.json`
3. **Call vault-service** — via `VaultClient.acceptInvite()` from `@indigoai-us/hq-cloud`
4. **Print result** — company details, role, and sync hint

## Implementation

```typescript
import { accept } from "@indigoai-us/hq-cloud";

const result = await accept({
  tokenOrLink: "hq://accept/tok_abc123",
  callerUid: "<caller-person-uid>",
  vaultConfig: { apiUrl, authToken },
});

console.log(`Joined ${result.companySlug} as ${result.membership.role}`);
```

## Output Format

### On success:
```
Invite accepted!

Company: Acme Corp (acme)
UID: cmp_abc123
Role: member

Run `hq sync --company acme` to pull vault contents.
```

### On error:
```
This invite was already accepted.
```
```
Invite not found or expired.
```
```
This invite was for a different person.
```

## Notes

- Accepts both `hq://accept/<token>` magic links and raw tokens
- Caller's Cognito identity is verified against the invite target
- After accepting, run `hq sync --company <slug>` to pull vault contents

## See also

- `/onboard` — set up your own company
- `/hq-whoami` — confirm which identity accepted

Files in this skill

  • SKILL.md1.5 KB
  • agents/openai.yaml134 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.