[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71DY496BTC3TWASG996XTVB":3,"skill-same:01M71DY496BTC3TWASG996XTVB":74},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M71DY496BTC3TWASG996XTVB","hq-access",null,"Diagnose and fix a vault file you cannot find or open — never existed, not synced (fetch and pin it), or no access (ask the owner with a one-click grant 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\u002Fhq-access\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"hq access","access","dm","read","find","vault","with","one","file","Bash","ask","you","pin","synced","open","fix","diagnose","never","click","fetch","2026-11-10 10:12:30",false,"---\nname: hq-access\ndescription: Diagnose and fix a vault file you cannot find or open — never existed, not synced (fetch and pin it), or no access (ask the owner with a one-click grant DM).\nallowed-tools: Bash(hq:*), Read, AskUserQuestion\n---\n\n# \u002Fhq-access — the access ladder\n\nWhen someone cannot find or open a file under `companies\u002F\u003Cslug>\u002F…`, do not\nreply \"the file does not exist\". Exactly one of three things is true, and this\nskill tells you which and fixes what it can:\n\n1. **never-existed** — the path is not in the vault (offer to create it if a generator exists).\n2. **not-synced** — it is in the vault and you can read it, but it is not on this machine. Fetch and pin it.\n3. **no-access** — it is in the vault but you lack a grant. Ask the right owner once, with a ready-made grant command.\n\n**User input:** `$ARGUMENTS` — a path (`companies\u002F\u003Cslug>\u002Fknowledge\u002Freport.md` or\n`knowledge\u002Freport.md`) or free text naming the file (\"the August platinum\nreport\"). Optional flags pass straight through: `--company \u003Cslug>`, `--no-fix`,\n`--yes`.\n\n## Step 1 — Parse the target\n\n- If `$ARGUMENTS` looks like a path (contains `\u002F` or a file extension), use it verbatim.\n- Otherwise treat it as a search query. Never guess a key from free text: the\n  CLI (or the backup ladder) will search and, on several hits, you MUST ask the\n  user to pick with `AskUserQuestion` before touching anything.\n- Resolve the company: `--company`, else the `companies\u002F\u003Cslug>\u002F` anchor in the\n  path, else the active company in `\u003ChqRoot>\u002F.hq\u002Fconfig.json`.\n\n## Step 2 — Run the CLI ladder (preferred)\n\n```bash\nhq access \"\u003Ctarget>\" --json [--company \u003Cslug>] [--no-fix]\n```\n\n`hq access` ships in `@indigoai-us\u002Fhq-cli` **>= 5.109.0**. It vends through\n`\u002Fsts\u002Fvend`, checks the exact prefix ACL (carve-out denies honoured, \"no ACL\nrecord\" = membership-distributed, not denied), fetches and pins on\n`not-synced` (running `hq sync status` \u002F `hq sync doctor` and retrying once if\nthe fetch fails), and on `no-access` resolves the grantor and asks once before\nsending the DM.\n\nRead the JSON: `{ outcome, path, company, exists, steps[], grantor?, localPath?,\nrequestSentAt?, alreadyAskedAt?, candidates? }`. Exit codes: `0` local or\nnot-synced, `2` never-existed, `3` no-access or pending-confirmation, `4`\nambiguous.\n\n- `ambiguous` (exit 4): show `candidates` with `AskUserQuestion` (one question,\n  the keys as options), then re-run with the chosen path.\n- `pending-confirmation` (exit 3): the CLI resolved the grantor but did not send\n  because `--json` was used without `--yes`. Go to Step 4.\n- Any other outcome: report it in the words of Step 5.\n\nIf the command fails with `unknown command 'access'` \u002F `error: unknown command`,\nor `hq --version` is below 5.109.0, fall back to Step 3.\n\n## Step 3 — Backup ladder (older CLIs)\n\nRun the same rungs in the same order with the commands every CLI already has.\nStop at the first rung that decides the outcome.\n\n1. **Resolve.** Exact path first. Otherwise\n   `hq files search \"\u003Cquery>\" --company \u003Cslug>`; one hit proceeds, several hits\n   go to `AskUserQuestion` (never auto-pick), zero hits → `never-existed`.\n2. **Exists?** `hq files browse companies\u002F\u003Cslug>\u002F\u003Cdir>\u002F --company \u003Cslug>` and\n   look for the key. Absent → `never-existed`.\n3. **Access?** `hq files acl \u003Ccompany-relative-prefix> --company \u003Cslug>`.\n   \"No ACL record exists\" on a company file is normal — treat as accessible.\n   `Your effective permission:` missing, `none`, or `deny` (including a carve-out\n   deny on the exact prefix under a broader read) → `no-access`.\n4. **Not local?** `ls \u003ChqRoot>\u002Fcompanies\u002F\u003Cslug>\u002F\u003Ckey>`. Present → `local`.\n   Otherwise `hq files get companies\u002F\u003Cslug>\u002F\u003Ckey> --company \u003Cslug>` (materializes\n   and pins). If get fails for a non-403 reason: `hq sync status`, then\n   `hq sync doctor --reconcile-conflicts` (dry-run; add `--yes` only if it\n   reports conflict twins), then retry get exactly once. If the output contains\n   a bulk-asymmetry circuit-breaker message, surface it verbatim and stop —\n   never override it.\n5. **No access → ask the owner.** Grantor = the `Creator:` from `hq files acl`\n   if there is a row (map the uid to a person with `hq members list --company\n   \u003Cslug>`), else the company `owner`, then `admin`s from the same list. Bare\n   names go through `hq people resolve \u003Cname> --company \u003Cslug>`. Then Step 4.\n\n## Step 4 — The one confirmation before the owner DM\n\nAlways show the resolved recipient **email** first, then ask exactly one\nquestion (use `AskUserQuestion` when available, plain y\u002FN otherwise):\n\n> Ask `\u003Cname> \u003Cemail>` for read access to `\u003Ccompany-relative-prefix>`?\n\nOnly on yes:\n\n```bash\nhq dm \u003Cgrantor-email> \"\u003Crequester-email> is asking for read access to \u003Cprefix> in \u003Cslug>.\" \\\n  --prompt \"hq files share \u003Cprefix> --with \u003Crequester-email> --permission read --company \u003Cslug>\"\n```\n\nor, when the CLI has `hq access`, re-run it with `--yes`. Never send without\nthat answer, never send twice for the same (requester, prefix, grantor) within\n24 hours (`\u003ChqRoot>\u002F.hq\u002Faccess-requests.json` is the ledger; say \"already asked\n\u003Cname> \u003Ctime ago>\" instead), and never print share-session URLs or secrets.\n\n`\u003Cprefix>` is the exact file key, or `\u003Cfolder>\u002F*` when the request covers a\nfolder. Never put a bare trailing-slash `\u003Cfolder>\u002F` in the prompt: that pattern\ncreates a private create-only folder and does not grant read on its contents.\n\n## Step 5 — Report in plain language\n\nEnd with exactly one of:\n\n- `never created` — \"`\u003Cpath>` was never created in the \u003Cslug> vault.\" Offer to create it if a generator exists.\n- `not synced, now fixed` — \"Fetched and pinned; now local at `\u003Cabsolute path>`.\" Then open it.\n- `no access, owner asked` — \"The file exists but you do not have read access. Asked \u003Cname>; you will get a DM when granted.\"\n\nNever reply \"the file does not exist\" without naming which of the three it is\n(policy `hq-failed-file-open-runs-access-ladder`).\n\n## See also\n\n- `\u002Fhq-files` — grants, ACLs, browse\u002Fcat\u002Fget, pins\n- `\u002Fhq-sync` — full sync, `hq sync status`, `hq sync doctor`\n- `\u002Fhq-heal --class access` — routes here\n- `\u002Fdm` — the notification primitive the request rung uses\n","# \u002Fhq-access — the access ladder\n\nWhen someone cannot find or open a file under `companies\u002F\u003Cslug>\u002F…`, do not\nreply \"the file does not exist\". Exactly one of three things is true, and this\nskill tells you which and fixes what it can:\n\n1. **never-existed** — the path is not in the vault (offer to create it if a generator exists).\n2. **not-synced** — it is in the vault and you can read it, but it is not on this machine. Fetch and pin it.\n3. **no-access** — it is in the vault but you lack a grant. Ask the right owner once, with a ready-made grant command.\n\n**User input:** `$ARGUMENTS` — a path (`companies\u002F\u003Cslug>\u002Fknowledge\u002Freport.md` or\n`knowledge\u002Freport.md`) or free text naming the file (\"the August platinum\nreport\"). Optional flags pass straight through: `--company \u003Cslug>`, `--no-fix`,\n`--yes`.\n\n## Step 1 — Parse the target\n\n- If `$ARGUMENTS` looks like a path (contains `\u002F` or a file extension), use it verbatim.\n- Otherwise treat it as a search query. Never guess a key from free text: the\n  CLI (or the backup ladder) will search and, on several hits, you MUST ask the\n  user to pick with `AskUserQuestion` before touching anything.\n- Resolve the company: `--company`, else the `companies\u002F\u003Cslug>\u002F` anchor in the\n  path, else the active company in `\u003ChqRoot>\u002F.hq\u002Fconfig.json`.\n\n## Step 2 — Run the CLI ladder (preferred)\n\n```bash\nhq access \"\u003Ctarget>\" --json [--company \u003Cslug>] [--no-fix]\n```\n\n`hq access` ships in `@indigoai-us\u002Fhq-cli` **>= 5.109.0**. It vends through\n`\u002Fsts\u002Fvend`, checks the exact prefix ACL (carve-out denies honoured, \"no ACL\nrecord\" = membership-distributed, not denied), fetches and pins on\n`not-synced` (running `hq sync status` \u002F `hq sync doctor` and retrying once if\nthe fetch fails), and on `no-access` resolves the grantor and asks once before\nsending the DM.\n\nRead the JSON: `{ outcome, path, company, exists, steps[], grantor?, localPath?,\nrequestSentAt?, alreadyAskedAt?, candidates? }`. Exit codes: `0` local or\nnot-synced, `2` never-existed, `3` no-access or pending-confirmation, `4`\nambiguous.\n\n- `ambiguous` (exit 4): show `candidates` with `AskUserQuestion` (one question,\n  the keys as options), then re-run with the chosen path.\n- `pending-confirmation` (exit 3): the CLI resolved the grantor but did not send\n  because `--json` was used without `--yes`. Go to Step 4.\n- Any other outcome: report it in the words of Step 5.\n\nIf the command fails with `unknown command 'access'` \u002F `error: unknown command`,\nor `hq --version` is below 5.109.0, fall back to Step 3.\n\n## Step 3 — Backup ladder (older CLIs)\n\nRun the same rungs in the same order with the commands every CLI already has.\nStop at the first rung that decides the outcome.\n\n1. **Resolve.** Exact path first. Otherwise\n   `hq files search \"\u003Cquery>\" --company \u003Cslug>`; one hit proceeds, several hits\n   go to `AskUserQuestion` (never auto-pick), zero hits → `never-existed`.\n2. **Exists?** `hq files browse companies\u002F\u003Cslug>\u002F\u003Cdir>\u002F --company \u003Cslug>` and\n   look for the key. Absent → `never-existed`.\n3. **Access?** `hq files acl \u003Ccompany-relative-prefix> --company \u003Cslug>`.\n   \"No ACL record exists\" on a company file is normal — treat as accessible.\n   `Your effective permission:` missing, `none`, or `deny` (including a carve-out\n   deny on the exact prefix under a broader read) → `no-access`.\n4. **Not local?** `ls \u003ChqRoot>\u002Fcompanies\u002F\u003Cslug>\u002F\u003Ckey>`. Present → `local`.\n   Otherwise `hq files get companies\u002F\u003Cslug>\u002F\u003Ckey> --company \u003Cslug>` (materializes\n   and pins). If get fails for a non-403 reason: `hq sync status`, then\n   `hq sync doctor --reconcile-conflicts` (dry-run; add `--yes` only if it\n   reports conflict twins), then retry get exactly once. If the output contains\n   a bulk-asymmetry circuit-breaker message, surface it verbatim and stop —\n   never override it.\n5. **No access → ask the owner.** Grantor = the `Creator:` from `hq files acl`\n   if there is a row (map the uid to a person with `hq members list --company\n   \u003Cslug>`), else the company `owner`, then `admin`s from the same list. Bare\n   names go through `hq people resolve \u003Cname> --company \u003Cslug>`. Then Step 4.\n\n## Step 4 — The one confirmation before the owner DM\n\nAlways show the resolved recipient **email** first, then ask exactly one\nquestion (use `AskUserQuestion` when available, plain y\u002FN otherwise):\n\n> Ask `\u003Cname> \u003Cemail>` for read access to `\u003Ccompany-relative-prefix>`?\n\nOnly on yes:\n\n```bash\nhq dm \u003Cgrantor-email> \"\u003Crequester-email> is asking for read access to \u003Cprefix> in \u003Cslug>.\" \\\n  --prompt \"hq files share \u003Cprefix> --with \u003Crequester-email> --permission read --company \u003Cslug>\"\n```\n\nor, when the CLI has `hq access`, re-run it with `--yes`. Never send without\nthat answer, never send twice for the same (requester, prefix, grantor) within\n24 hours (`\u003ChqRoot>\u002F.hq\u002Faccess-requests.json` is the ledger; say \"already asked\n\u003Cname> \u003Ctime ago>\" instead), and never print share-session URLs or secrets.\n\n`\u003Cprefix>` is the exact file key, or `\u003Cfolder>\u002F*` when the request covers a\nfolder. Never put a bare trailing-slash `\u003Cfolder>\u002F` in the prompt: that pattern\ncreates a private create-only folder and does not grant read on its contents.\n\n## Step 5 — Report in plain language\n\nEnd with exactly one of:\n\n- `never created` — \"`\u003Cpath>` was never created in the \u003Cslug> vault.\" Offer to create it if a generator exists.\n- `not synced, now fixed` — \"Fetched and pinned; now local at `\u003Cabsolute path>`.\" Then open it.\n- `no access, owner asked` — \"The file exists but you do not have read access. Asked \u003Cname>; you will get a DM when granted.\"\n\nNever reply \"the file does not exist\" without naming which of the three it is\n(policy `hq-failed-file-open-runs-access-ladder`).\n\n## See also\n\n- `\u002Fhq-files` — grants, ACLs, browse\u002Fcat\u002Fget, pins\n- `\u002Fhq-sync` — full sync, `hq sync status`, `hq sync doctor`\n- `\u002Fhq-heal --class access` — routes here\n- `\u002Fdm` — the notification primitive the request rung uses\n",{"name":5,"description":7,"allowed-tools":44},"Bash(hq:*), Read, AskUserQuestion","main","205cf61728a27ef15e9153aa38df5856fc8d82f5",".claude\u002Fskills\u002Fhq-access",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":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add indigoai-us\u002Fhq-core --skill hq-access",{"tool":60,"command":61},"bunx","bunx skills add indigoai-us\u002Fhq-core --skill hq-access",{"tool":63,"command":64},"pnpm","pnpm dlx skills add indigoai-us\u002Fhq-core --skill hq-access","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-access\u002FSKILL.md",true,[68],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"agents\u002Fopenai.yaml","REFERENCE","参考文档",136,"https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhq-access\u002Fagents\u002Fopenai.yaml",[75,83,90,97,104,111],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":82},"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":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":82},"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":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":82},"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":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":82},"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":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":82},"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":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":82},"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",[],[]]