‹ 首页

pin-query

@toongri · 收录于 昨天 · 上游提交 昨天

Use when looking up pins by type, tags, or source. Drives lib/pins/query.ts to retrieve matching pin entries from the knowledge graph. Supersedes the legacy manual ls+frontmatter procedure.

适合你,如果经常需要从知识图谱中查找特定 pin 条目

/ 通过 npx 安装 校验哈希
npx oh-my-skill add toongri/oh-my-toong-playground/pin-query
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- toongri/oh-my-toong-playground/pin-query
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify toongri/oh-my-toong-playground/pin-query
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
25GitHub stars
~322最小装载
~322含声明引用
~792文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 731a80a · 表述以原文为准
它做什么

装上后,Claude可以按类型、标签或来源从知识图谱中查找pin,并返回匹配的slug、来源链接和一句话摘要。

什么时候触发

当你要求查找pin(如按类型、标签或来源)时触发。

装好后可以这样说
会返回所有bookmark类型的pin。
返回同时有这两个标签的pin。
技能原文 SKILL.md作者撰写 · MIT · 731a80a

pin-query

Retrieve pins from the knowledge graph by calling query(pinsDir, criteria) from lib/pins/query.ts.

Retrieval model

query calls buildIndex() on every invocation, scanning pinsDir in-memory. There is no index.json cache; every call performs a full directory scan and produces results directly.

The full entity set is always covered, including pins with no outgoing relations. Orphan pins remain findable by type, tags, or source — relation traversal is not required.

Invocation

Run the bundled script from the deployed skill directory:

bun "${CLAUDE_SKILL_DIR}/scripts/query.ts" [--type <type>] [--tags <tag1,tag2>] [--source <source>]

--tags accepts a comma-separated list; all tags must match (AND semantics). Omit any flag to leave that field unrestricted. The script resolves the manifest automatically — if no manifest exists it prints the absent message and exits 0.

Presenting results

Return matched slugs (id), source_url from the frontmatter, and a one-line summary to the caller. Report "no match" on an empty result set. Do not re-traverse the graph; the returned Frontmatter already carries relations if the caller needs to follow links.

按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。