relay-knowledge-cli

SKILL开发
开发 未标注权限 许可证不明确
安装这个技能

Use relay-knowledge local CLI as an agent knowledge backend for repository knowledge graphs and GraphRAG: repo query --kind hybrid/symbol/definition/references/callers/callees/imports/sbom; repo software --kind dependencies/sdks/files/topics/relationships/build/iac/design/all; feature flags/config gates; indexing, impact, setup, install/upgrade diagnostics. Use for 用户代码查询kind/查询类型, 图关系, 调用关系, 导入依赖, 软件依赖, SDK/API, 代码地图, definitions, references, usage, impact. For large cold repo indexing, do not treat CLI timeouts as failure: capture repo index task ids when returned, recover missing ids from repo status <alias>, let service drain active tasks, or run bounded repo index-worker attempts for queued/retrying tasks. Use repo update/index refresh results or status diagnostics instead of assuming task ids. Prefer graph CLI before grep/ripgrep/rg/plain text search unless unavailable, unindexable, inexpressible, or raw regex is required. Do not use for MCP setup/tools, ACP adapters, or protocol-level agent access.

一句话选型结论

按资料字段整理

relay-knowledge-cli是开发类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类开发 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_15292d5a/yjkj-relay-knowledge-cli
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

开发
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_15292d5a仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791737599
正文体量17.5 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写代码与改 bug

按需求补代码、定位并修掉报错。

读仓库与生成改动

让模型读懂项目结构,再给出可落地的改动。

跑测试与排查故障

按现象排查问题,补测试用例并复跑。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在开发场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
relay-knowledge-cli当前 未标注权限 未标注 未标注 未标注 有
技能审查员 浏览器控制 ClawHub 市场 877.9 万 OpenClaw 有
Vercel React 最佳实践 浏览器控制 GitHub 仓库 849.1 万 Codex、Claude、Cursor 有
GitHub 代码协作 联网访问 ClawHub 市场 763.3 万 OpenClaw 有
网页设计指南 联网访问 GitHub 仓库 668.6 万 Codex、Claude、Cursor 有
本体论 只读 ClawHub 市场 663.7 万 OpenClaw 有

SKILL.md 全文

17.5 KB
模型实际读到的说明书原文,来自技能仓库

Relay Knowledge CLI

Workflow

Use the compiled relay-knowledge binary as the control surface. Resolve the
executable before the first operation. Prefer JSON output for automation and
read command metadata before issuing unfamiliar commands.

Treat large cold repository indexing as a status-driven workflow, not a single
long foreground wait. repo index can return a code-index task id and can also
start a bounded foreground worker attempt before rendering its response. If the
command runner times out before JSON is captured, recover through
repo status &lt;alias&gt; --format json and inspect active_task, checkpoint counters, and
freshness before retrying. If a managed platform service is already draining
the code-index queue, poll status and do not start a competing worker. If no
managed service is draining work and status shows a running task after the
command runner killed a foreground attempt, inspect lease_expires_at_ms and
checkpoint timestamps and wait for lease recovery before retrying. When
repo status or the repo index response shows a queued or retrying code-index
task, run bounded single-shot repo index-worker --task-id &lt;task-id&gt; --format json attempts, then re-check status. Use repo update and
index refresh according to their foreground completion result and status
diagnostics; do not wait for task ids those commands do not expose, and do not
replace task leases with unmanaged loops.

Prefer the bundled assets binary for the current operating system, CPU, and
active command runner whenever it exists and version --format json succeeds.
Released skill packages include Linux x64 and Windows x64 binaries at
assets/linux-x86_64/relay-knowledge and
assets/windows-x86_64/relay-knowledge.exe. Use the published PATH install
only when the bundled asset is missing, not executable, fails its version check,
has no matching OS or CPU architecture, has no matching shell boundary, the
Linux host is older than the glibc 2.31 baseline, or the user explicitly asks
for the system-installed binary. Version comparisons are diagnostic only; do
not choose a newer PATH binary over a working bundled asset by default.

The command examples below use relay-knowledge as readable shorthand for the
resolved executable. When the bundled asset is selected, substitute that asset
path for relay-knowledge while keeping the same arguments.

Use the command form that matches the active shell. Do not run the Windows
bundled asset from POSIX shells. That includes bash, sh, zsh, fish, and WSL bash
unless the command intentionally crosses into a Windows shell boundary. On
POSIX, check only the POSIX asset first and fall back to PATH only when that
asset is unusable:

/absolute/path/to/relay-knowledge-cli/assets/linux-x86_64/relay-knowledge version --format json
command -v relay-knowledge
relay-knowledge version --format json

