用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/formation-res/querylight-cli --skill qli-bunx-uv命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | qli-bunx-uv |
| description | Use Querylight CLI from Bun and Python automation without installing a global qli binary. |
Use this skill when you need to run qli from Bun and call it from Python automation.
qli installed globally.bunx.qli and parse --json output.bun is installed and bunx is available.uv is installed for Python environment and script execution.qli to manage, unless you pass --workspace.Use bunx --bun @tryformation/querylight-cli when the qli binary is not already available on PATH.
Use this form for concurrent queries as well.
Examples:
bunx --bun @tryformation/querylight-cli --help
bunx --bun @tryformation/querylight-cli init
bunx --bun @tryformation/querylight-cli source add directory ./docs --name "Local Docs" --tag docs
bunx --bun @tryformation/querylight-cli rebuild
bunx --bun @tryformation/querylight-cli search "api authentication"
Use --json for scripts, agents, and Python callers:
bunx --bun @tryformation/querylight-cli search "api authentication" --top-k 8 --json
bunx --bun @tryformation/querylight-cli context "How do API keys work?" --top-k 8 --json
Create a Python virtual environment:
uv venv
Run an inline Python script:
uv run python - <<'PY'
import json
import subprocess
cmd = [
"bunx",
"--bun",
"@tryformation/querylight-cli",
"search",
"api authentication",
"--top-k",
"5",
"--json",
]
result = subprocess.run(cmd, check=True, capture_output=True, text=True)
payload = json.loads(result.stdout)
print(json.dumps(payload, indent=2))
PY
Run qli against an explicit workspace from Python:
uv run python - <<'PY'
import json
import subprocess
workspace = "/absolute/path/to/project/.kb"
cmd = [
"bunx",
"--bun",
"@tryformation/querylight-cli",
"--workspace",
workspace,
"context",
"Summarize the authentication flow",
"--top-k",
"8",
"--json",
]
result = subprocess.run(cmd, check=True, capture_output=True, text=True)
payload = json.loads(result.stdout)
print(payload["ok"])
PY
search, related, or context with --json from Python automation.Example:
bunx --bun @tryformation/querylight-cli init
bunx --bun @tryformation/querylight-cli source add directory ./docs --name "Local Docs" --tag docs
bunx --bun @tryformation/querylight-cli rebuild
uv run python - <<'PY'
import json
import subprocess
cmd = [
"bunx",
"--bun",
"@tryformation/querylight-cli",
"context",
"How do API keys work?",
"--top-k",
"8",
"--json",
]
result = subprocess.run(cmd, check=True, capture_output=True, text=True)
payload = json.loads(result.stdout)
print(json.dumps(payload, indent=2))
PY
qli defaults to the .kb workspace in the current directory.bunx --bun over plain bunx when several qli commands may start at the same time.--workspace when the Python process runs outside the knowledge base root.search, related, and context are the common commands for agent and script integration.rebuild before querying if the workspace has not been indexed yet.