[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71DTTHWEVGG0CJ8FPX8WFYT":3,"skill-same:01M71DTTHWEVGG0CJ8FPX8WFYT":65},{"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":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M71DTTHWEVGG0CJ8FPX8WFYT","adr",null,"Capture qualifying architecture decisions as ADRs in the right HQ or repo location.","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\u002Fadr\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29],"as","repo","decisions","Bash","architecture","read","write","location","edit","grep","capture","2026-11-10 10:12:30",false,"---\nname: adr\ndescription: Capture qualifying architecture decisions as ADRs in the right HQ or repo location.\nallowed-tools: Read, Grep, Glob, Bash, Write, Edit, AskUserQuestion\n---\n\n# ADR\n\nArchitectural Decision Records — minimal, dated, sequentially numbered. The point is recording **that** a decision was made and **why**, not filling out template sections.\n\nPattern adapted from `mattpocock\u002Fskills` (`grill-with-docs\u002FADR-FORMAT.md`).\n\n## Step 0 — Resolve company + scope\n\n`$ARGUMENTS` may include:\n\n- `[company]` slug — fall back to manifest \u002F handoff \u002F cwd inference if absent\n- `[repo|hq]` scope — pick home directory\n- `\u003Cone-line decision summary>` — used as title and slug seed\n\nIf scope is ambiguous, ask via `AskUserQuestion`:\n\n| Choice | Home | When |\n|---|---|---|\n| `repo` | `\u003Crepo>\u002Fdocs\u002Fadr\u002F` | Decision is bound to specific code; reviewers will read it alongside the code |\n| `hq` | `companies\u002F{co}\u002Fknowledge\u002Fadrs\u002F` | Decision is org-level (e.g. \"we use Linear, not Jira\"; \"all auth via Cognito\") |\n\nIf no company resolves and scope is `hq`, default to `core\u002Fknowledge\u002Fpublic\u002Fadrs\u002F` (rare — most ADRs have a tenant).\n\n## Step 1 — Three-condition gate (HARD BLOCK)\n\nAsk the user three yes\u002Fno questions via a single `AskUserQuestion` call:\n\n1. **Hard to reverse** — would changing your mind later cost meaningful effort? (refactor, migration, contract renegotiation)\n2. **Surprising without context** — would a future reader look at the result and wonder \"why on earth did they do it this way?\"\n3. **Result of a real trade-off** — were there genuine alternatives, and did you pick this one for specific reasons?\n\nIf **any** answer is no → DO NOT WRITE THE ADR. Offer alternatives:\n\n| Failed condition | Alternative |\n|---|---|\n| Easy to reverse | Skip — you'll just reverse it later |\n| Not surprising | Skip — nobody will wonder |\n| No real trade-off | Add to `GLOSSARY.md` glossary instead, or skip |\n\nRe-prompt: \"Skip ADR \u002F Add to GLOSSARY.md \u002F Force-write anyway (rarely correct)\". Only `Force-write` proceeds; record reasoning in the ADR body so the override is explicit.\n\n## Step 2 — Locate or create target directory\n\n```bash\n# repo scope\nmkdir -p \u003Crepo>\u002Fdocs\u002Fadr\u002F\n\n# hq scope\nmkdir -p companies\u002F{co}\u002Fknowledge\u002Fadrs\u002F\n```\n\nLazy-create only when the first ADR is needed.\n\n## Step 3 — Compute next number\n\n```bash\nls \u003Ctarget>\u002F[0-9][0-9][0-9][0-9]-*.md 2>\u002Fdev\u002Fnull \\\n  | sed 's|.*\u002F\\([0-9]*\\)-.*|\\1|' \\\n  | sort -n \\\n  | tail -1\n```\n\nIncrement by 1. Default to `0001` if no existing ADRs. Format: `NNNN` (4-digit zero-padded).\n\nSlug from the user's title:\n\n- Lowercase\n- Spaces \u002F underscores → `-`\n- Strip non-alphanumeric except `-`\n- Cap at 60 chars\n\nFinal filename: `NNNN-slug.md`\n\n## Step 4 — Walk the user through 1–3 sentences\n\nSingle `AskUserQuestion` (or sequential prompts) collecting:\n\n- **Title** — short noun phrase, sentence case, ≤60 chars\n- **Body** — 1–3 sentences answering: what's the context, what did we decide, why this over alternatives\n\nThat's the minimum. The value is in *recording* the decision, not in completing a template.\n\n## Step 5 — Optional sections (offer, don't force)\n\nAsk via `AskUserQuestion` (multiSelect) which (if any) to include:\n\n- **Status frontmatter** (`proposed | accepted | deprecated | superseded by ADR-NNNN`) — useful when decisions are likely to be revisited\n- **Considered Options** — only when rejected alternatives are worth remembering\n- **Consequences** — only when non-obvious downstream effects need calling out\n\nIf user picks none, the ADR is just title + 1–3 sentences. Good.\n\n## Step 6 — Write ADR\n\nTemplate (use only the sections selected in Step 5):\n\n```markdown\n---\nstatus: \u003Caccepted|proposed|...>          # only if Status was selected\ndate: \u003CYYYY-MM-DD>\nrelated: []                              # ADR numbers, optional\n---\n\n# \u003CTitle>\n\n\u003C1-3 sentences: context, decision, why.>\n\n## Considered Options                    \u003C!-- optional -->\n\n- \u003COption A> — \u003Cwhy rejected>\n- \u003COption B> — \u003Cwhy rejected>\n\n## Consequences                          \u003C!-- optional -->\n\n- \u003Cnon-obvious downstream effect>\n```\n\n## Step 7 — Cross-link\n\nIf new domain terms surfaced during the conversation, offer to update `GLOSSARY.md` (in the same repo for `repo` scope; in `companies\u002F{co}\u002Fknowledge\u002FGLOSSARY.md` for `hq` scope).\n\nIf this ADR supersedes an earlier one, update the older ADR's frontmatter to `status: superseded by ADR-NNNN` (after asking).\n\nIf this ADR is accepting a `\u002Farchitect` candidate, add a backlink in `workspace\u002Freports\u002F{slug}-architect.md` under that candidate's \"Outcome\" section.\n\n## Step 8 — Report\n\nPrint:\n\n```\n✓ ADR written: \u003Ctarget>\u002FNNNN-slug.md\n  Title: \u003Ctitle>\n  Scope: repo | hq\n  Optional sections: \u003CStatus \u002F Considered Options \u002F Consequences \u002F none>\n  GLOSSARY.md updated: yes \u002F no\n  Supersedes: ADR-MMMM \u002F none\n```\n\n## What qualifies (examples)\n\n- **Architectural shape.** \"We're using a monorepo.\" \"Write model is event-sourced; read model projects to Postgres.\"\n- **Integration patterns between contexts.** \"Ordering and Billing communicate via domain events, not synchronous HTTP.\"\n- **Technology choices that carry lock-in.** Database, message bus, auth provider, deployment target. Not every library — just the ones that would take a quarter to swap out.\n- **Boundary and scope decisions.** \"Customer data is owned by the Customer context; other contexts reference it by ID only.\" Explicit no-s are as valuable as the yes-s.\n- **Deliberate deviations from the obvious path.** \"We're using manual SQL instead of an ORM because X.\" Anything where a reasonable reader would assume the opposite. Stops the next engineer from \"fixing\" something deliberate.\n- **Constraints not visible in the code.** \"We can't use AWS because of compliance requirements.\" \"Response times must be under 200ms because of the partner API contract.\"\n- **Rejected alternatives when the rejection is non-obvious.** Considered GraphQL, picked REST for subtle reasons → record it, otherwise someone will suggest GraphQL again in six months.\n\n## What does NOT qualify\n\n- Library choices that are easy to swap (date formatter, test runner version, lint rule preference)\n- Naming decisions (\"we call this thing the X intake\") → these go in `GLOSSARY.md`, not an ADR\n- Implementation details that the code itself makes obvious\n- Decisions you're already going to revisit next sprint (use a TODO comment)\n- \"We did the obvious thing\" — there's nothing to record\n\n## Cross-references\n\n- `\u002Fout-of-scope` — sibling skill for *rejected feature requests* (vs. this for *accepted technical decisions*).\n- `\u002Fbrainstorm`, `\u002Fprd`, `\u002Farchitect`, `\u002Fdiagnose` — all hand off here when a decision warrants ADR.\n- HQ `\u002Flearn` — for cross-tenant knowledge capture (different from per-repo \u002F per-company ADR).\n- Pattern source: `mattpocock\u002Fskills` `grill-with-docs\u002FADR-FORMAT.md`.\n","# ADR\n\nArchitectural Decision Records — minimal, dated, sequentially numbered. The point is recording **that** a decision was made and **why**, not filling out template sections.\n\nPattern adapted from `mattpocock\u002Fskills` (`grill-with-docs\u002FADR-FORMAT.md`).\n\n## Step 0 — Resolve company + scope\n\n`$ARGUMENTS` may include:\n\n- `[company]` slug — fall back to manifest \u002F handoff \u002F cwd inference if absent\n- `[repo|hq]` scope — pick home directory\n- `\u003Cone-line decision summary>` — used as title and slug seed\n\nIf scope is ambiguous, ask via `AskUserQuestion`:\n\n| Choice | Home | When |\n|---|---|---|\n| `repo` | `\u003Crepo>\u002Fdocs\u002Fadr\u002F` | Decision is bound to specific code; reviewers will read it alongside the code |\n| `hq` | `companies\u002F{co}\u002Fknowledge\u002Fadrs\u002F` | Decision is org-level (e.g. \"we use Linear, not Jira\"; \"all auth via Cognito\") |\n\nIf no company resolves and scope is `hq`, default to `core\u002Fknowledge\u002Fpublic\u002Fadrs\u002F` (rare — most ADRs have a tenant).\n\n## Step 1 — Three-condition gate (HARD BLOCK)\n\nAsk the user three yes\u002Fno questions via a single `AskUserQuestion` call:\n\n1. **Hard to reverse** — would changing your mind later cost meaningful effort? (refactor, migration, contract renegotiation)\n2. **Surprising without context** — would a future reader look at the result and wonder \"why on earth did they do it this way?\"\n3. **Result of a real trade-off** — were there genuine alternatives, and did you pick this one for specific reasons?\n\nIf **any** answer is no → DO NOT WRITE THE ADR. Offer alternatives:\n\n| Failed condition | Alternative |\n|---|---|\n| Easy to reverse | Skip — you'll just reverse it later |\n| Not surprising | Skip — nobody will wonder |\n| No real trade-off | Add to `GLOSSARY.md` glossary instead, or skip |\n\nRe-prompt: \"Skip ADR \u002F Add to GLOSSARY.md \u002F Force-write anyway (rarely correct)\". Only `Force-write` proceeds; record reasoning in the ADR body so the override is explicit.\n\n## Step 2 — Locate or create target directory\n\n```bash\n# repo scope\nmkdir -p \u003Crepo>\u002Fdocs\u002Fadr\u002F\n\n# hq scope\nmkdir -p companies\u002F{co}\u002Fknowledge\u002Fadrs\u002F\n```\n\nLazy-create only when the first ADR is needed.\n\n## Step 3 — Compute next number\n\n```bash\nls \u003Ctarget>\u002F[0-9][0-9][0-9][0-9]-*.md 2>\u002Fdev\u002Fnull \\\n  | sed 's|.*\u002F\\([0-9]*\\)-.*|\\1|' \\\n  | sort -n \\\n  | tail -1\n```\n\nIncrement by 1. Default to `0001` if no existing ADRs. Format: `NNNN` (4-digit zero-padded).\n\nSlug from the user's title:\n\n- Lowercase\n- Spaces \u002F underscores → `-`\n- Strip non-alphanumeric except `-`\n- Cap at 60 chars\n\nFinal filename: `NNNN-slug.md`\n\n## Step 4 — Walk the user through 1–3 sentences\n\nSingle `AskUserQuestion` (or sequential prompts) collecting:\n\n- **Title** — short noun phrase, sentence case, ≤60 chars\n- **Body** — 1–3 sentences answering: what's the context, what did we decide, why this over alternatives\n\nThat's the minimum. The value is in *recording* the decision, not in completing a template.\n\n## Step 5 — Optional sections (offer, don't force)\n\nAsk via `AskUserQuestion` (multiSelect) which (if any) to include:\n\n- **Status frontmatter** (`proposed | accepted | deprecated | superseded by ADR-NNNN`) — useful when decisions are likely to be revisited\n- **Considered Options** — only when rejected alternatives are worth remembering\n- **Consequences** — only when non-obvious downstream effects need calling out\n\nIf user picks none, the ADR is just title + 1–3 sentences. Good.\n\n## Step 6 — Write ADR\n\nTemplate (use only the sections selected in Step 5):\n\n```markdown\n---\nstatus: \u003Caccepted|proposed|...>          # only if Status was selected\ndate: \u003CYYYY-MM-DD>\nrelated: []                              # ADR numbers, optional\n---\n\n# \u003CTitle>\n\n\u003C1-3 sentences: context, decision, why.>\n\n## Considered Options                    \u003C!-- optional -->\n\n- \u003COption A> — \u003Cwhy rejected>\n- \u003COption B> — \u003Cwhy rejected>\n\n## Consequences                          \u003C!-- optional -->\n\n- \u003Cnon-obvious downstream effect>\n```\n\n## Step 7 — Cross-link\n\nIf new domain terms surfaced during the conversation, offer to update `GLOSSARY.md` (in the same repo for `repo` scope; in `companies\u002F{co}\u002Fknowledge\u002FGLOSSARY.md` for `hq` scope).\n\nIf this ADR supersedes an earlier one, update the older ADR's frontmatter to `status: superseded by ADR-NNNN` (after asking).\n\nIf this ADR is accepting a `\u002Farchitect` candidate, add a backlink in `workspace\u002Freports\u002F{slug}-architect.md` under that candidate's \"Outcome\" section.\n\n## Step 8 — Report\n\nPrint:\n\n```\n✓ ADR written: \u003Ctarget>\u002FNNNN-slug.md\n  Title: \u003Ctitle>\n  Scope: repo | hq\n  Optional sections: \u003CStatus \u002F Considered Options \u002F Consequences \u002F none>\n  GLOSSARY.md updated: yes \u002F no\n  Supersedes: ADR-MMMM \u002F none\n```\n\n## What qualifies (examples)\n\n- **Architectural shape.** \"We're using a monorepo.\" \"Write model is event-sourced; read model projects to Postgres.\"\n- **Integration patterns between contexts.** \"Ordering and Billing communicate via domain events, not synchronous HTTP.\"\n- **Technology choices that carry lock-in.** Database, message bus, auth provider, deployment target. Not every library — just the ones that would take a quarter to swap out.\n- **Boundary and scope decisions.** \"Customer data is owned by the Customer context; other contexts reference it by ID only.\" Explicit no-s are as valuable as the yes-s.\n- **Deliberate deviations from the obvious path.** \"We're using manual SQL instead of an ORM because X.\" Anything where a reasonable reader would assume the opposite. Stops the next engineer from \"fixing\" something deliberate.\n- **Constraints not visible in the code.** \"We can't use AWS because of compliance requirements.\" \"Response times must be under 200ms because of the partner API contract.\"\n- **Rejected alternatives when the rejection is non-obvious.** Considered GraphQL, picked REST for subtle reasons → record it, otherwise someone will suggest GraphQL again in six months.\n\n## What does NOT qualify\n\n- Library choices that are easy to swap (date formatter, test runner version, lint rule preference)\n- Naming decisions (\"we call this thing the X intake\") → these go in `GLOSSARY.md`, not an ADR\n- Implementation details that the code itself makes obvious\n- Decisions you're already going to revisit next sprint (use a TODO comment)\n- \"We did the obvious thing\" — there's nothing to record\n\n## Cross-references\n\n- `\u002Fout-of-scope` — sibling skill for *rejected feature requests* (vs. this for *accepted technical decisions*).\n- `\u002Fbrainstorm`, `\u002Fprd`, `\u002Farchitect`, `\u002Fdiagnose` — all hand off here when a decision warrants ADR.\n- HQ `\u002Flearn` — for cross-tenant knowledge capture (different from per-repo \u002F per-company ADR).\n- Pattern source: `mattpocock\u002Fskills` `grill-with-docs\u002FADR-FORMAT.md`.\n",{"name":5,"description":7,"allowed-tools":35},"Read, Grep, Glob, Bash, Write, Edit, AskUserQuestion","main","205cf61728a27ef15e9153aa38df5856fc8d82f5",".claude\u002Fskills\u002Fadr",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":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add indigoai-us\u002Fhq-core --skill adr",{"tool":51,"command":52},"bunx","bunx skills add indigoai-us\u002Fhq-core --skill adr",{"tool":54,"command":55},"pnpm","pnpm dlx skills add indigoai-us\u002Fhq-core --skill adr","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadr\u002FSKILL.md",true,[59],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"agents\u002Fopenai.yaml","REFERENCE","参考文档",115,"https:\u002F\u002Fgithub.com\u002Findigoai-us\u002Fhq-core\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadr\u002Fagents\u002Fopenai.yaml",[66,74,81,88,95,102],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":73},"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":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":73},"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":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":73},"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":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":73},"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":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":73},"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":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":73},"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",[],[]]