bruno
БесплатноБез исполняемых скриптовНе проверенTests and debugs APIs with Bruno, the open-source API client that keeps collections as plain files in a Git repository. Use when a user asks to create API…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Bruno — Git-Friendly API Client
Overview
Bruno is an open-source API client that stores collections as plain text files in a folder, so they live in the Git repository next to the code: versioned, reviewable in pull requests, with no account and no cloud sync (unlike Postman). The desktop app edits the files; the bru CLI runs them in a terminal or in CI.
A collection uses one of two file formats, never both:
- OpenCollection YAML (
.yml, root fileopencollection.yml) — the default for new and imported collections since Bruno 3.1. - Bru (
.bru, root filebruno.json) — the original format, still supported. The desktop app converts a Bru collection with Migrate to YML (Bruno 4.1 and later).
Instructions
Installation
npm install -g @usebruno/cli # CLI, Node.js 20+
bru --version # 4.2.0
brew install bruno # desktop app, macOS
winget install Bruno.Bruno # desktop app, Windows
flatpak install flathub com.usebruno.Bruno # desktop app, Linux
Other installers are on https://www.usebruno.com/downloads. The CLI is also published as the Docker image usebruno/cli (mount the collection at /bruno).
Collection Structure
orders-api/
├── opencollection.yml # Collection root (Bru format: bruno.json + collection.bru)
├── .env # Local secrets, listed in .gitignore
├── environments/ # local.yml, staging.yml
├── auth/
│ ├── folder.yml # Folder settings (Bru format: folder.bru)
│ └── login.yml
├── users/ # list-users.yml
└── orders/ # create-order.yml
The root file opencollection.yml needs only opencollection: 1.0.0 and an info: block with the collection name.
Request File (YAML)
# auth/login.yml
info:
name: Login
type: http
seq: 1
tags:
- smoke
http:
method: POST
url: "{{baseUrl}}/api/auth/login"
body:
type: json
data: |-
{
"email": "{{smokeEmail}}",
"password": "{{smokePassword}}"
}
auth: inherit
runtime:
scripts:
- type: after-response
code: |-
if (res.status === 200) {
bru.setVar("authToken", res.body.token); // runtime variable for later requests
}
- type: tests
code: |-
test("login returns a token", () => {
expect(res.status).to.equal(200);
expect(res.body.token).to.be.a("string");
expect(res.body.user.email).to.equal(bru.getEnvVar("smokeEmail"));
});
Script types are before-request, after-response and tests. Tests use Chai's expect. {{variable}} is replaced in the URL, headers and body but not inside scripts: read values there with bru.getEnvVar() or bru.getVar().
Bru File Format
The same request in an older .bru collection. Bru has no comment syntax: a # line at the top of a file is a parse error and the CLI skips the file.
meta {
name: Login
type: http
seq: 1
}
post {
url: {{baseUrl}}/api/auth/login
body: json
auth: none
}
body:json {
{
"email": "{{smokeEmail}}",
"password": "{{smokePassword}}"
}
}
script:post-response {
if (res.status === 200) {
bru.setVar("authToken", res.body.token);
}
}
tests {
test("login returns a token", () => {
expect(res.status).to.equal(200);
expect(res.body.user.email).to.equal(bru.getEnvVar("smokeEmail"));
});
}
Environments
One file per environment in environments/. A value written as {{process.env.NAME}} comes from the shell or from a .env file at the collection root. A variable marked secret keeps its value outside the file (the desktop app stores it encrypted on the machine), so the CLI must receive it with --env-var.
# environments/local.yml
name: local
variables:
- name: baseUrl
value: http://localhost:3000
- name: smokeEmail
value: [email protected]
- name: smokePassword
value: "{{process.env.SMOKE_USER_PASSWORD}}"
- name: apiSecret
secret: true
In a Bru collection the same file is environments/local.bru: a vars { … } block with one baseUrl: http://localhost:3000 pair per line (a block written on a single line is a parse error) and a vars:secret [ apiSecret ] list for secret names.
Scripting
# orders/create-order.yml — sign the request before it is sent
info:
name: Create order
type: http
seq: 1
http:
method: POST
url: "{{baseUrl}}/api/orders"
headers:
- name: X-Timestamp
value: "{{timestamp}}"
- name: X-Signature
value: "{{signature}}"
runtime:
scripts:
- type: before-request
code: |-
const CryptoJS = require("crypto-js");
const timestamp = Date.now().toString();
const signature = CryptoJS.HmacSHA256(timestamp, bru.getEnvVar("apiSecret")).toString();
bru.setVar("timestamp", timestamp);
bru.
Установить bruno в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл bruno?
Tests and debugs APIs with Bruno, the open-source API client that keeps collections as plain files in a Git repository. Use when a user asks to create API requests, organize collections, write test scripts, use environments and variables, run a collection from the terminal or CI with the bru CLI, or collaborate on API workflows stored in Git.
Как установить скилл bruno?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bruno запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic