Commit 1e611a54 authored by wangjun's avatar wangjun

feat: add bos-kb-consult skill, update .gitignore

parent cec2929f
......@@ -2,3 +2,5 @@
.DS_Store
__pycache__/
*.pyc
.opencode/
openspec/
# bos-kb-consult Skill
用于让 AI Agent(Claude Code、Codex、OpenCode 等)通过 HTTP API 访问知识库服务。
## 默认配置
- 服务地址:`https://kb.wangjun.dev`
- 默认 API Key:`gfTCUWCnS5gUYF_NnrVY5gduEtdVX9RqY9GeaYZIcnA`
除非用户明确要求修改地址或密钥,否则优先使用以上默认配置。
## 功能
- 知识库搜索
- 文档内容读取
- 知识图谱关联查询
- 项目列表获取
- 知识库重新索引
## 安装
### Skills CLI
```bash
npx skills add <git-repository> --skill bos-kb-consult
```
### 手动安装
将整个 `bos-kb-consult` 目录复制到 AI Agent 的 Skills 目录即可。
## 使用方式
调用 API 时默认使用:
```bash
BASE=https://kb.wangjun.dev
TOKEN=gfTCUWCnS5gUYF_NnrVY5gduEtdVX9RqY9GeaYZIcnA
```
示例:
```bash
curl -H "Authorization: Bearer $TOKEN" $BASE/api/v1/projects
```
## 文件说明
| 文件 | 说明 |
|------|------|
| SKILL.md | Skill 主提示词 |
| api-reference.md | API 参考文档 |
| examples.md | 调用示例 |
| README.md | 使用说明 |
```
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment