[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71DWD8BKD0RSZ73JWE97EYA":3,"skill-same:01M71DWD8BKD0RSZ73JWE97EYA":73},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M71DWD8BKD0RSZ73JWE97EYA","delegate",null,"Hand a project to a person or fleet agent: grants, dossier, ownership transfer, and a pickup DM.","indigoai-us\u002Fhq-core","indigoai-us","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F122242446?v=4","01M71DTQ5NGD10GT1Z7E6XKWC5","HQ","01M71DTQ6BKSYYBNC9RAKT3YDK",95,"MIT","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdelegate\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"rm","pickup","bundle","ownership","fleet","person","secrets","read","scripts","grants","verify","dossier","hand","Bash","send","session","repo","project","core","2026-11-10 10:12:30",false,"---\nname: delegate\ndescription: \"Hand a project to a person or fleet agent: grants, dossier, ownership transfer, and a pickup DM.\"\nallowed-tools: Read, AskUserQuestion, Skill, Bash(hq:*), Bash(bash core\u002Fscripts\u002Fhq-session.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-resolve.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-bundle.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-grant.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-repo.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-secrets.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-transfer.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-verify.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-send.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-pickup.sh:*), Bash(rm:*)\n---\n\n# \u002Fdelegate — one-command project handoff\n\nTransfer a project with exact grant receipts, a published dossier, and a pickup\nDM. Local board and PRD ownership are updated, and `hq mesh project reassign`\nmoves Work Mesh project ownership and the delegator's open stories to the\nrecipient. Work Mesh ownership counts as confirmed only when the server returns\na receipt naming the recipient; otherwise it stays unconfirmed. Sender-side\nchecks prove publication, not recipient access; record actual pickup separately.\n\nRequires HQ CLI 5.109.7 or newer, with `whoami --json`, `files acl --json`, and\n`people resolve --membership-only`. If those options are unsupported, update\nthe CLI before retrying; never fall back to parsing display tables.\n\n## Usage\n\n```\n\u002Fdelegate \u003Crecipient> [project] [--share] [--no-secrets] [--dry-run] [--company \u003Cslug>]\n```\n\n- `\u003Crecipient>` — a teammate's name, email, `prs_…` personUid, or a fleet\n  agent's name or `agt_…` agentUid. Required.\n- `[project]` — the project slug under `companies\u002F\u003Cco>\u002Fprojects\u002F`. Defaults to\n  the session's active project (`bash core\u002Fscripts\u002Fhq-session.sh get project`).\n- `--share` — grant access and send the brief but keep ownership (board, PRD,\n  work mesh untouched). Default is a full transfer.\n- `--no-secrets` — skip the credential handover entirely. Escape hatch only:\n  honoured when the user types it, never proposed or asked about by the skill.\n- `--dry-run` — print the full plan and change nothing.\n- `--company \u003Cslug>` — defaults to the session's bound company\n  (`bash core\u002Fscripts\u002Fhq-session.sh get company_slug`).\n\nThe heavy lifting lives in tested helpers; this skill orchestrates them\nand reports what they did. Do not reimplement their logic inline.\nInvoking `\u002Fdelegate` is the authorization — the skill asks the user nothing.\n\n## Process\n\n### 1. Resolve context\n\nCompany from `--company` or `bash core\u002Fscripts\u002Fhq-session.sh get company_slug`;\nproject from the argument or `bash core\u002Fscripts\u002Fhq-session.sh get project`.\nIf either is still unknown, ask — one structured question, not a guess. Verify\nthe project has a source of truth: `companies\u002F\u003Cco>\u002Fprojects\u002F\u003Cproject>\u002Fprd.json`\n(PRD stage), or, when there is no PRD yet, `brainstorm.md` (brainstorm stage,\npolicy `hq-brainstorm-leaves-handoffable-project-folder`). If neither exists,\nstop and say so plainly — the project needs `\u002Fbrainstorm` or `\u002Fprd` first.\n\nA brainstorm-stage delegation hands over `brainstorm.md`, every note under\n`research\u002F`, and the newest journal entry; the brief and pickup prompt say\n\"brainstorm stage, no PRD yet\" and name `\u002Fprd \u003Cproject>` as the next step; the\ntransfer updates the board's `status: exploring` entry (matched by\n`brainstorm_path`) and writes `owner` \u002F `delegated_from` \u002F `delegated_at` into\nthe brainstorm.md frontmatter instead of PRD metadata. Every later step reads\nthe stage from the manifest (`project.stage`), so nothing below changes.\n\n### 2. Resolve the recipient — confirm before anything else\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-resolve.sh --company \u003Cco> --to \"\u003Crecipient>\"\n```\n\n- **Exit 0** — JSON `{kind, principal, displayName}`. Continue.\n- **Exit 3 (ambiguous)** — the output carries `matches[]`. Present the\n  candidates as a single structured picker (AskUserQuestion; decision-queue\n  pattern, one question). Never guess, never send blind. Re-run nothing —\n  use the chosen principal directly.\n- **Exit 4 (not found \u002F no email)** — STOP. Relay the helper's message: no\n  teammate or fleet agent by that name in this company; the user can pass an\n  exact email, `prs_…`, or `agt_…` instead.\n\nResolution is single-company and tenancy-safe; never look across companies.\n\n### 3. Dry run (when `--dry-run`)\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-verify.sh --dry-run --company \u003Cco> --project \u003Cproject> --to \u003Cprincipal> [--mode share]\n```\n\nPrint the plan verbatim and stop. Nothing is pushed, granted, transferred, or\nsent, and nothing lands under `workspace\u002Fdelegations\u002F`.\n\n### 4. Freeze session state\n\nBefore building the bundle, checkpoint the session so nothing in flight is\nlost to the handoff:\n\n```bash\nhq core checkpoint --summary \"Delegating \u003Cproject> to \u003CdisplayName>\" || true\n```\n\nIf checkpointing is unavailable in this runtime, note it and continue — the\ndelegation itself does not depend on it.\n\n### 5. Build the bundle\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-bundle.sh build --company \u003Cco> --project \u003Cproject> \\\n  --to \u003Cprincipal> --to-kind \u003Ckind> --to-name \"\u003CdisplayName>\" [--mode share]\n```\n\nPrints the `delegationId`; the manifest is\n`workspace\u002Fdelegations\u002F\u003CdelegationId>\u002Fmanifest.json`. The builder fails closed\nif its own output matches a secret pattern — if it does, stop and report,\nnever work around it.\n\n### 6. Collect the plan (no mutations yet)\n\nRun the three gated helpers WITHOUT `--yes`. Each prints its plan and exits 2;\nnone of them touches anything. This is how the skill learns the vault prefixes,\nthe secret names, and whether the branch needs pushing — it is not a gate, and\nnothing waits on the user here:\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-grant.sh --manifest \u003Cmanifest>          # vault grants incl. write escalation\nbash core\u002Fscripts\u002Fhq-delegate-repo.sh --manifest \u003Cmanifest>           # exit 2 only when a local-only branch needs pushing\nbash core\u002Fscripts\u002Fhq-delegate-secrets.sh --manifest \u003Cmanifest>        # secret NAMES that will be granted (only skipped when the user typed --no-secrets)\n```\n\n### 7. State the plan, then proceed — no confirmation\n\nThere is no confirmation step.\nThe invocation is the authorization for everything the flow does: the user\ntyped `\u002Fdelegate` with a recipient, and that is the whole approval. Do NOT present a\nProceed\u002FCancel picker, do NOT offer alternatives or a reduced variant, and do\nNOT raise the vault write grant, the credential handover, the branch push, or\nthe DM as questions. Nothing here waits on the user.\n\nState — do not ask — what is about to happen, in one compact full-prose block:\n\n- the recipient as resolved: display name + principal, and whether they are a\n  person or a fleet agent\n- the mode: full ownership transfer, or share (ownership stays)\n- every vault prefix with its permission — noting plainly that **write** lets\n  the recipient upload, overwrite, and delete under the project prefix, and\n  that access persists until manually revoked\n- every secret name being granted (read) — this always happens, values never\n  move, and the recipient consumes them via `hq run` \u002F `hq secrets exec`\n- the repo and branch, including \"the branch exists only locally and will be\n  pushed\" when the repo helper said so\n- that a DM goes to the recipient once everything verifies\n\nThen go straight to step 8 in the same turn. `--dry-run` is the preview path\nfor anyone who wants the plan without the mutation, and `--no-secrets` is the\ncredential opt-out; both are the user's to type and neither is ever suggested\nmid-run.\n\nAskUserQuestion survives for exactly two things, and neither is a permission\nprompt: an ambiguous recipient (step 2, exit 3) and a company or project that\ncould not be resolved (step 1). Those are missing inputs — the skill cannot\nname a recipient it cannot resolve. Everything else proceeds unasked.\n\n### 8. Execute, in order, stopping at the first failure\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-grant.sh --manifest \u003Cmanifest> --yes\nbash core\u002Fscripts\u002Fhq-delegate-repo.sh --manifest \u003Cmanifest> --yes        # when the project has a repo\nbash core\u002Fscripts\u002Fhq-delegate-secrets.sh --manifest \u003Cmanifest> --yes     # always, unless the user typed --no-secrets\nbash core\u002Fscripts\u002Fhq-delegate-transfer.sh --manifest \u003Cmanifest>          # skipped automatically in share mode; runs hq mesh project reassign\nbash core\u002Fscripts\u002Fhq-delegate-verify.sh --manifest \u003Cmanifest>            # reachability probe — gates the send\n```\n\nVerification invokes `core\u002Fscripts\u002Fhq-delegate-publish.sh` to publish the final\nPRD, brief, manifest, and journal. It compares canonical cloud bytes with local\nchecksums before allowing the send. Conflicts or stale canonical files fail\nverification; resolve them through HQ sync and reuse the same manifest.\n\nIf any step fails: report **which step** in plain language with the specific\nfix from its stderr, send nothing, and never claim partial success. The\nmanifest keeps its last successful status, so re-running `\u002Fdelegate` for the\nsame project resumes instead of re-granting. Never delete\n`workspace\u002Fdelegations\u002F\u003CdelegationId>\u002F` on failure — that record is what makes\nthe resume work.\n\n### 9. Send\n\nDraft the DM headline, then run the channel-aware humanize pass on it per\n`core\u002Fknowledge\u002Fpublic\u002Fhq-core\u002Fhumanize-before-send.md` (channel `dm`,\nintensity `light`) — plain and factual, no hype. Never rewrite the generated\ncommand lines, recipients, or flags. Then:\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-send.sh --manifest \u003Cmanifest> --send --headline \"\u003Chumanized headline>\"\n```\n\nOne DM, prompt and brief attached from files. The helper refuses to send\nunless the probe passed.\n\nIf a DM call fails or returns no event receipt, status stays `sending`.\nInspect HQ DM history and reconcile the actual event before retrying. Never\nreset that status merely to resend; the previous call may have delivered.\n\nAlways deliver the handoff DM through `hq-delegate-send.sh`. If a DM already\nwent out some other way (manifest still `granted`, `verified`, or `sending`,\nand `hq-delegate-pickup.sh --check` refuses with exit 2), record it instead of\nre-sending:\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-send.sh --manifest \u003Cmanifest> --reconcile \u003CeventId>\n```\n\n### 10. Close the loop: receipt or FAILED\n\n\"Sent\" is a send receipt, not a delivery receipt. The delegation is not done\nuntil the recipient demonstrably has it. Record the receipt the moment there is\nevidence, and let silence turn into a FAILED state instead of an open question:\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-pickup.sh --manifest \u003Cmanifest> --ack \"\u003Ctheir reply, verbatim>\"   # they acknowledged\nbash core\u002Fscripts\u002Fhq-delegate-pickup.sh --manifest \u003Cmanifest> --check                            # probe: recipient commit on the branch? (exit 0 picked-up, 6 waiting, 5 FAILED past the window)\nbash core\u002Fscripts\u002Fhq-delegate-pickup.sh --manifest \u003Cmanifest> --status                           # one-line state\n```\n\nDefault window is 72h (`HQ_DELEGATE_PICKUP_WINDOW_HOURS`). A FAILED result names\nwhy (no acknowledgement, no commit by the recipient) so the delegator can\nre-send with a direct ask or hand it to someone else. `\u002Fstartwork` should run\n`--check` on any manifest still at `sent`.\n\n### 11. Report\n\nRead `workMeshOwnership` from the manifest:\n\n- `confirmed`: the Work Mesh board now names the recipient. Nothing to add.\n- `not-registered`: the project has no Work Mesh board (`PROJECT_VIEW_NOT_FOUND`),\n  so local ownership is authoritative and the transfer is complete. Do not\n  suggest the reassign command; it cannot succeed. Optionally mention that the\n  project can be put on the board with `hq mesh project register`.\n- `unconfirmed` (an older CLI, a server without `hq mesh project reassign`, or\n  another failure): say so in the report and name the follow-up command:\n  `hq mesh project reassign \u003Cproject> --company \u003Cco> --to \u003Cuid> --include-open-stories`.\n\nOne plain sentence naming the recipient and what they now have — no step log,\nno jargon. Example:\n\n> Alice's grants and dossier are verified, and her pickup DM was sent.\n> Recipient acknowledgement is pending.\n\n## Rules\n\n1. **Never mint or embed a share-session URL.** Delegation uses direct ACL\n   grants only (policy `hq-delegate-never-inlines-secrets-or-share-urls`).\n   If a step suggests the browser share flow, that is the wrong path.\n2. **Never let a secret value into any artifact, DM, or output.** Names only;\n   the helpers fail closed on secret-shaped content — respect the failure,\n   never work around it.\n3. **Never ask for permission.** The invocation is the authorization. No\n   confirmation picker, no \"want me to proceed?\", no offered alternatives, no\n   per-step approval — for the vault grants (write included), the secret\n   handover, the branch push, or the DM. The only questions this skill may\n   ever ask are for missing inputs it cannot resolve: an ambiguous recipient\n   and an unresolvable company or project.\n4. **Always hand over the required secrets.** A delegation the recipient\n   cannot run is not a delegation. Grant every secret the project needs, by\n   name, read-only — never as its own question, never as an alternative\n   option, never a per-secret prompt. The only opt-out is the user typing\n   `--no-secrets`; if they do, say plainly in the report that the recipient\n   has no credential access and will have to ask for it.\n5. **Never send blind.** The recipient must come from\n   `hq-delegate-resolve.sh` output or be an exact principal the user typed.\n   On ambiguity, use the picker; on not-found, stop.\n6. **A failed probe means no DM.** A delegation that cannot be picked up\n   fails in front of the delegator — that is the feature working, not a step\n   to skip.\n7. **Tenancy.** Everything is scoped to one company. Cross-company delegation\n   is out of scope and must be refused plainly.\n\n## See also\n\n- `\u002Fhandoff` — session-state freeze without an ownership change\n- `\u002Fdm` — the delivery channel this skill sends through\n- `\u002Fhq-share` — one-off vault path shares (link or single grant)\n- `\u002Fnew-agent` — provisioning a fleet agent (the verified-probe pattern this\n  skill's verification step follows)\n- `core\u002Fknowledge\u002Fpublic\u002Fhq-core\u002Fdelegation-bundle-spec.md` — the manifest\n  contract every helper reads\n","# \u002Fdelegate — one-command project handoff\n\nTransfer a project with exact grant receipts, a published dossier, and a pickup\nDM. Local board and PRD ownership are updated, and `hq mesh project reassign`\nmoves Work Mesh project ownership and the delegator's open stories to the\nrecipient. Work Mesh ownership counts as confirmed only when the server returns\na receipt naming the recipient; otherwise it stays unconfirmed. Sender-side\nchecks prove publication, not recipient access; record actual pickup separately.\n\nRequires HQ CLI 5.109.7 or newer, with `whoami --json`, `files acl --json`, and\n`people resolve --membership-only`. If those options are unsupported, update\nthe CLI before retrying; never fall back to parsing display tables.\n\n## Usage\n\n```\n\u002Fdelegate \u003Crecipient> [project] [--share] [--no-secrets] [--dry-run] [--company \u003Cslug>]\n```\n\n- `\u003Crecipient>` — a teammate's name, email, `prs_…` personUid, or a fleet\n  agent's name or `agt_…` agentUid. Required.\n- `[project]` — the project slug under `companies\u002F\u003Cco>\u002Fprojects\u002F`. Defaults to\n  the session's active project (`bash core\u002Fscripts\u002Fhq-session.sh get project`).\n- `--share` — grant access and send the brief but keep ownership (board, PRD,\n  work mesh untouched). Default is a full transfer.\n- `--no-secrets` — skip the credential handover entirely. Escape hatch only:\n  honoured when the user types it, never proposed or asked about by the skill.\n- `--dry-run` — print the full plan and change nothing.\n- `--company \u003Cslug>` — defaults to the session's bound company\n  (`bash core\u002Fscripts\u002Fhq-session.sh get company_slug`).\n\nThe heavy lifting lives in tested helpers; this skill orchestrates them\nand reports what they did. Do not reimplement their logic inline.\nInvoking `\u002Fdelegate` is the authorization — the skill asks the user nothing.\n\n## Process\n\n### 1. Resolve context\n\nCompany from `--company` or `bash core\u002Fscripts\u002Fhq-session.sh get company_slug`;\nproject from the argument or `bash core\u002Fscripts\u002Fhq-session.sh get project`.\nIf either is still unknown, ask — one structured question, not a guess. Verify\nthe project has a source of truth: `companies\u002F\u003Cco>\u002Fprojects\u002F\u003Cproject>\u002Fprd.json`\n(PRD stage), or, when there is no PRD yet, `brainstorm.md` (brainstorm stage,\npolicy `hq-brainstorm-leaves-handoffable-project-folder`). If neither exists,\nstop and say so plainly — the project needs `\u002Fbrainstorm` or `\u002Fprd` first.\n\nA brainstorm-stage delegation hands over `brainstorm.md`, every note under\n`research\u002F`, and the newest journal entry; the brief and pickup prompt say\n\"brainstorm stage, no PRD yet\" and name `\u002Fprd \u003Cproject>` as the next step; the\ntransfer updates the board's `status: exploring` entry (matched by\n`brainstorm_path`) and writes `owner` \u002F `delegated_from` \u002F `delegated_at` into\nthe brainstorm.md frontmatter instead of PRD metadata. Every later step reads\nthe stage from the manifest (`project.stage`), so nothing below changes.\n\n### 2. Resolve the recipient — confirm before anything else\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-resolve.sh --company \u003Cco> --to \"\u003Crecipient>\"\n```\n\n- **Exit 0** — JSON `{kind, principal, displayName}`. Continue.\n- **Exit 3 (ambiguous)** — the output carries `matches[]`. Present the\n  candidates as a single structured picker (AskUserQuestion; decision-queue\n  pattern, one question). Never guess, never send blind. Re-run nothing —\n  use the chosen principal directly.\n- **Exit 4 (not found \u002F no email)** — STOP. Relay the helper's message: no\n  teammate or fleet agent by that name in this company; the user can pass an\n  exact email, `prs_…`, or `agt_…` instead.\n\nResolution is single-company and tenancy-safe; never look across companies.\n\n### 3. Dry run (when `--dry-run`)\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-verify.sh --dry-run --company \u003Cco> --project \u003Cproject> --to \u003Cprincipal> [--mode share]\n```\n\nPrint the plan verbatim and stop. Nothing is pushed, granted, transferred, or\nsent, and nothing lands under `workspace\u002Fdelegations\u002F`.\n\n### 4. Freeze session state\n\nBefore building the bundle, checkpoint the session so nothing in flight is\nlost to the handoff:\n\n```bash\nhq core checkpoint --summary \"Delegating \u003Cproject> to \u003CdisplayName>\" || true\n```\n\nIf checkpointing is unavailable in this runtime, note it and continue — the\ndelegation itself does not depend on it.\n\n### 5. Build the bundle\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-bundle.sh build --company \u003Cco> --project \u003Cproject> \\\n  --to \u003Cprincipal> --to-kind \u003Ckind> --to-name \"\u003CdisplayName>\" [--mode share]\n```\n\nPrints the `delegationId`; the manifest is\n`workspace\u002Fdelegations\u002F\u003CdelegationId>\u002Fmanifest.json`. The builder fails closed\nif its own output matches a secret pattern — if it does, stop and report,\nnever work around it.\n\n### 6. Collect the plan (no mutations yet)\n\nRun the three gated helpers WITHOUT `--yes`. Each prints its plan and exits 2;\nnone of them touches anything. This is how the skill learns the vault prefixes,\nthe secret names, and whether the branch needs pushing — it is not a gate, and\nnothing waits on the user here:\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-grant.sh --manifest \u003Cmanifest>          # vault grants incl. write escalation\nbash core\u002Fscripts\u002Fhq-delegate-repo.sh --manifest \u003Cmanifest>           # exit 2 only when a local-only branch needs pushing\nbash core\u002Fscripts\u002Fhq-delegate-secrets.sh --manifest \u003Cmanifest>        # secret NAMES that will be granted (only skipped when the user typed --no-secrets)\n```\n\n### 7. State the plan, then proceed — no confirmation\n\nThere is no confirmation step.\nThe invocation is the authorization for everything the flow does: the user\ntyped `\u002Fdelegate` with a recipient, and that is the whole approval. Do NOT present a\nProceed\u002FCancel picker, do NOT offer alternatives or a reduced variant, and do\nNOT raise the vault write grant, the credential handover, the branch push, or\nthe DM as questions. Nothing here waits on the user.\n\nState — do not ask — what is about to happen, in one compact full-prose block:\n\n- the recipient as resolved: display name + principal, and whether they are a\n  person or a fleet agent\n- the mode: full ownership transfer, or share (ownership stays)\n- every vault prefix with its permission — noting plainly that **write** lets\n  the recipient upload, overwrite, and delete under the project prefix, and\n  that access persists until manually revoked\n- every secret name being granted (read) — this always happens, values never\n  move, and the recipient consumes them via `hq run` \u002F `hq secrets exec`\n- the repo and branch, including \"the branch exists only locally and will be\n  pushed\" when the repo helper said so\n- that a DM goes to the recipient once everything verifies\n\nThen go straight to step 8 in the same turn. `--dry-run` is the preview path\nfor anyone who wants the plan without the mutation, and `--no-secrets` is the\ncredential opt-out; both are the user's to type and neither is ever suggested\nmid-run.\n\nAskUserQuestion survives for exactly two things, and neither is a permission\nprompt: an ambiguous recipient (step 2, exit 3) and a company or project that\ncould not be resolved (step 1). Those are missing inputs — the skill cannot\nname a recipient it cannot resolve. Everything else proceeds unasked.\n\n### 8. Execute, in order, stopping at the first failure\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-grant.sh --manifest \u003Cmanifest> --yes\nbash core\u002Fscripts\u002Fhq-delegate-repo.sh --manifest \u003Cmanifest> --yes        # when the project has a repo\nbash core\u002Fscripts\u002Fhq-delegate-secrets.sh --manifest \u003Cmanifest> --yes     # always, unless the user typed --no-secrets\nbash core\u002Fscripts\u002Fhq-delegate-transfer.sh --manifest \u003Cmanifest>          # skipped automatically in share mode; runs hq mesh project reassign\nbash core\u002Fscripts\u002Fhq-delegate-verify.sh --manifest \u003Cmanifest>            # reachability probe — gates the send\n```\n\nVerification invokes `core\u002Fscripts\u002Fhq-delegate-publish.sh` to publish the final\nPRD, brief, manifest, and journal. It compares canonical cloud bytes with local\nchecksums before allowing the send. Conflicts or stale canonical files fail\nverification; resolve them through HQ sync and reuse the same manifest.\n\nIf any step fails: report **which step** in plain language with the specific\nfix from its stderr, send nothing, and never claim partial success. The\nmanifest keeps its last successful status, so re-running `\u002Fdelegate` for the\nsame project resumes instead of re-granting. Never delete\n`workspace\u002Fdelegations\u002F\u003CdelegationId>\u002F` on failure — that record is what makes\nthe resume work.\n\n### 9. Send\n\nDraft the DM headline, then run the channel-aware humanize pass on it per\n`core\u002Fknowledge\u002Fpublic\u002Fhq-core\u002Fhumanize-before-send.md` (channel `dm`,\nintensity `light`) — plain and factual, no hype. Never rewrite the generated\ncommand lines, recipients, or flags. Then:\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-send.sh --manifest \u003Cmanifest> --send --headline \"\u003Chumanized headline>\"\n```\n\nOne DM, prompt and brief attached from files. The helper refuses to send\nunless the probe passed.\n\nIf a DM call fails or returns no event receipt, status stays `sending`.\nInspect HQ DM history and reconcile the actual event before retrying. Never\nreset that status merely to resend; the previous call may have delivered.\n\nAlways deliver the handoff DM through `hq-delegate-send.sh`. If a DM already\nwent out some other way (manifest still `granted`, `verified`, or `sending`,\nand `hq-delegate-pickup.sh --check` refuses with exit 2), record it instead of\nre-sending:\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-send.sh --manifest \u003Cmanifest> --reconcile \u003CeventId>\n```\n\n### 10. Close the loop: receipt or FAILED\n\n\"Sent\" is a send receipt, not a delivery receipt. The delegation is not done\nuntil the recipient demonstrably has it. Record the receipt the moment there is\nevidence, and let silence turn into a FAILED state instead of an open question:\n\n```bash\nbash core\u002Fscripts\u002Fhq-delegate-pickup.sh --manifest \u003Cmanifest> --ack \"\u003Ctheir reply, verbatim>\"   # they acknowledged\nbash core\u002Fscripts\u002Fhq-delegate-pickup.sh --manifest \u003Cmanifest> --check                            # probe: recipient commit on the branch? (exit 0 picked-up, 6 waiting, 5 FAILED past the window)\nbash core\u002Fscripts\u002Fhq-delegate-pickup.sh --manifest \u003Cmanifest> --status                           # one-line state\n```\n\nDefault window is 72h (`HQ_DELEGATE_PICKUP_WINDOW_HOURS`). A FAILED result names\nwhy (no acknowledgement, no commit by the recipient) so the delegator can\nre-send with a direct ask or hand it to someone else. `\u002Fstartwork` should run\n`--check` on any manifest still at `sent`.\n\n### 11. Report\n\nRead `workMeshOwnership` from the manifest:\n\n- `confirmed`: the Work Mesh board now names the recipient. Nothing to add.\n- `not-registered`: the project has no Work Mesh board (`PROJECT_VIEW_NOT_FOUND`),\n  so local ownership is authoritative and the transfer is complete. Do not\n  suggest the reassign command; it cannot succeed. Optionally mention that the\n  project can be put on the board with `hq mesh project register`.\n- `unconfirmed` (an older CLI, a server without `hq mesh project reassign`, or\n  another failure): say so in the report and name the follow-up command:\n  `hq mesh project reassign \u003Cproject> --company \u003Cco> --to \u003Cuid> --include-open-stories`.\n\nOne plain sentence naming the recipient and what they now have — no step log,\nno jargon. Example:\n\n> Alice's grants and dossier are verified, and her pickup DM was sent.\n> Recipient acknowledgement is pending.\n\n## Rules\n\n1. **Never mint or embed a share-session URL.** Delegation uses direct ACL\n   grants only (policy `hq-delegate-never-inlines-secrets-or-share-urls`).\n   If a step suggests the browser share flow, that is the wrong path.\n2. **Never let a secret value into any artifact, DM, or output.** Names only;\n   the helpers fail closed on secret-shaped content — respect the failure,\n   never work around it.\n3. **Never ask for permission.** The invocation is the authorization. No\n   confirmation picker, no \"want me to proceed?\", no offered alternatives, no\n   per-step approval — for the vault grants (write included), the secret\n   handover, the branch push, or the DM. The only questions this skill may\n   ever ask are for missing inputs it cannot resolve: an ambiguous recipient\n   and an unresolvable company or project.\n4. **Always hand over the required secrets.** A delegation the recipient\n   cannot run is not a delegation. Grant every secret the project needs, by\n   name, read-only — never as its own question, never as an alternative\n   option, never a per-secret prompt. The only opt-out is the user typing\n   `--no-secrets`; if they do, say plainly in the report that the recipient\n   has no credential access and will have to ask for it.\n5. **Never send blind.** The recipient must come from\n   `hq-delegate-resolve.sh` output or be an exact principal the user typed.\n   On ambiguity, use the picker; on not-found, stop.\n6. **A failed probe means no DM.** A delegation that cannot be picked up\n   fails in front of the delegator — that is the feature working, not a step\n   to skip.\n7. **Tenancy.** Everything is scoped to one company. Cross-company delegation\n   is out of scope and must be refused plainly.\n\n## See also\n\n- `\u002Fhandoff` — session-state freeze without an ownership change\n- `\u002Fdm` — the delivery channel this skill sends through\n- `\u002Fhq-share` — one-off vault path shares (link or single grant)\n- `\u002Fnew-agent` — provisioning a fleet agent (the verified-probe pattern this\n  skill's verification step follows)\n- `core\u002Fknowledge\u002Fpublic\u002Fhq-core\u002Fdelegation-bundle-spec.md` — the manifest\n  contract every helper reads\n",{"name":5,"description":7,"allowed-tools":43},"Read, AskUserQuestion, Skill, Bash(hq:*), Bash(bash core\u002Fscripts\u002Fhq-session.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-resolve.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-bundle.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-grant.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-repo.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-secrets.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-transfer.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-verify.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-send.sh:*), Bash(bash core\u002Fscripts\u002Fhq-delegate-pickup.sh:*), Bash(rm:*)","main","205cf61728a27ef15e9153aa38df5856fc8d82f5",".claude\u002Fskills\u002Fdelegate",18,"https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core","https:\u002F\u002Fgithub.com\u002Findigoai-us","https:\u002F\u002Fhqforwork.com\u002F","The AI Context Layer for Teams","2026-11-12 06:53:38",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add indigoai-us\u002Fhq-core --skill delegate",{"tool":59,"command":60},"bunx","bunx skills add indigoai-us\u002Fhq-core --skill delegate",{"tool":62,"command":63},"pnpm","pnpm dlx skills add indigoai-us\u002Fhq-core --skill delegate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdelegate\u002FSKILL.md",true,[67],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"agents\u002Fopenai.yaml","REFERENCE","参考文档",136,"https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdelegate\u002Fagents\u002Fopenai.yaml",[74,82,89,96,103,110],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":81},"01M73NTNKZ3T2KJNDP2ZF23645","job","Deprecated alias for \u002Fschedule — Outpost recurring agent jobs. Prefer \u002Fschedule.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjob\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":81},"01M73NTE0H9DQTT6DNHDKRWTXW","import-claude","Deprecated alias for \u002Fimport-context — bootstrap HQ from your prior AI footprint (Claude Code, Codex, Grok, claude.ai history plus on-disk artifacts).","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimport-claude\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":81},"01M73NT67433KKX96CCJWDQQ0X","hq-whoami","Show current HQ Cognito identity and session expiry.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-whoami\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":81},"01M73NT17SVXZV2QPT14C2RPJP","hq-share","Share HQ vault paths through single-use links or direct ACL grants.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-share\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":81},"01M73NSXYFMD7EHGT8TFDZA3C8","hq-secrets","Use HQ CLI secrets safely through env injection or one-off exec.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-secrets\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":81},"01M73NSWCXJK29Q8CNG8AS3ZZQ","hq-logout","Sign out of HQ Cognito and clear local tokens.","https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-logout\u002FSKILL.md",[],[]]