If the Linux asset fails before printing JSON with an error that mentions
GLIBC_, treat the bundled asset as incompatible with that host and use a
published install path built for the host instead of retrying the same asset.

$relayKnowledge = &quot;C:\absolute\path\to\relay-knowledge-cli\assets\windows-x86_64\relay-knowledge.exe&quot;
&amp; $relayKnowledge version --format json
Get-Command relay-knowledge
relay-knowledge version --format json
set &quot;RELAY_KNOWLEDGE=C:\absolute\path\to\relay-knowledge-cli\assets\windows-x86_64\relay-knowledge.exe&quot;
&quot;%RELAY_KNOWLEDGE%&quot; version --format json
where.exe relay-knowledge
relay-knowledge version --format json
relay-knowledge help --format json
relay-knowledge help repo query --format json

Do not use source-checkout build artifacts or source builds as an installation
path. This skill is intended to operate published installs only. If the binary
is missing, install it from a published channel first: prefer a verified GitHub
Release archive, or use cargo install relay-knowledge from crates.io when
Cargo is the selected published package channel.

Before downloading a binary from GitHub Releases or crates.io, tell the user to
configure a proxy when their network requires one. Prefer standard
HTTPS_PROXY, HTTP_PROXY, and NO_PROXY environment variables, and preserve
those settings for checksum verification and follow-up diagnostics.

Do not use this skill for MCP setup, and do not start or configure MCP from this
skill. If a task asks for MCP, Streamable HTTP, resources, prompts, sessions, or
protocol tools, use the project MCP documentation or a separate MCP skill
instead.

For repository knowledge navigation contracts, use
references/knowledge-map-workflows.md. Prefer relay-knowledge map commands
to create, read, update, delete, validate, and route the shared
.knowledge/knowledge-map.yaml contract. Do not hand-edit the YAML unless the CLI is
unavailable and the user explicitly asks for manual repair.

When the user asks for a test, smoke check, or reproduction that should not
touch existing runtime state, set an explicit temporary RELAY_KNOWLEDGE_HOME
and clean it up after the scenario. Prefer local deterministic retrieval
backends for isolated tests so smoke checks do not depend on external embedding
services.

POSIX shells:

export RELAY_KNOWLEDGE_HOME=&quot;$(mktemp -d /tmp/relay-knowledge-skill.XXXXXX)&quot;
export RELAY_KNOWLEDGE_SEMANTIC_BACKEND=local
export RELAY_KNOWLEDGE_VECTOR_BACKEND=local

PowerShell:

$env:RELAY_KNOWLEDGE_HOME = Join-Path $env:TEMP (&quot;relay-knowledge-skill-&quot; + [guid]::NewGuid())
New-Item -ItemType Directory -Path $env:RELAY_KNOWLEDGE_HOME | Out-Null
$env:RELAY_KNOWLEDGE_SEMANTIC_BACKEND = &quot;local&quot;
$env:RELAY_KNOWLEDGE_VECTOR_BACKEND = &quot;local&quot;

cmd.exe:

set &quot;RELAY_KNOWLEDGE_HOME=%TEMP%\relay-knowledge-skill-%RANDOM%-%RANDOM%&quot;
mkdir &quot;%RELAY_KNOWLEDGE_HOME%&quot;
set &quot;RELAY_KNOWLEDGE_SEMANTIC_BACKEND=local&quot;
set &quot;RELAY_KNOWLEDGE_VECTOR_BACKEND=local&quot;

If each command runs in a fresh shell or tool call, pass these environment
variables inline on every relay-knowledge invocation rather than relying on a
previous export to persist. Prefer the tool's environment map when it is
available. Otherwise choose one temporary absolute path for the scenario,
substitute it into every command, and include the shell-specific assignments in
the same command invocation.

POSIX per-command invocation:

mkdir -p /tmp/relay-knowledge-skill-example &amp;&amp; \
  RELAY_KNOWLEDGE_HOME=/tmp/relay-knowledge-skill-example \
  RELAY_KNOWLEDGE_SEMANTIC_BACKEND=local \
  RELAY_KNOWLEDGE_VECTOR_BACKEND=local \
  relay-knowledge status --format json

PowerShell per-command invocation:

$relayKnowledgeHome = Join-Path $env:TEMP &quot;relay-knowledge-skill-example&quot;; New-Item -ItemType Directory -Force -Path $relayKnowledgeHome | Out-Null; $env:RELAY_KNOWLEDGE_HOME = $relayKnowledgeHome; $env:RELAY_KNOWLEDGE_SEMANTIC_BACKEND = &quot;local&quot;; $env:RELAY_KNOWLEDGE_VECTOR_BACKEND = &quot;local&quot;; relay-knowledge status --format json

