hq-cowork-files
Browse or read HQ vault files from Cowork without a full sync.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 95
- Forks
- 18
01 前言 Front Matter
- name
- hq-cowork-files
- description
- Browse or read HQ vault files from Cowork without a full sync.
- allowed-tools
- mcp__hq__hq_files
03 SKILL.md 正文
/hq-cowork-files — Inspect HQ vault objects from a sandboxed agent
Reads vault objects on demand from inside Cowork, where the hq CLI and the
local sync index aren't reachable. Routes through the host-side MCP server.
Args: $ARGUMENTS — an action plus its target. Infer the action from
intent if not explicit.
| Action | Purpose | Needs |
|---|---|---|
browse |
List objects under a vault path | path optional (defaults to root) |
cat |
Stream one object to text | path required |
acl |
Show the access-control list for a prefix | path required |
search |
Match vault object keys by path/name (NOT content) | query (or path) required |
shared-with-me |
List grants made to you | — |
get |
Materialize a file/prefix into local HQ on the host | path required; into optional |
Call the tool
{
"action": "cat",
"path": "companies/foo/knowledge/x.md",
"company": "<slug>", // omit to parse from path
"personal": false,
"into": "<dir>" // action=get only
}
Call mcp__hq__hq_files. For search, pass the query as query (or path).
Notes
searchmatches keys, not content. It's a path/name match over vault object keys — not full-text search. For content search use/hq-cowork-search(qmd), which is a different index.getwrites to the host's local HQ, not into the sandbox. The sandboxed agent won't see the materialized files unless the mounted HQ folder is shared. Prefercatto read content directly into the session.- Cross-company isolation.
companydefaults to the slug parsed from the path; pass it explicitly when that's ambiguous. Never operate across a company boundary you weren't asked to.
When to use this instead of /hq-files
Only inside Cowork or another sandboxed plugin host. On a host-side session,
prefer the unprefixed /hq-files (or hq files).
Why this skill exists
hq files authenticates with the user's Cognito session under ~/.hq and
reads the cloud vault — neither is visible from Cowork's Linux VM. The
host-side MCP server runs the real hq files <action> and returns output to
the sandboxed agent.
04 同仓库更多 Skills
job
Deprecated alias for /schedule — Outpost recurring agent jobs. Prefer /schedule.
import-claude
Deprecated alias for /import-context — bootstrap HQ from your prior AI footprint (Claude Code, Codex, Grok, claude.ai history plus on-disk artifacts).
hq-whoami
Show current HQ Cognito identity and session expiry.
hq-share
Share HQ vault paths through single-use links or direct ACL grants.
hq-secrets
Use HQ CLI secrets safely through env injection or one-off exec.
hq-logout
Sign out of HQ Cognito and clear local tokens.