一键导入
knw
Save and recall useful facts. Use when information should be remembered for later or relevant saved knowledge may help answer a request.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Save and recall useful facts. Use when information should be remembered for later or relevant saved knowledge may help answer a request.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | knw |
| description | Save and recall useful facts. Use when information should be remembered for later or relevant saved knowledge may help answer a request. |
Use the bundled Python CLI to access the knw facts retrieval service. The service matches saved facts against a search query, so both facts and queries should carry enough context to stand on their own.
Store atomic, self-contained facts. Each fact should express one useful idea and remain understandable without the surrounding conversation.
Prefer "The knw service is deployed in the eu-west-1 region." over "It is in eu-west-1."
Use search before answering when saved knowledge may be relevant. Include the relevant context from the user's request in the query so it can align well with self-contained facts. Do not search with vague fragments when the subject is known.
Prefer "Which region hosts the knw service?" over "Which region?"
Create .env beside this SKILL.md from .env.example and set the service endpoint and API key. Do not print or expose the API key.
Invoke the script relative to this skill directory:
uv run scripts/knw.py health
uv run scripts/knw.py store "The knw service is deployed in the eu-west-1 region."
uv run scripts/knw.py search "Which region hosts the knw service?" --limit 5
uv run scripts/knw.py delete "550e8400-e29b-41d4-a716-446655440000"
Use store with multiple arguments to save several facts in one request. Read JSON from stdout. When a command fails, read the structured JSON error from stderr and report the failure without exposing credentials.