accept
免费Accept HQ membership invites from a magic link or raw token.
中文简介正在准备中。当前显示原文说明。
Inspect or update a company resource registry around resource changes.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
A company's resource registry is the shared inventory of its persistent infrastructure (repos, apps, services, databases, infra, packages). This skill teaches HQ to:
User's argument: $ARGUMENTS — one of: check, list, show <id>, add, update <id>, deprecate <id>, help. Default when no arg: check.
A registry is a plain folder inside the company directory containing YAML topology files — one file per resource plus an auto-generated index. The folder is provisioned by the HQ installer when a company is created and kept in sync across machines by hq-sync (the same mechanism that syncs the rest of the company filesystem). The skill never touches git.
Registry layout (inside a company folder):
companies/{co}/registry/
├── schema/resource.schema.yaml # Field spec, version 1.0.0
├── resources/{id}.yaml # One file per resource (source of truth)
├── registry.yaml # Auto-generated flat index (don't edit by hand)
├── scripts/generate-index.sh # Regenerates registry.yaml (provisioned here)
└── README.md # Registry-level notes
Companion HQ paths:
companies/{co}/settings/resource-overrides/ — gitignored; per-machine credentials/paths (the only place op:// refs, endpoints, or local clone paths live)companies/manifest.yaml → company entry has registry: companies/{co}/registry when declaredDetermine the active company from context (cwd, recent edits, user's message). Then check in order:
# 1. Manifest declaration (soft hint)
yq ".companies.\"{co}\".registry // \"none\"" companies/manifest.yaml
# 2. Physical folder (authoritative)
[ -d "companies/{co}/registry" ] && echo "FOUND" || echo "MISSING"
Outcomes:
hq-sync hasn't reconciled yet on this machine. Report "Registry declared for {co} but not present locally — run hq-sync, or ask the installer to reprovision the company filesystem." and stop."No registry for {co} — see Step 6 to bootstrap one if desired." and stop unless the user explicitly asks to create one.If the folder exists, verify the index is present:
[ -f companies/{co}/registry/registry.yaml ] || echo "MISSING_INDEX — regenerate with: cd companies/{co}/registry && bash scripts/generate-index.sh"
yq '.resources[] | " " + .id + " — " + .name + " (" + .type + ", " + .status + ")"' \
companies/{co}/registry/registry.yaml
Flat table: id, name, type, status. Answers "what do we have?" without loading every full YAML.
# All active repos
yq '.resources[] | select(.type == "repo" and .status == "active") | .id' \
companies/{co}/registry/registry.yaml
# Full details for a single resource
cat companies/{co}/registry/resources/{id}.yaml
If the registry has a qmd collection declared in the company's qmd_collections list, use qmd:
qmd search "<query>" -c {co}-registry --json -n 10
qmd vsearch "<concept>" -c {co}-registry --json -n 10
Use qmd when the user asks conceptually ("what handles auth?", "any vector DBs?"). Use yq/Read when you have a specific id or type filter.
When you need access details (credentials, endpoints, local paths), read the local override, not the shared topology:
ls companies/{co}/settings/resource-overrides/{id}.local.yaml 2>/dev/null && \
cat companies/{co}/settings/resource-overrides/{id}.local.yaml
Override files are gitignored. They're the only place op:// refs, endpoints, or local clone paths live.
When the user asks you to create a new repo, app, service, database, or infra component, first check the registry:
yq '.resources[] | select(.type == "{type}") | .name' companies/{co}/registry/registry.yamlgrep -ri "{keyword}" companies/{co}/registry/resources/Why this matters: Registries drift from reality when new resources get created without being registered. The pre-flight check is the counter-force — every creation event funnels through registry awareness.
{type}-{slug} (e.g. repo-my-service, app-marketing-site, db-primary-postgres). Kebab-case, globally unique across the registry.companies/{co}/registry/schema/resource.schema.yaml — confirm current field spec.companies/{co}/registry/resources/{id}.yaml with required fields:
id, name, type (enum: repo/app/service/infra/database/ai/package), purpose (1-2 sentences)owner, status (active/deprecated/planned)created_at, updated_at (YYYY-MM-DD or ISO)dependencies: [], used_by: [], constraints: [], tags: [] (optional, default empty)repo_url, language, runtime (include when known)op:// refs, API keys, passwords, connection strings, IP:port, private keys, ghp_/xoxb- tokens. If you need to capture credentials, write them to companies/{co}/settings/resource-overrides/{id}.local.yaml instead.used_by or dependencies list.cd companies/{co}/registry && bash scripts/generate-index.sh
hq-sync reconciles it across teammates' machines on the next sync cycle. No git commit, no push — the registry is not a standalone repo.resources/{id}.yaml. Bump updated_at to today.used_by / dependencies.status: active → status: deprecated. Bump updated_at.constraints note: "Scheduled for removal {date} — use {replacement-id} instead."dependencies lists (direct deps must resolve to active resources).Only delete when the resource never existed (phantom entry) or was fully removed from infrastructure with no history value. Otherwise prefer status: deprecated. If deleting, also grep for the id across resources/ and remove it from any dependencies/used_by lists, then regenerate the index.
The registry folder is part of the company filesystem. Cross-machine sync is handled by hq-sync — the same mechanism that reconciles everything else under companies/{co}/. This skill does not run git commands, push, pull, or commit.
What this means in practice:
hq-sync pull will bring your changes to their machine.hq-sync, not here.hq-sync command — the skill has no say in how or when that runs.If you ever see a companies/{co}/registry/.git/ directory, you're on a legacy setup (pre-migration). Treat it as read-only for this skill; migration out of the separate-repo model is a one-time operation.
If the active company has no registry and the user wants one, use the templates that ship with this skill:
mkdir -p companies/{co}/registry/{schema,resources,scripts}
cp .claude/skills/registry/templates/resource.schema.yaml companies/{co}/registry/schema/
cp .claude/skills/registry/templates/generate-index.sh companies/{co}/registry/scripts/
cp .claude/skills/registry/templates/README.md companies/{co}/registry/
chmod +x companies/{co}/registry/scripts/generate-index.sh
registry: companies/{co}/registry to the company's entry in companies/manifest.yaml. If the company also has a GitHub org or Vercel team that should drive auto-capture, set github_org: / vercel_team: on the same entry.resources/ per existing repo/app/service the company operates.cd companies/{co}/registry && bash scripts/generate-index.sh
{co}-registry to the company's qmd_collections list in companies/manifest.yaml, then run qmd update.No separate git repo, no pre-commit hook, no branch protection — the registry lives in the company filesystem and inherits its sync mechanism.
Some events trigger automatic resource capture via .claude/hooks/auto-capture-registry.sh:
| Event | Hook action |
|---|---|
gh repo create with a known company org | Writes companies/{co}/registry/resources/repo-{name}.yaml stub + regenerates index |
vercel deploy with a known company scope | Writes/updates companies/{co}/registry/resources/vercel-{project}.yaml + regenerates index |
Auto-captured stubs have purpose: "Auto-captured — update this description" and tag auto-captured. After auto-capture, enrich the stub — fill in purpose, owner, dependencies, constraints. Unresolved stubs rot the registry.
Hooks are gated to HQ_HOOK_PROFILE=standard (not minimal). Failures are non-blocking. Matching is manifest-driven: the hook resolves the active company by looking up companies.{co}.github_org or companies.{co}.vercel_team and only writes if that company declares registry: in the manifest.
| Signal | Action |
|---|---|
| User says "what repos/apps/services does {co} have?" | Step 2a/2c (list/search) |
| User asks to create a new repo/app/service/DB | Step 3 (pre-flight) → then normal creation → Step 4a (register) |
| User renames or deprecates a resource | Step 4b/4c |
After gh repo create or vercel deploy | Check if auto-capture fired; enrich stub |
| User asks "how do we access {resource}?" | Step 2d (read local override — never leak shared topology with creds) |
| User asks to bootstrap a registry for a new company | Step 6 |
companies/{co}/settings/resource-overrides/ (gitignored). Mixing them into resources/*.yaml is the failure mode the topology/overrides split is designed to prevent.registry.yaml is derived. Don't edit it by hand — always regenerate via scripts/generate-index.sh in the registry folder.hq-sync, not a standalone repo. Don't git add, git commit, git push, or run /sync-registry from this skill — they don't apply.manifest.yaml says a repo exists but the registry doesn't, either the registry is stale (register it) or the manifest is stale (remove it). Resolve the gap, don't ignore it.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Accept HQ membership invites from a magic link or raw token.
中文简介正在准备中。当前显示原文说明。
Capture qualifying architecture decisions as ADRs in the right HQ or repo location.
中文简介正在准备中。当前显示原文说明。
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
中文简介正在准备中。当前显示原文说明。
Find shallow modules and propose deepening refactors, ranked with file refs; never edits code. Use when code is hard to change or planning a refactor.
中文简介正在准备中。当前显示原文说明。
Generate dark ASCII banner graphics for HQ and social launch assets.
中文简介正在准备中。当前显示原文说明。
Compare approaches to best-in-class prior art, merge existing work, verify cruft removal, and recommend the most durable design before PRD work.
中文简介正在准备中。当前显示原文说明。