bruno
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "bruno":https://skillpi.com/zh/skills/deepskill-3048caa85561f6940eadbcc676ffe2ea3f6d231c7fc8905625a53fc66a1dd720。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
使用开源 API 客户端 Bruno 测试和调试 API。用于创建 API 请求、组织集合、编写测试脚本、使用环境变量,以及协作处理存储在 Git 中的 API 工作流。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: bruno
description: >-
Test and debug APIs with Bruno, the open-source API client. Use when a user asks to create API requests, organize collections, write test scripts, use environments and variables, or collaborate on API workflows stored in Git.
license: Apache-2.0
compatibility: "No special requirements"
metadata:
author: terminal-skills
version: "1.0.0"
category: development
tags: ["api-client", "http", "testing", "git-friendly", "open-source"]Bruno — Git-Friendly API Client
Overview
You are an expert in Bruno, the open-source API client that stores collections as plain text files in your Git repository. Unlike Postman (cloud-synced, proprietary format), Bruno uses a human-readable format (Bru) that lives alongside your code — versioned, reviewable, and shareable via Git.
Instructions
Collection Structure
api-collection/
├── bruno.json # Collection config
├── environments/
│ ├── dev.bru
│ ├── staging.bru
│ └── production.bru
├── auth/
│ ├── login.bru
│ ├── register.bru
│ └── refresh-token.bru
├── users/
│ ├── list-users.bru
│ ├── get-user.bru
│ ├── create-user.bru
│ └── update-user.bru
└── orders/
├── list-orders.bru
├── create-order.bru
└── process-refund.bru
Bru File Format
# auth/login.bru — Human-readable, Git-diffable
meta {
name: Login
type: http
seq: 1
}
post {
url: {{baseUrl}}/api/auth/login
body: json
auth: none
}
headers {
Content-Type: application/json
}
body:json {
{
"email": "{{testEmail}}",
"password": "{{testPassword}}"
}
}
script:post-response {
// Save token for subsequent requests
if (res.status === 200) {
bru.setVar("authToken", res.body.token);
bru.setVar("userId", res.body.user.id);
}
}
tests {
test("should return 200", () => {
expect(res.status).to.equal(200);
});
test("should return token", () => {
expect(res.body.token).to.be.a("string");
expect(res.body.token.length).to.be.greaterThan(0);
});
test("should return user", () => {
expect(res.body.user.email).to.equal("{{testEmail}}");
});
}
Environments
# environments/dev.bru
vars {
baseUrl: http://localhost:3000
testEmail: test@example.com
testPassword: testpass123
}
vars:secret [
stripeKey,
dbPassword
]
Scripting
// Pre-request script — runs before sending
const crypto = require("crypto");
const timestamp = Date.now().toString();
const signature = crypto
.createHmac("sha256", bru.getVar("apiSecret"))
.update(timestamp)
.digest("hex");
bru.setVar("timestamp", timestamp);
bru.setVar("signature", signature);
// Post-response script — process responses
if (res.status === 200) {
const users = res.body.data;
bru.setVar("firstUserId", users[0].id);
console.log(`Found ${users.length} users`);
}
// Chain requests — use variables from previous responses
// login.bru sets {{authToken}}
// create-order.bru uses {{authToken}} in auth header
CLI for CI/CD
# Install CLI
npm install -g @usebruno/cli
# Run entire collection
bru run --env dev
# Run specific folder
bru run auth/ --env dev
# Run with custom environment variables
bru run --env production --env-var apiKey=sk_live_xxx
# Output JUnit XML for CI
bru run --env dev --output results.xml --format junit
Installation
# Desktop app (GUI)
# Download from https://www.usebruno.com/downloads
# CLI
npm install -g @usebruno/cli
Examples
Example 1: User asks to set up bruno
User: "Help me set up bruno for my project"
The agent should:
- Check system requirements and prerequisites
- Install or configure bruno
- Set up initial project structure
- Verify the setup works correctly
Example 2: User asks to build a feature with bruno
User: "Create a dashboard using bruno"
The agent should:
- Scaffold the component or configuration
- Connect to the appropriate data source
- Implement the requested feature
- Test and validate the output
Guidelines
- Git-first workflow — Store Bruno collections in your repo next to application code; review API changes in PRs
- Environment files for config — Use environments for base URLs and credentials; secrets marked as
vars:secretare never committed - Test assertions — Write tests in every request; run them in CI to catch API regressions
- Script chaining — Use
bru.setVar()in post-response scripts to pass data between requests (token → subsequent calls) - Folder organization — Mirror your API structure (auth/, users/, orders/); each folder can have its own pre-request scripts
- CI/CD integration — Run
bru run --env stagingafter deployment to verify API contract; fail the pipeline on test failures - No cloud dependency — Unlike Postman, your collections never leave your machine or repo; no sync, no cloud, no account required
- Documentation as requests — Bruno collections serve as living API documentation; new team members run requests to understand the API
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Bruno API 客户端的完整使用指南,涵盖集合结构、Bru 文件格式、环境变量、脚本编写、CLI 集成等
- 适用于开发者在 Git 友好的方式下测试和调试 API,具有明确的实用价值
待提升项
-
触发词覆盖不全 原报告严重程度:轻微
description 中缺少部分常见变体,如 'API testing'、'debug API' 等
改进建议:建议在 description 中补充更多常见触发词变体,以提高触发精准度
亮点
- description 明确描述了使用场景,边界清晰,覆盖合理
待提升项
-
缺少明确的 Phase/步骤划分 原报告严重程度:轻微
文档结构清晰,但缺少明确的 Phase/步骤划分和出口条件
改进建议:建议在 Instructions 部分增加明确的 Phase/步骤划分,并补充出口条件说明
-
文档过长 原报告严重程度:轻微
文档内容较为详细,但部分章节可以进一步精简
改进建议:建议精简部分重复或冗余内容,提高文档的可读性
-
frontmatter 不完整 原报告严重程度:轻微
frontmatter 中缺少部分可选字段,如 'when_to_use'、'examples' 等
改进建议:建议补充 frontmatter 中的可选字段,以提高文档的完整性
亮点
- 文档结构清晰,包含多个实用章节,frontmatter 基本完整
待提升项
-
缺少对不可逆操作的确认机制 原报告严重程度:轻微
未明确说明如何处理删除操作等不可逆操作的确认机制
改进建议:建议在 Guidelines 中增加对不可逆操作的确认机制说明
-
未覆盖网络错误或 API 无响应的情况 原报告严重程度:轻微
未明确说明如何处理网络错误或 API 无响应的情况
改进建议:建议在 Scripting 部分增加对网络错误或 API 无响应的处理说明
亮点
- 工具来源明确,参数正确,覆盖了主要异常处理
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 143, 165 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 152, 193 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- localhost
- www.usebruno.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。