[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79VSQJTZD5BDKE186GSMHBE":3,"skill-same:01M79VSQJTZD5BDKE186GSMHBE":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M79VSQJTZD5BDKE186GSMHBE","admin",null,"Act for an org admin — the admin API (scope directory, per-scope config & SOUL, any scope's memory, transcripts & captured prompts, files, user roster & external users, audit\u002Ferrors\u002Fegress) accepts your token when the user you're talking to is an org admin and started this turn themselves. Use when an admin asks you to inspect or change anything org-wide or in another scope, or anyone asks whether they're an admin.","yc-software\u002Fqm","yc-software","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F153323858?v=4","01M79VRJS45RJM7XBFGB9D1HY6","Y Combinator","01M79VRJSY4P8QKGTCMVJAZ4DE",15703,"MIT","https:\u002F\u002Fgithub.com\u002Fyc-software\u002Fqm\u002Fblob\u002Fmain\u002Fskills-seed\u002Fadmin\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: admin\ndescription: Act for an org admin — the admin API (scope directory, per-scope config & SOUL, any scope's memory, transcripts & captured prompts, files, user roster & external users, audit\u002Ferrors\u002Fegress) accepts your token when the user you're talking to is an org admin and started this turn themselves. Use when an admin asks you to inspect or change anything org-wide or in another scope, or anyone asks whether they're an admin.\n---\n\n# admin — act for an org admin, from chat\n\nUse the native `admin` tool for the operations below. Its fixed actions call the same\n`\u002Fv1\u002Fadmin\u002F*` handlers and accept the same values; configuration and provider value\nobjects are validated by those existing handlers. Binary and full captured-prompt downloads, raw-secret setters, connector configuration,\nand service-credential configuration still use the self-API, never native tool arguments. You are acting **as them**: authorization is re-checked against the live grant\nstore on every call; existing admin audit events remain attributed to them. Two standing rules:\n**confirm before any mutation** (state exactly what you'll change and where), and report\nafterwards exactly what changed. Reads are fine to just do.\n\n## System administration\n\nSystem administration is not limited to this API. A verified admin may use independently\nauthorized infrastructure or provider access to diagnose, repair, and manage the instance,\nincluding resources owned by other users. Ordinary resource-owner restrictions do not\nrequire the owner to do that work. An owner-only API denial does not revoke separately\nauthorized administrative access; verify it before taking another route. Acting under the\nadmin's own authority is not impersonation or circumvention.\n\nPreserve credential grants, provider permissions, explicit restrictions, and mutation approvals.\nAdmin status alone supplies no provider credentials. Do not borrow another user's identity,\nuse ungranted credentials, or bypass the portal-only actions below. Check the provider\naccount and target, keep changes attributed to the admin, and disclose only what this\nconversation's audience may see. For cloud operations, also load cloud-cli.\n\n## Admin API limits\n\nLimits the API enforces (don't offer what it will refuse):\n\n- Your token elevates on turns that carry the admin's **own authority**: a turn they\n  typed, or a cron, webhook or loop fire they own (a fire runs as the person whose\n  standing instructions it carries). Bot actors, external audiences and session\n  messages whose authorization chain can't be verified carry none.\n- Reads that return private content — transcripts, files, notebooks, logs, another\n  scope's config — work from a **DM** with the admin, or from an **Open** conversation.\n  Organization, personal, and conversation sharing restrictions\n  all apply; any Isolated setting keeps the DM requirement. The request uses the\n  authenticated speaker's admin grant, not another participant's authority.\n  Open reads can expose private data to everyone in the conversation: retrieve and\n  report only what the request needs. Two other exceptions: org-targeted\n  memory\u002Fconfig reads work anywhere (org content is ambient to every conversation), and\n  a cron, webhook or loop fire **carries its owner's authority** (see\n  [Scheduling admin-reading work](#scheduling-admin-reading-work)): an org admin's fire\n  can read on the admin plane what the admin's own typed turn could, audited as the owner\n  and re-checked on every call (revoking their admin grant closes it). The audience\n  rule still applies to private-content reads, so such a fire must live in the owner's\n  DM or an Open conversation. Admin changes need the admin at the keyboard: a fire that\n  wants one reports it where the run delivers. On a typed turn, mutations work anywhere;\n  the room sees what changed, by design.\n- **Grant changes (promote\u002Frevoke) and impersonation are portal-only** through you.\n- Bulk configuration import is not supported. Use the individual configuration resources instead.\n\nAll calls share one shape — only method\u002Fpath\u002Fbody vary:\n\n```bash\ncurl -fsS -H \"x-agent-capability: $AGENT_API_TOKEN\" \"$AGENT_API_URL\u002Fv1\u002Fadmin\u002F...\"\n```\n\nAnyone can check admin status (this is also how you answer \"am I an admin?\"):\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Fwhoami        → {\"isAdmin\":true,\"role\":\"org_admin\",\"scopeId\":\"org:…\"} or {\"isAdmin\":false}\n```\n\n## Check connector sources\n\nDuring admin onboarding, check this silently before offering Slack bot setup or personal\nconnections. A source is either Composio or the org's own OAuth apps. Never inspect\ndeployment secrets.\n\n**Composio.** It is available when `GET \u002Fv1\u002Fcomposio\u002Ftoolkits` succeeds. A\n`composio_unavailable` error only means it is not available to this person; the org may\nstill have a key they are not granted. To check the org, read\n`GET \u002Fv1\u002Fadmin\u002Fscopes\u002F\u003Corg scope>?view=credentials`: a `serviceCredentials` entry with\n`enabled: true`, `hasSecret: true`, `delivery: \"env\"` and `envKey: \"COMPOSIO_API_KEY\"`\nmeans Composio is configured.\n\n**Own OAuth apps.** `GET $AGENT_API_URL\u002Fv1\u002Fconnectors\u002Fcatalog` (header `x-agent-capability: $AGENT_API_TOKEN`) marks each provider\nconfigured with client credentials, from Settings → Connectors or deployment secrets, with\n`configured: true`. No such entry means none are.\n`GET \u002Fv1\u002Fadmin\u002Fscopes\u002F\u003Corg scope>?view=connectors` shows only apps added in Settings →\nConnectors, not ones set by deployment secrets, so it cannot prove absence.\n\nComposio is absent only when the toolkits read fails and the org check finds no such\ncredential. If either source exists, skip silently. If a read\nfails, treat it as unknown, not absent, and do not offer setup. Only when both are\nconfirmed absent, send one short message:\n\n- Composio (recommended): one project key covers most apps. Add it in Settings → Credentials\n  as an org service credential with env key `COMPOSIO_API_KEY`, and set up callback\n  verification as described in QM's `docs\u002Fcomposio.md`. If they would rather paste the\n  key now, mint a one-time link with the `secret-drop` skill (service `composio`, envKey\n  `COMPOSIO_API_KEY`) and share its `url`.\n  A dropped key enables Composio only for them; teammates need the org credential.\n- Own OAuth apps: add each provider in Settings → Connectors. Each one needs the callback URL\n  `\u003Cweb origin>\u002Fv1\u002Fconnectors\u002Foauth\u002F\u003Cprovider>\u002Fcallback`, which the Connectors page also\n  shows.\n\nName the pages (Settings → Credentials, Settings → Connectors) without links and offer the drop\nlink. Never invent URLs or ask for keys or client secrets in chat. Never\nask regular users to configure a source.\n\n## Guide Slack installation\n\nCheck this silently before offering Slack bot setup during admin onboarding. It is\nseparate from personal account connections. Verify admin status first. On a\nhuman-started admin turn, read `GET \u002Fv1\u002Fadmin\u002Fslack-installation`; it returns setup\nmetadata, not tokens. A failed read means unknown, not absent. Never inspect\ndeployment secrets to infer status.\n\n- `configured: true`: skip silently during onboarding, including environment-backed\n  installs. Do not add a setup heading, say \"already connected\", or ask for a test DM.\n  Configuration is not a live connectivity check; troubleshoot only if asked.\n- `managed: true`, `configured: false`: leave disabled setup alone unless the admin\n  asks to resume or re-enable it. Do not advertise it during onboarding.\n- `source: \"invalid_environment\"`: this is incomplete setup, not an absent app. Do\n  not create a duplicate; offer to finish the existing setup using its secure page.\n- Only a successful read confirming an absent bot warrants a new setup offer.\n  Respect a prior deferral and continue with personal connections.\n\nFor company-owned provisioning, the status response supplies `setup.tokenUrl`,\n`setup.submitUrl`, and `setup.installUrl`. They are stable authenticated QM entry\nlinks, not expiring tickets. Never invent URLs or mint launch tickets in the shell.\n\nOn the web surface, post **[Set up Slack](setup.submitUrl)** once, using the returned\nURL. The conversation renders one live checklist with all three links together in one message:\n**Create token**, **Submit token**, and **Add to Slack**, plus the instructional GIF.\nIt checks progress in place without another assistant reply. Do not duplicate that\nchecklist in prose. On other surfaces, present all three returned links together:\n\n1. Create token: open `setup.tokenUrl`. Under **App Configuration Tokens**, choose\n   **Generate Token**, select the intended workspace, and copy the **access token**,\n   not the refresh token.\n2. Submit token: open `setup.submitUrl`, the secure provisioning form. This is\n   not a generic keychain token-drop. The token can manage other apps they own in\n   that workspace. QM creates\u002Fconfigures its app, then discards the token.\n   Never paste it in chat, memory, files, or the keychain.\n3. Add to Slack: open `setup.installUrl` after submitting the token, review the\n   workspace, and choose **Allow**. The company owns the app.\n\n`setup.appReady` means the app exists; it does not mean it is installed.\nOnly verified `setup.connected` together with `configured` warrants **Connected**.\nRequire a real reply before claiming the bot works, not as an onboarding prerequisite.\nA failed status read or `setupUnavailable` means unknown, not absent. Do not restart\nprovisioning or create a duplicate. Retry the existing links or follow recovery guidance.\n\n`installAvailable: true` without `setup` means the shared QM Slack app. In web chat, reply\nwith one short line and `::add-to-slack{}` as its own paragraph. On other surfaces, link\n**[Add to Slack](installUrl)** using the returned `installUrl`. Do not name a workspace,\nmention unavailable setup, offer creating their own app, or use `createUrl`.\n\nWithout managed installation, use the returned `createUrl` and the known dashboard's\nworkspace app guide. Do not ask for a configuration token this flow cannot consume.\nHave them enter credentials only in its secure form. Do not guess scopes, callback\nURLs, or credential requirements. Setup is optional; continue onboarding if deferred.\n\n## Finding the scope\n\nMost endpoints take `?scope=\u003CscopeId>` (`org:\u003Corg>`, `personal:\u003Cuser>`, `channel:\u003Cid>`).\nDon't guess ids — list them:\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Fscopes        → every scope with display labels (#channel names, people) and what lives there\n```\n\n## Read & govern a scope's config\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Fscopes\u002F\u003CscopeId>                → resolved config: commandPolicy, soul (+version), egress, flags, connectors, serviceCredentials\nPUT \u002Fv1\u002Fadmin\u002Fscopes\u002F\u003CscopeId>\u002F\u003Cresource>     → resource ∈ soul | command-policy | egress |\n                                                connectors | service-credentials |\n                                                base-model (org-wide LLM; body { modelId } — e.g. gpt-5.5; empty string clears)\n```\n\nGET first, then PUT the corrected value (`soul` takes `{content}`, `egress` takes\n`{allowedHosts,deniedHosts}`, the toggles take `{on}`). Changes apply next turn.\n\nSpend caps: `PUT …\u002F\u003CscopeId>\u002Fspend-limit` with `{dailyUsd?, monthlyUsd?}` (USD, per UTC\nday\u002Fmonth, counted the way the Spend page counts a scope). On the org scope it is the\ndefault for every person's personal scope; on a person, channel or project scope it caps\nthat scope and overrides the default. `{}` means no cap there, `{inherit:true}` clears it.\nAt the cap new turns there are refused until reset, and cron fires report the refusal.\n\n## Read & fix any scope's memory\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Fmemory?scope=\u003CscopeId>          → that scope's whole notebook\nPUT \u002Fv1\u002Fadmin\u002Fmemory?scope=\u003CscopeId>          {\"content\":\"…full replacement…\"}\n```\n\n(For \"remember this org-wide\" you don't need the admin plane at all — `\"scope\":\"org\"`\non the memory self-API is the lighter path; see the memory skill.)\n\n## Inspect activity & content\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Fsessions?scope=&limit=&cursor=  → conversation listing (turns, last activity); pass nextCursor for older rows\nGET \u002Fv1\u002Fadmin\u002Fsessions\u002F\u003Cid>?scope=            → a transcript\nGET \u002Fv1\u002Fadmin\u002Fsessions\u002F\u003Cid>\u002Fllm?scope=        → captured provider requests — what the model actually saw (debugging \"why did it do X\")\nGET \u002Fv1\u002Fadmin\u002Ffiles?scope=                    → document store; read?id= \u002F download?id= for content\nGET \u002Fv1\u002Fadmin\u002Fvolumes?scope=                  → a scope's computer\u002Fbackup contents (sizes only)\nGET \u002Fv1\u002Fadmin\u002Fcrons|apps|skills?scope= → artifacts by owner\n```\n\n## Observability\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Faudit?scope=     GET \u002Fv1\u002Fadmin\u002Ferrors?scope=    GET \u002Fv1\u002Fadmin\u002Fegress?scope=\nGET \u002Fv1\u002Fadmin\u002Fretention\nGET \u002Fv1\u002Fadmin\u002Fusers            → roster + admin status (org-wide)\n```\n\nUsers lists the `users` table, the people and apps QM has met: someone joins on their own first\nmessage (not a non-person actor; a Slack id is recorded as the person the directory maps it to),\nwhen invited as a teammate, or when made an admin. Each row has a generated `userId`; `principalId`\nis the person's main sign-in and `aliases` lists every sign-in that resolves to them. Linking merges\na sign-in's user into its person's. Rows carry `kind` (`person` or `app`, for Slack apps), `firstSeenAt`\nand `source`; session and turn counts add up activity across all of the user's sign-ins. Any\n`\u002Fv1\u002Fadmin\u002Fusers\u002F\u003Cid>` route takes either the `userId` or any sign-in. Spend and Keychain people carry\n`userId` too, and retention counts each person (not each sign-in) once, leaving apps out.\n\n## External users\n\nOutside collaborators, admitted by email with a role and an expiry; they sign in at the\nportal with that address until it lapses. Listed alongside the roster:\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Fusers                          → externalUsers: [{email, role, expiresAt, invitedBy, status: active|expired}]\nPOST \u002Fv1\u002Fadmin\u002Fexternal-users                {\"email\":\"ana@partner.com\",\"expiresAt\":\"2026-12-31\"}   role defaults to member; expiresAt required (a bare date means end of that day UTC; ISO date-time or epoch ms also work)\nDELETE \u002Fv1\u002Fadmin\u002Fexternal-users\u002F\u003Cemail>      → revokes access now; the row stays listed as expired (a DELETE a day after expiry removes it)\n```\n\nConfirm with the admin before inviting or revoking — say who, which role, and until\nwhen. The invitation email needs Resend configured on core (`RESEND_API_KEY` +\n`AUTH_EMAIL_FROM`); without it the user is still added. When the response has\n`emailSent:false`, tell the admin why (`emailProblem`) and hand them `signInUrl` to pass\nalong themselves. The `org_admin` role for externals is portal-only, like every other\ngrant change — don't offer it.\n\n## Admin grants (promote \u002F revoke)\n\nNot available through you: who governs the org changes only in the admin dashboard,\nwhere the admin acts directly. If asked, point them there — don't try the API\n(`POST\u002FDELETE \u002Fv1\u002Fadmin\u002Fgrants` refuses agent tokens).\n\n## Offboarding a user\n\nWhen someone leaves, `offboard_user` (`POST \u002Fv1\u002Fadmin\u002Fusers\u002F\u003Cprincipal>\u002Foffboard`) stops what runs as them in\none call. Run it from a DM with the admin; it reads private inventory.\n\n1. Preview: call without `apply`. `changes` lists every step it would take, first to last: deactivate\n   sign-in, disable and archive crons they own anywhere, pause their loops, disable their webhooks,\n   revoke their active keychain grants, archive apps and skills in their personal scope, retire their\n   personal computers (clearing the default first). An empty list for a misspelled id is your hint to\n   check the spelling.\n2. Show the admin the preview in plain words and get a yes. Retiring a computer destroys its disk; back up\n   its workspace first if they want it.\n3. Apply with `value: {\"apply\": true}`. Each change comes back `done` or `failed` with the error and is\n   audited as the admin. Re-running is safe: finished items drop out, so a retry does only what's left.\n4. Look for what it deliberately leaves, and ask the admin about each:\n   - apps, skills and computers they created in shared scopes (`deployments`, `skills`, `sandboxes`\n     filtered by creator) — others may rely on them;\n   - their stored credentials (`keychain`) — they stay encrypted and unused once grants are revoked;\n   - an admin grant — portal-only, revoked under Admins in the dashboard;\n   - computers whose provider can't retire them.\n\nApplying sets `offboardedAt`\u002F`offboardedBy` on the person's row in the `users` table: the response's `user`\n(also on the `user` detail, and `offboarded` in the `users` list) holds when and by whom; the audit log's\n`user.offboard.*` entries are the change list. The row is written before any change is applied, so if it\ncan't be written the call fails and nothing changes. The dashboard hides offboarded people from Users until \"Show offboarded\" is clicked.\n\nConversations, memory and files stay as the record. `reactivate_user` turns sign-in back on (even after a\ndirectory-sync removal), clears `offboardedAt`\u002F`offboardedBy` (the audit log keeps the history), and\nrestores nothing else; owners or admins restore crons, loops, apps and skills\nthrough their usual controls.\n\n## Scheduling admin-reading work\n\nA cron's fires run as its owner with the owner's own authority, so an org admin's\nscheduled work can read what the admin could on a typed turn — no grants to set up.\nChanges through the admin API stay with typed turns. Two things still need settling\nat creation, not after the first fire fails:\n\n1. **Audience.** Private-content reads (transcripts, memory, files, the scope directory)\n   still require the cron's home to be the owner's own DM or an Open conversation. A\n   cron created with `channel` or `participants` is homed in that room; if the room is\n   not Open for the admin, those reads will refuse there. Spend, audit, egress, crons\n   and config reads work from any home.\n2. **Who sees the output.** Before its output goes anywhere but the admin's own DM (a\n   `recipient`, or later a `retarget` from a room's conversation), tell the admin\n   plainly that the cron will read admin data as them and that everyone there will see\n   whatever it posts, with nothing re-checking each post. Weigh the room: say so if it\n   is shared with outsiders or isolated from their personal context. Proceed only on\n   their explicit yes; the move is audited and appears in the cron's history.\n\nIf part of the task can't work from where the cron will live, say so before or at\ncreation. Don't create a cron that will fail on its first fire without saying so.\nRemember that whoever rewrites a shared cron's task becomes its owner: the fires then\nrun with that person's standing, not the original admin's.\n\n## Failure modes\n\n- `403 admin grant required for this scope` — the user isn't an org admin (or was just\n  revoked). Say so; don't retry or work around it.\n- `403 … carry a person's own authority — this turn runs with none` — a bot actor, an\n  external audience, a cron or loop whose task an automated turn wrote (its owner\n  restores their authority by rewriting it on a turn they send) or that a conversation\n  owns, or a session message whose authorization chain could not be verified. Report it\n  where the run delivers — never finish silently.\n- `403 admin changes need the admin at the keyboard …` — a fire tried to change\n  something. Report the change you would make where the run delivers; the admin\n  confirms it on a turn they send.\n- `403 … returns private content — ask the agent in a DM` — the shared room does not have effective Open access for this admin;\n  tell the admin to ask again in a DM with you (or, for reads they want recurring\n  on a schedule, to create the cron from their DM so it is homed there).\n- `403 … grant changes (promote\u002Frevoke) are portal-only` — point them at the dashboard.\n- `403 granting or removing org admin for an external user is portal-only …` — same\n  answer: the dashboard.\n- `409 that address already belongs to a member of the org …` — org email domain, Slack\n  directory, sign-in allow-list, or someone who has already used the agent. They are not\n  external; to promote them, point the admin at Grant org admin in the dashboard and\n  tell them to enter the email as the principal ID. The person need not appear in Users first.\n- `409 that address holds an org admin grant of its own …` — the admin manages that grant\n  under Admins in the dashboard first.\n- `403 capability token not valid for this route` — this core predates agent admin\n  access; the user must use the admin dashboard.\n","# admin — act for an org admin, from chat\n\nUse the native `admin` tool for the operations below. Its fixed actions call the same\n`\u002Fv1\u002Fadmin\u002F*` handlers and accept the same values; configuration and provider value\nobjects are validated by those existing handlers. Binary and full captured-prompt downloads, raw-secret setters, connector configuration,\nand service-credential configuration still use the self-API, never native tool arguments. You are acting **as them**: authorization is re-checked against the live grant\nstore on every call; existing admin audit events remain attributed to them. Two standing rules:\n**confirm before any mutation** (state exactly what you'll change and where), and report\nafterwards exactly what changed. Reads are fine to just do.\n\n## System administration\n\nSystem administration is not limited to this API. A verified admin may use independently\nauthorized infrastructure or provider access to diagnose, repair, and manage the instance,\nincluding resources owned by other users. Ordinary resource-owner restrictions do not\nrequire the owner to do that work. An owner-only API denial does not revoke separately\nauthorized administrative access; verify it before taking another route. Acting under the\nadmin's own authority is not impersonation or circumvention.\n\nPreserve credential grants, provider permissions, explicit restrictions, and mutation approvals.\nAdmin status alone supplies no provider credentials. Do not borrow another user's identity,\nuse ungranted credentials, or bypass the portal-only actions below. Check the provider\naccount and target, keep changes attributed to the admin, and disclose only what this\nconversation's audience may see. For cloud operations, also load cloud-cli.\n\n## Admin API limits\n\nLimits the API enforces (don't offer what it will refuse):\n\n- Your token elevates on turns that carry the admin's **own authority**: a turn they\n  typed, or a cron, webhook or loop fire they own (a fire runs as the person whose\n  standing instructions it carries). Bot actors, external audiences and session\n  messages whose authorization chain can't be verified carry none.\n- Reads that return private content — transcripts, files, notebooks, logs, another\n  scope's config — work from a **DM** with the admin, or from an **Open** conversation.\n  Organization, personal, and conversation sharing restrictions\n  all apply; any Isolated setting keeps the DM requirement. The request uses the\n  authenticated speaker's admin grant, not another participant's authority.\n  Open reads can expose private data to everyone in the conversation: retrieve and\n  report only what the request needs. Two other exceptions: org-targeted\n  memory\u002Fconfig reads work anywhere (org content is ambient to every conversation), and\n  a cron, webhook or loop fire **carries its owner's authority** (see\n  [Scheduling admin-reading work](#scheduling-admin-reading-work)): an org admin's fire\n  can read on the admin plane what the admin's own typed turn could, audited as the owner\n  and re-checked on every call (revoking their admin grant closes it). The audience\n  rule still applies to private-content reads, so such a fire must live in the owner's\n  DM or an Open conversation. Admin changes need the admin at the keyboard: a fire that\n  wants one reports it where the run delivers. On a typed turn, mutations work anywhere;\n  the room sees what changed, by design.\n- **Grant changes (promote\u002Frevoke) and impersonation are portal-only** through you.\n- Bulk configuration import is not supported. Use the individual configuration resources instead.\n\nAll calls share one shape — only method\u002Fpath\u002Fbody vary:\n\n```bash\ncurl -fsS -H \"x-agent-capability: $AGENT_API_TOKEN\" \"$AGENT_API_URL\u002Fv1\u002Fadmin\u002F...\"\n```\n\nAnyone can check admin status (this is also how you answer \"am I an admin?\"):\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Fwhoami        → {\"isAdmin\":true,\"role\":\"org_admin\",\"scopeId\":\"org:…\"} or {\"isAdmin\":false}\n```\n\n## Check connector sources\n\nDuring admin onboarding, check this silently before offering Slack bot setup or personal\nconnections. A source is either Composio or the org's own OAuth apps. Never inspect\ndeployment secrets.\n\n**Composio.** It is available when `GET \u002Fv1\u002Fcomposio\u002Ftoolkits` succeeds. A\n`composio_unavailable` error only means it is not available to this person; the org may\nstill have a key they are not granted. To check the org, read\n`GET \u002Fv1\u002Fadmin\u002Fscopes\u002F\u003Corg scope>?view=credentials`: a `serviceCredentials` entry with\n`enabled: true`, `hasSecret: true`, `delivery: \"env\"` and `envKey: \"COMPOSIO_API_KEY\"`\nmeans Composio is configured.\n\n**Own OAuth apps.** `GET $AGENT_API_URL\u002Fv1\u002Fconnectors\u002Fcatalog` (header `x-agent-capability: $AGENT_API_TOKEN`) marks each provider\nconfigured with client credentials, from Settings → Connectors or deployment secrets, with\n`configured: true`. No such entry means none are.\n`GET \u002Fv1\u002Fadmin\u002Fscopes\u002F\u003Corg scope>?view=connectors` shows only apps added in Settings →\nConnectors, not ones set by deployment secrets, so it cannot prove absence.\n\nComposio is absent only when the toolkits read fails and the org check finds no such\ncredential. If either source exists, skip silently. If a read\nfails, treat it as unknown, not absent, and do not offer setup. Only when both are\nconfirmed absent, send one short message:\n\n- Composio (recommended): one project key covers most apps. Add it in Settings → Credentials\n  as an org service credential with env key `COMPOSIO_API_KEY`, and set up callback\n  verification as described in QM's `docs\u002Fcomposio.md`. If they would rather paste the\n  key now, mint a one-time link with the `secret-drop` skill (service `composio`, envKey\n  `COMPOSIO_API_KEY`) and share its `url`.\n  A dropped key enables Composio only for them; teammates need the org credential.\n- Own OAuth apps: add each provider in Settings → Connectors. Each one needs the callback URL\n  `\u003Cweb origin>\u002Fv1\u002Fconnectors\u002Foauth\u002F\u003Cprovider>\u002Fcallback`, which the Connectors page also\n  shows.\n\nName the pages (Settings → Credentials, Settings → Connectors) without links and offer the drop\nlink. Never invent URLs or ask for keys or client secrets in chat. Never\nask regular users to configure a source.\n\n## Guide Slack installation\n\nCheck this silently before offering Slack bot setup during admin onboarding. It is\nseparate from personal account connections. Verify admin status first. On a\nhuman-started admin turn, read `GET \u002Fv1\u002Fadmin\u002Fslack-installation`; it returns setup\nmetadata, not tokens. A failed read means unknown, not absent. Never inspect\ndeployment secrets to infer status.\n\n- `configured: true`: skip silently during onboarding, including environment-backed\n  installs. Do not add a setup heading, say \"already connected\", or ask for a test DM.\n  Configuration is not a live connectivity check; troubleshoot only if asked.\n- `managed: true`, `configured: false`: leave disabled setup alone unless the admin\n  asks to resume or re-enable it. Do not advertise it during onboarding.\n- `source: \"invalid_environment\"`: this is incomplete setup, not an absent app. Do\n  not create a duplicate; offer to finish the existing setup using its secure page.\n- Only a successful read confirming an absent bot warrants a new setup offer.\n  Respect a prior deferral and continue with personal connections.\n\nFor company-owned provisioning, the status response supplies `setup.tokenUrl`,\n`setup.submitUrl`, and `setup.installUrl`. They are stable authenticated QM entry\nlinks, not expiring tickets. Never invent URLs or mint launch tickets in the shell.\n\nOn the web surface, post **[Set up Slack](setup.submitUrl)** once, using the returned\nURL. The conversation renders one live checklist with all three links together in one message:\n**Create token**, **Submit token**, and **Add to Slack**, plus the instructional GIF.\nIt checks progress in place without another assistant reply. Do not duplicate that\nchecklist in prose. On other surfaces, present all three returned links together:\n\n1. Create token: open `setup.tokenUrl`. Under **App Configuration Tokens**, choose\n   **Generate Token**, select the intended workspace, and copy the **access token**,\n   not the refresh token.\n2. Submit token: open `setup.submitUrl`, the secure provisioning form. This is\n   not a generic keychain token-drop. The token can manage other apps they own in\n   that workspace. QM creates\u002Fconfigures its app, then discards the token.\n   Never paste it in chat, memory, files, or the keychain.\n3. Add to Slack: open `setup.installUrl` after submitting the token, review the\n   workspace, and choose **Allow**. The company owns the app.\n\n`setup.appReady` means the app exists; it does not mean it is installed.\nOnly verified `setup.connected` together with `configured` warrants **Connected**.\nRequire a real reply before claiming the bot works, not as an onboarding prerequisite.\nA failed status read or `setupUnavailable` means unknown, not absent. Do not restart\nprovisioning or create a duplicate. Retry the existing links or follow recovery guidance.\n\n`installAvailable: true` without `setup` means the shared QM Slack app. In web chat, reply\nwith one short line and `::add-to-slack{}` as its own paragraph. On other surfaces, link\n**[Add to Slack](installUrl)** using the returned `installUrl`. Do not name a workspace,\nmention unavailable setup, offer creating their own app, or use `createUrl`.\n\nWithout managed installation, use the returned `createUrl` and the known dashboard's\nworkspace app guide. Do not ask for a configuration token this flow cannot consume.\nHave them enter credentials only in its secure form. Do not guess scopes, callback\nURLs, or credential requirements. Setup is optional; continue onboarding if deferred.\n\n## Finding the scope\n\nMost endpoints take `?scope=\u003CscopeId>` (`org:\u003Corg>`, `personal:\u003Cuser>`, `channel:\u003Cid>`).\nDon't guess ids — list them:\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Fscopes        → every scope with display labels (#channel names, people) and what lives there\n```\n\n## Read & govern a scope's config\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Fscopes\u002F\u003CscopeId>                → resolved config: commandPolicy, soul (+version), egress, flags, connectors, serviceCredentials\nPUT \u002Fv1\u002Fadmin\u002Fscopes\u002F\u003CscopeId>\u002F\u003Cresource>     → resource ∈ soul | command-policy | egress |\n                                                connectors | service-credentials |\n                                                base-model (org-wide LLM; body { modelId } — e.g. gpt-5.5; empty string clears)\n```\n\nGET first, then PUT the corrected value (`soul` takes `{content}`, `egress` takes\n`{allowedHosts,deniedHosts}`, the toggles take `{on}`). Changes apply next turn.\n\nSpend caps: `PUT …\u002F\u003CscopeId>\u002Fspend-limit` with `{dailyUsd?, monthlyUsd?}` (USD, per UTC\nday\u002Fmonth, counted the way the Spend page counts a scope). On the org scope it is the\ndefault for every person's personal scope; on a person, channel or project scope it caps\nthat scope and overrides the default. `{}` means no cap there, `{inherit:true}` clears it.\nAt the cap new turns there are refused until reset, and cron fires report the refusal.\n\n## Read & fix any scope's memory\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Fmemory?scope=\u003CscopeId>          → that scope's whole notebook\nPUT \u002Fv1\u002Fadmin\u002Fmemory?scope=\u003CscopeId>          {\"content\":\"…full replacement…\"}\n```\n\n(For \"remember this org-wide\" you don't need the admin plane at all — `\"scope\":\"org\"`\non the memory self-API is the lighter path; see the memory skill.)\n\n## Inspect activity & content\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Fsessions?scope=&limit=&cursor=  → conversation listing (turns, last activity); pass nextCursor for older rows\nGET \u002Fv1\u002Fadmin\u002Fsessions\u002F\u003Cid>?scope=            → a transcript\nGET \u002Fv1\u002Fadmin\u002Fsessions\u002F\u003Cid>\u002Fllm?scope=        → captured provider requests — what the model actually saw (debugging \"why did it do X\")\nGET \u002Fv1\u002Fadmin\u002Ffiles?scope=                    → document store; read?id= \u002F download?id= for content\nGET \u002Fv1\u002Fadmin\u002Fvolumes?scope=                  → a scope's computer\u002Fbackup contents (sizes only)\nGET \u002Fv1\u002Fadmin\u002Fcrons|apps|skills?scope= → artifacts by owner\n```\n\n## Observability\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Faudit?scope=     GET \u002Fv1\u002Fadmin\u002Ferrors?scope=    GET \u002Fv1\u002Fadmin\u002Fegress?scope=\nGET \u002Fv1\u002Fadmin\u002Fretention\nGET \u002Fv1\u002Fadmin\u002Fusers            → roster + admin status (org-wide)\n```\n\nUsers lists the `users` table, the people and apps QM has met: someone joins on their own first\nmessage (not a non-person actor; a Slack id is recorded as the person the directory maps it to),\nwhen invited as a teammate, or when made an admin. Each row has a generated `userId`; `principalId`\nis the person's main sign-in and `aliases` lists every sign-in that resolves to them. Linking merges\na sign-in's user into its person's. Rows carry `kind` (`person` or `app`, for Slack apps), `firstSeenAt`\nand `source`; session and turn counts add up activity across all of the user's sign-ins. Any\n`\u002Fv1\u002Fadmin\u002Fusers\u002F\u003Cid>` route takes either the `userId` or any sign-in. Spend and Keychain people carry\n`userId` too, and retention counts each person (not each sign-in) once, leaving apps out.\n\n## External users\n\nOutside collaborators, admitted by email with a role and an expiry; they sign in at the\nportal with that address until it lapses. Listed alongside the roster:\n\n```bash\nGET \u002Fv1\u002Fadmin\u002Fusers                          → externalUsers: [{email, role, expiresAt, invitedBy, status: active|expired}]\nPOST \u002Fv1\u002Fadmin\u002Fexternal-users                {\"email\":\"ana@partner.com\",\"expiresAt\":\"2026-12-31\"}   role defaults to member; expiresAt required (a bare date means end of that day UTC; ISO date-time or epoch ms also work)\nDELETE \u002Fv1\u002Fadmin\u002Fexternal-users\u002F\u003Cemail>      → revokes access now; the row stays listed as expired (a DELETE a day after expiry removes it)\n```\n\nConfirm with the admin before inviting or revoking — say who, which role, and until\nwhen. The invitation email needs Resend configured on core (`RESEND_API_KEY` +\n`AUTH_EMAIL_FROM`); without it the user is still added. When the response has\n`emailSent:false`, tell the admin why (`emailProblem`) and hand them `signInUrl` to pass\nalong themselves. The `org_admin` role for externals is portal-only, like every other\ngrant change — don't offer it.\n\n## Admin grants (promote \u002F revoke)\n\nNot available through you: who governs the org changes only in the admin dashboard,\nwhere the admin acts directly. If asked, point them there — don't try the API\n(`POST\u002FDELETE \u002Fv1\u002Fadmin\u002Fgrants` refuses agent tokens).\n\n## Offboarding a user\n\nWhen someone leaves, `offboard_user` (`POST \u002Fv1\u002Fadmin\u002Fusers\u002F\u003Cprincipal>\u002Foffboard`) stops what runs as them in\none call. Run it from a DM with the admin; it reads private inventory.\n\n1. Preview: call without `apply`. `changes` lists every step it would take, first to last: deactivate\n   sign-in, disable and archive crons they own anywhere, pause their loops, disable their webhooks,\n   revoke their active keychain grants, archive apps and skills in their personal scope, retire their\n   personal computers (clearing the default first). An empty list for a misspelled id is your hint to\n   check the spelling.\n2. Show the admin the preview in plain words and get a yes. Retiring a computer destroys its disk; back up\n   its workspace first if they want it.\n3. Apply with `value: {\"apply\": true}`. Each change comes back `done` or `failed` with the error and is\n   audited as the admin. Re-running is safe: finished items drop out, so a retry does only what's left.\n4. Look for what it deliberately leaves, and ask the admin about each:\n   - apps, skills and computers they created in shared scopes (`deployments`, `skills`, `sandboxes`\n     filtered by creator) — others may rely on them;\n   - their stored credentials (`keychain`) — they stay encrypted and unused once grants are revoked;\n   - an admin grant — portal-only, revoked under Admins in the dashboard;\n   - computers whose provider can't retire them.\n\nApplying sets `offboardedAt`\u002F`offboardedBy` on the person's row in the `users` table: the response's `user`\n(also on the `user` detail, and `offboarded` in the `users` list) holds when and by whom; the audit log's\n`user.offboard.*` entries are the change list. The row is written before any change is applied, so if it\ncan't be written the call fails and nothing changes. The dashboard hides offboarded people from Users until \"Show offboarded\" is clicked.\n\nConversations, memory and files stay as the record. `reactivate_user` turns sign-in back on (even after a\ndirectory-sync removal), clears `offboardedAt`\u002F`offboardedBy` (the audit log keeps the history), and\nrestores nothing else; owners or admins restore crons, loops, apps and skills\nthrough their usual controls.\n\n## Scheduling admin-reading work\n\nA cron's fires run as its owner with the owner's own authority, so an org admin's\nscheduled work can read what the admin could on a typed turn — no grants to set up.\nChanges through the admin API stay with typed turns. Two things still need settling\nat creation, not after the first fire fails:\n\n1. **Audience.** Private-content reads (transcripts, memory, files, the scope directory)\n   still require the cron's home to be the owner's own DM or an Open conversation. A\n   cron created with `channel` or `participants` is homed in that room; if the room is\n   not Open for the admin, those reads will refuse there. Spend, audit, egress, crons\n   and config reads work from any home.\n2. **Who sees the output.** Before its output goes anywhere but the admin's own DM (a\n   `recipient`, or later a `retarget` from a room's conversation), tell the admin\n   plainly that the cron will read admin data as them and that everyone there will see\n   whatever it posts, with nothing re-checking each post. Weigh the room: say so if it\n   is shared with outsiders or isolated from their personal context. Proceed only on\n   their explicit yes; the move is audited and appears in the cron's history.\n\nIf part of the task can't work from where the cron will live, say so before or at\ncreation. Don't create a cron that will fail on its first fire without saying so.\nRemember that whoever rewrites a shared cron's task becomes its owner: the fires then\nrun with that person's standing, not the original admin's.\n\n## Failure modes\n\n- `403 admin grant required for this scope` — the user isn't an org admin (or was just\n  revoked). Say so; don't retry or work around it.\n- `403 … carry a person's own authority — this turn runs with none` — a bot actor, an\n  external audience, a cron or loop whose task an automated turn wrote (its owner\n  restores their authority by rewriting it on a turn they send) or that a conversation\n  owns, or a session message whose authorization chain could not be verified. Report it\n  where the run delivers — never finish silently.\n- `403 admin changes need the admin at the keyboard …` — a fire tried to change\n  something. Report the change you would make where the run delivers; the admin\n  confirms it on a turn they send.\n- `403 … returns private content — ask the agent in a DM` — the shared room does not have effective Open access for this admin;\n  tell the admin to ask again in a DM with you (or, for reads they want recurring\n  on a schedule, to create the cron from their DM so it is homed there).\n- `403 … grant changes (promote\u002Frevoke) are portal-only` — point them at the dashboard.\n- `403 granting or removing org admin for an external user is portal-only …` — same\n  answer: the dashboard.\n- `409 that address already belongs to a member of the org …` — org email domain, Slack\n  directory, sign-in allow-list, or someone who has already used the agent. They are not\n  external; to promote them, point the admin at Grant org admin in the dashboard and\n  tell them to enter the email as the principal ID. The person need not appear in Users first.\n- `409 that address holds an org admin grant of its own …` — the admin manages that grant\n  under Admins in the dashboard first.\n- `403 capability token not valid for this route` — this core predates agent admin\n  access; the user must use the admin dashboard.\n",{"name":5,"description":7},"main","1737fb29208398cfba4a2db58e4fd94ffd23b5d0","skills-seed\u002Fadmin",1960,"https:\u002F\u002Fgithub.com\u002Fyc-software\u002Fqm","https:\u002F\u002Flabs.ycombinator.com\u002Fqm","https:\u002F\u002Fgithub.com\u002Fyc-software","ycombinator.com","2026-11-15 01:58:49",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add yc-software\u002Fqm --skill admin",{"tool":39,"command":40},"bunx","bunx skills add yc-software\u002Fqm --skill admin",{"tool":42,"command":43},"pnpm","pnpm dlx skills add yc-software\u002Fqm --skill admin","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fyc-software\u002Fqm\u002Fblob\u002Fmain\u002Fskills-seed\u002Fadmin\u002FSKILL.md",true,[],[48,55,62,69,76,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M79VXTEATDTE0X6SZRD4J75X","zoom","Find, create, reschedule, and cancel the user's Zoom meetings through their own Zoom connection.","https:\u002F\u002Fgithub.com\u002Fyc-software\u002Fqm\u002Fblob\u002Fmain\u002Fskills-seed\u002Fzoom\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M79VXKJ50M6G24Q11A3806R5","use-shared-credential","When you need to call a service the org has a SHARED credential for (a SERP\u002Fsearch key, a paid-API key, a data-vendor feed, a Git remote) — and the platform has told you that credential is available to this conversation — make the call BY PROXY through the credential broker. You never see the secret; the core stamps it onto the outbound request for you.","https:\u002F\u002Fgithub.com\u002Fyc-software\u002Fqm\u002Fblob\u002Fmain\u002Fskills-seed\u002Fuse-shared-credential\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M79VXERKP52PBXTQ7KAX82S4","ui-state","See what the person is looking at in the QM web UI right now — the whole page (sidebar, every multiview pane, open dialogs) as raw HTML, the app's state as JSON, optionally the CSS and a screenshot. Use when they ask about something on their screen, want help with the UI, or you need to check what a canvas you wrote actually rendered.","https:\u002F\u002Fgithub.com\u002Fyc-software\u002Fqm\u002Fblob\u002Fmain\u002Fskills-seed\u002Fui-state\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79VXASHJ1WX4J68T3MBHZEK","ui-canvas","Draw your own HTML\u002FCSS\u002FJS as a full-window overlay on top of the QM web UI — a dashboard, a form, a visualization, controls that message you back. Write, update, replace, pin or dismiss it. Use when an interactive or visual result beats a chat reply.","https:\u002F\u002Fgithub.com\u002Fyc-software\u002Fqm\u002Fblob\u002Fmain\u002Fskills-seed\u002Fui-canvas\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M79VX53549EYHNJBHD3PCFSG","taste-skill","Design taste and process for anything a person will look at in a browser — landing page, dashboard, prototype, deck. The default design driver for a browsable artifact, with an anti-slop playbook for the visual language.","https:\u002F\u002Fgithub.com\u002Fyc-software\u002Fqm\u002Fblob\u002Fmain\u002Fskills-seed\u002Ftaste-skill\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fyc-software\u002Fqm\u002Fblob\u002Fmain\u002Fskills-seed\u002Ftaste-skill\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M79VX1DEE1BZZBK66NNCD238","slack-drafts","Create Slack message drafts in the user's own composer, as the user, through their per-user Slack OAuth. Drafting only — the user reviews and sends from Slack.","https:\u002F\u002Fgithub.com\u002Fyc-software\u002Fqm\u002Fblob\u002Fmain\u002Fskills-seed\u002Fslack-drafts\u002FSKILL.md",[],[]]