cmd.exe per-command invocation:

if not exist &quot;%TEMP%\relay-knowledge-skill-example&quot; mkdir &quot;%TEMP%\relay-knowledge-skill-example&quot; &amp;&amp; set &quot;RELAY_KNOWLEDGE_HOME=%TEMP%\relay-knowledge-skill-example&quot; &amp;&amp; set &quot;RELAY_KNOWLEDGE_SEMANTIC_BACKEND=local&quot; &amp;&amp; set &quot;RELAY_KNOWLEDGE_VECTOR_BACKEND=local&quot; &amp;&amp; relay-knowledge status --format json

Remove the temporary directory after capturing the test result.

Readiness

Check whether the resolved CLI works, then inspect runtime configuration and
live health:

relay-knowledge version
relay-knowledge setup doctor --format json
relay-knowledge health --format json
relay-knowledge service doctor --format json

On Windows, run the same diagnostics through the resolved executable.

Run live diagnostics with a command timeout when the host shell supports one,
and report timeout as a diagnostic finding instead of waiting indefinitely. On
Linux or hosts with GNU coreutils, timeout is acceptable:

timeout 20s relay-knowledge health --format json
timeout 20s relay-knowledge service doctor --format json
timeout 20s relay-knowledge audit query --limit 50 --format json

On default macOS shells where GNU timeout is not installed, use the command
runner's timeout setting if available. If only shell text is available, use a
short POSIX watchdog for each diagnostic:

relay-knowledge health --format json &amp;
relay_knowledge_pid=$!
( sleep 20; kill &quot;$relay_knowledge_pid&quot; 2&gt;/dev/null ) &amp;
relay_knowledge_watchdog=$!
wait &quot;$relay_knowledge_pid&quot;
relay_knowledge_status=$?
kill &quot;$relay_knowledge_watchdog&quot; 2&gt;/dev/null
exit &quot;$relay_knowledge_status&quot;

For online install or upgrades, prefer the official release path first and
Cargo second:

cargo install relay-knowledge
relay-knowledge version check --format json

version check only reports available stable versions. It must not replace the
binary automatically. Follow installer or package-manager policy for the actual
upgrade.

Code Repository Graph

For repository questions, make the index state explicit before querying. Use a
short alias and narrow scope when the user provides relevant paths or languages.
For code-structure, code-query-kind, or repository relationship prompts, use the
graph-backed CLI surfaces before raw text search:

  • repo query --kind ... for code graph retrieval tied to symbols, definitions,
    references, calls, imports, or SBOM dependency facts.
  • repo software --kind ... for repository-wide software graph projections:
    dependencies, SDK/API usage, files, topics, relationships, build, IaC, design,
    or all slices together.
  • repo feature-flags for configuration-driven feature flags and guarded-code
    relationships.

Treat kind values as command-local. Do not pass repo software kinds to
repo query, do not pass repo query kinds to repo software, and do not use
index refresh kinds (bm25, semantic, vector), worker kinds
(embedding, ocr, vision, extractor), or knowledge-map source kinds
(repo, file, doc, config, db, ci, runtime, wiki,
monitoring) as repository query kinds.

repo query --kind Code Retrieval

Choose the command-local query kind from the user's intent:

  • hybrid: natural-language discovery, broad concepts, or ambiguous code
    questions.
  • symbol: symbol, class, function, method, type, or constant name lookup.
  • definition: definitions, declarations, implementations, and API locations.
  • references: references, usages, and "where is this used" questions.
  • callers: incoming call edges and "who calls this" questions.
  • callees: outgoing call edges and "what does this call" questions.
  • imports: import, include, module, and dependency edges.
  • sbom: package-manager dependency inventory from indexed manifests and
    lockfiles.

Use references/cli-workflows.md for deeper recipes, but keep this selection
rule: if the user names a supported kind, use it directly. If the intent is
unclear, start with --kind hybrid, then narrow to symbol, definition,
references, callers, callees, imports, or sbom based on the returned
evidence. For call-chain questions, expand callers or callees step by step from
the known symbol and report when the CLI exposes only bounded one-hop call
edges.

relay-knowledge repo register /path/to/repo \
  --alias core \
  --path src \
  --format json

relay-knowledge repo scope preview core --ref HEAD --format json
relay-knowledge repo index core --ref HEAD --format json
relay-knowledge repo status core --format json

