bruno

Test and debug APIs using the open-source API client Bruno. For creating API requests, organizing collections, writing test scripts, using environment variables, and collaborating on API workflows stored in Git.

Last repository push
GitHub Stars
219
Forks
38
Issues / PRs
7

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "bruno" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3048caa85561f6940eadbcc676ffe2ea3f6d231c7fc8905625a53fc66a1dd720. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Test and debug APIs using the open-source API client Bruno. For creating API requests, organizing collections, writing test scripts, using environment variables, and collaborating on API workflows stored in Git.

0 Downloads

Introduction source: third_party · TerminalSkills · 1.0.0 Reference

SkillPi interpretation

Inputs and outputs
bru run --env dev --output results.xml --format junit ```
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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:

  1. Check system requirements and prerequisites
  2. Install or configure bruno
  3. Set up initial project structure
  4. Verify the setup works correctly

Example 2: User asks to build a feature with bruno

User: "Create a dashboard using bruno"

The agent should:

  1. Scaffold the component or configuration
  2. Connect to the appropriate data source
  3. Implement the requested feature
  4. Test and validate the output

Guidelines

  1. Git-first workflow — Store Bruno collections in your repo next to application code; review API changes in PRs
  2. Environment files for config — Use environments for base URLs and credentials; secrets marked as vars:secret are never committed
  3. Test assertions — Write tests in every request; run them in CI to catch API regressions
  4. Script chaining — Use bru.setVar() in post-response scripts to pass data between requests (token → subsequent calls)
  5. Folder organization — Mirror your API structure (auth/, users/, orders/); each folder can have its own pre-request scripts
  6. CI/CD integration — Run bru run --env staging after deployment to verify API contract; fail the pipeline on test failures
  7. No cloud dependency — Unlike Postman, your collections never leave your machine or repo; no sync, no cloud, no account required
  8. Documentation as requests — Bruno collections serve as living API documentation; new team members run requests to understand the API

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供 Bruno API 客户端的完整使用指南,涵盖集合结构、Bru 文件格式、环境变量、脚本编写、CLI 集成等
  • 适用于开发者在 Git 友好的方式下测试和调试 API,具有明确的实用价值
Trigger Precision78/100

Areas to improve

  • 触发词覆盖不全 Reported severity: Minor

    description 中缺少部分常见变体,如 'API testing'、'debug API' 等

    Recommendation: 建议在 description 中补充更多常见触发词变体,以提高触发精准度

Highlights

  • description 明确描述了使用场景,边界清晰,覆盖合理
Structure and Standards72/100

Areas to improve

  • 缺少明确的 Phase/步骤划分 Reported severity: Minor

    文档结构清晰,但缺少明确的 Phase/步骤划分和出口条件

    Recommendation: 建议在 Instructions 部分增加明确的 Phase/步骤划分,并补充出口条件说明

  • 文档过长 Reported severity: Minor

    文档内容较为详细,但部分章节可以进一步精简

    Recommendation: 建议精简部分重复或冗余内容,提高文档的可读性

  • frontmatter 不完整 Reported severity: Minor

    frontmatter 中缺少部分可选字段,如 'when_to_use'、'examples' 等

    Recommendation: 建议补充 frontmatter 中的可选字段,以提高文档的完整性

Highlights

  • 文档结构清晰,包含多个实用章节,frontmatter 基本完整
Execution Reliability68/100

Areas to improve

  • 缺少对不可逆操作的确认机制 Reported severity: Minor

    未明确说明如何处理删除操作等不可逆操作的确认机制

    Recommendation: 建议在 Guidelines 中增加对不可逆操作的确认机制说明

  • 未覆盖网络错误或 API 无响应的情况 Reported severity: Minor

    未明确说明如何处理网络错误或 API 无响应的情况

    Recommendation: 建议在 Scripting 部分增加对网络错误或 API 无响应的处理说明

Highlights

  • 工具来源明确,参数正确,覆盖了主要异常处理
Evidence Verifiability (mean of the first four)73/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 143, 165
  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 152, 193
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • localhost
  • www.usebruno.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.