hq-whoami
Show current HQ Cognito identity and session expiry.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 95
- Forks
- 18
01 前言 Front Matter
- name
- hq-whoami
- description
- Show current HQ Cognito identity and session expiry.
- allowed-tools
- Bash(hq:*), Bash(jq:*), Bash(cat:*), Bash(date:*), Bash(test:*)
02 资源文件 1
- 参考文档agents/openai.yaml119 B
03 SKILL.md 正文
/hq-whoami — HQ Cognito identity
One-liner status: who is signed into the local HQ Cognito session, and how long the cached access token has left. Read-only — touches nothing.
Steps
-
Probe —
test -f ~/.hq/cognito-tokens.json. If absent, print "Not signed in. Run/hq-login." and exit 0. -
Status —
hq auth statusfor cached identity + expiry. If the CLI reports expired, hint that/hq-loginwill silently refresh. -
Identity —
hq whoamifor canonical sub/email (Cognito userInfo). -
Format — collapse to one line:
signed in as <email> (sub <id-prefix>…) — expires in <Xh Ym>. If expired:signed in as <email> — token EXPIRED, run /hq-login.
Notes
- Reads
~/.hq/cognito-tokens.jsononly — same file as/deploy,/hq-login,/hq-logout. - Pool: shared HQ Identity.
- Does not refresh the token; for that, run
/hq-login(it auto-refreshes if expired).
See also
/hq-login— sign in or refresh/hq-logout— sign out
04 同仓库更多 Skills
job
Deprecated alias for /schedule — Outpost recurring agent jobs. Prefer /schedule.
import-claude
Deprecated alias for /import-context — bootstrap HQ from your prior AI footprint (Claude Code, Codex, Grok, claude.ai history plus on-disk artifacts).
hq-share
Share HQ vault paths through single-use links or direct ACL grants.
hq-secrets
Use HQ CLI secrets safely through env injection or one-off exec.
hq-logout
Sign out of HQ Cognito and clear local tokens.
hq-library
Find, add, tag, link, fetch or remove images, videos and other media in the company's HQ Asset Library (`hq library`). Use for "find the photo of…", "what assets do we have for…", "add these images to the library", "tag this video", "get a link to the video", "send me the logo file", "remove this from the library", and for Claude using the library through the hosted HQ connector (`hq_library_*` tools) or a bot using a library API key. Not for documents, folder ACLs or sharing vault paths with people (use /hq-files or /hq-share).