Use repo status after cold full indexing because initial indexing may return a
durable background task handle or may time out before the response is captured.
In non-interactive agent sessions where a long-running platform service is not
already draining the queue, run one or more explicit single-shot worker
attempts with the task id returned by repo index or shown by repo status:

relay-knowledge repo index-worker --task-id &lt;task-id&gt; --format json
relay-knowledge repo status core --format json

repo index-worker --format json always returns a parseable result. When no
eligible task is available it reports claimed=false and task=null.
--format streaming-json emits started, item, and completed events, with
the worker result in the item.payload. Each worker attempt still uses durable
leases, checkpoints, retry backoff, and the single-writer indexing boundary.
Query only an indexed ref:

relay-knowledge repo query core \
  --query retry_policy \
  --kind hybrid \
  --ref HEAD \
  --path src \
  --language rust \
  --freshness wait-until-fresh \
  --limit 10 \
  --format json

repo software --kind Software Graph

Use repo software when the user asks for graph relationships or a repository
overview beyond one symbol-level code query:

  • dependencies: package and manifest dependency facts.
  • sdks: SDK/API usage and unresolved external target metadata.
  • files: file roles and indexed source/document surfaces.
  • topics: documentation and source topics discovered from indexed evidence.
  • relationships: cross-domain relationships between files, topics, configs,
    dependencies, SDK/API usages, build targets, IaC resources, and design facts.
  • build: build target and build-manifest facts.
  • iac: infrastructure-as-code resource facts.
  • design: design documentation and design element facts.
  • all: all software graph slices for repository overviews or when the user
    asks for "everything" about the software graph.

For prompts like "show graph relationships", "what relates these modules",
"dependency paths", "software architecture map", or "代码图关系", prefer
--kind relationships first. Use --kind all when the user asks for a broad
inventory that should include relationship context and all supporting slices.

relay-knowledge repo software core \
  --kind relationships \
  --ref HEAD \
  --freshness wait-until-fresh \
  --limit 100 \
  --format json

Feature Flags and Impact

For feature flag, config gate, environment-variable gate, settings gate,
gray-release switch, or guarded-code prompts, use the separate
repo feature-flags command. Do not invent repo query --kind feature_flag;
feature flags are indexed graph facts, not a normal query kind.

relay-knowledge repo feature-flags core \
  --query checkout \
  --ref HEAD \
  --path src \
  --limit 20 \
  --format json

repo feature-flags reads feature flag facts and FTS documents from the indexed
scope. It must not recursively scan source at query time. After adding or
fixing feature flag extraction rules, run repo index or repo update before
expecting new facts in this command.

For diff-aware work, index the head snapshot first and then run:

relay-knowledge repo update core --base main --head HEAD --format json
relay-knowledge repo impact core --base main --head HEAD --limit 100 --format json
relay-knowledge repo report core --format markdown

Use grep, ripgrep, rg, or other plain text search only as a fallback after
the CLI is unavailable, the target scope cannot be indexed, the supported
query/software kinds cannot express the request, or the user explicitly needs
raw text or regex matching instead of graph semantics. Do not start with grep
or rg for code kind or graph relationship queries.

Knowledge Graph

For non-code evidence, ingest scoped text, refresh derived indexes when needed,
and query with freshness metadata:

relay-knowledge ingest --source docs \
  --content &quot;Rust async services isolate blocking SQLite work&quot; \
  --entity Rust \
  --format json

relay-knowledge query SQLite \
  --source docs \
  --freshness wait-until-fresh \
  --limit 10 \
  --format json

relay-knowledge index refresh --kind bm25 --format json
relay-knowledge graph inspect --format json

Troubleshooting

If a command fails, prefer its JSON error when present; otherwise read the
stderr or text error exactly and avoid guessing hidden state. Run diagnostics
in this order:

relay-knowledge status --format json
relay-knowledge setup doctor --format json
relay-knowledge health --format json
relay-knowledge service doctor --format json
relay-knowledge audit query --limit 50 --format json

For empty code results, verify repo status, the queried ref, path/language
filters, and --kind. Use --kind hybrid before narrowing. For stale graph
results, use --freshness wait-until-fresh or run index refresh explicitly.

For deeper command recipes, read references/cli-workflows.md.

常见问题

5 问
答案由本站依据条目字段整理
relay-knowledge-cli怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_15292d5a/yjkj-relay-knowledge-cli。安装方式为未标注。装完刷新技能列表或重开客户端。

relay-knowledge-cli支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

relay-knowledge-cli权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

relay-knowledge-cli收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

relay-knowledge-cli用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。