Index of every page on this site: llms.txt
All skills
jd-solanki avatar

/bruno

@372cfb1
by JD Solankijd-solanki/ai6 stars
2
Run it yourself

Create and manage Bruno API collections in the Bru Lang (.bru) format - adding a request, creating an environment, writing pre/post scripts, or scaffolding a collection. Triggers: 'add Bruno request', 'Bruno collection', 'write a .bru', 'Bru Lang'.

Use this Skill: https://skilld.dev/gh/jd-solanki/ai/bruno

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈64 tokens for metadata: the name and description. ≈1.2k when used: this file. ≈1.9k more on demand in 3 files.

Description uses 3.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈256 characters, or 3.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Bruno

Quick start — fetch docs first

Use WebFetch directly (context7 does not index Bruno docs).

This project uses the Bru Lang (.bru) format, NOT OpenCollection YAML. The Bruno desktop app and VS Code extension fully support .bru and validate a collection by the presence of a bruno.json at its root; OpenCollection's opencollection.yml alone is not reliably recognised (see usebruno/bruno#7379).

Topic URL
Bru Lang overview https://docs.usebruno.com/bru-lang/overview
Tag reference (request blocks) https://docs.usebruno.com/bru-lang/tag-reference
Language design https://docs.usebruno.com/bru-lang/language
Samples https://docs.usebruno.com/bru-lang/samples
Variables https://docs.usebruno.com/variables/overview
Auth https://docs.usebruno.com/auth/overview
Secrets / .env https://docs.usebruno.com/secrets-management/dotenv-file
Full doc index https://docs.usebruno.com/llms.txt

Read existing requests before writing new ones: find api -name "*.bru" | head -10

Project layout

Group requests by resource under an api/ directory whose tree mirrors the API's URL path, so a URL maps predictably to a file. Name each request <verb>-<noun>.bru.

POST /api/webhook/orders → bruno/api/webhook/create-order.bru

bruno/
├── bruno.json                       # Collection config (JSON) — the file the app validates
├── collection.bru                   # Collection-level settings (headers/auth/scripts/vars)
├── .env.example                     # var names only, no values (.env is gitignored)
├── environments/
│   └── <env>.bru
└── api/                             # mirrors the URL path under /api
    └── <resource>/
        ├── create-<noun>.bru
        ├── get-<noun>.bru
        └── delete-<noun>.bru

bruno.json:

{
  "version": "1",
  "name": "<collection-name>",
  "type": "collection",
  "ignore": ["node_modules", ".git", ".env"]
}

collection.bru (collection-level settings; keep minimal unless there are shared headers/auth/scripts):

meta {
  type: collection
}

Request templates

GET with path param (see AUTH.md for auth options):

meta {
  name: Get Deal by ID
  type: http
  seq: 1
}

get {
  url: {{baseUrl}}/crm/v3/objects/deals/:dealId
  auth: bearer
}

params:path {
  dealId: 60074085675
}

auth:bearer {
  token: {{hubspotToken}}
}

POST with JSON body + API key + assertions:

meta {
  name: Create Order
  type: http
  seq: 1
}

post {
  url: {{baseUrl}}/api/webhook/orders
  body: json
  auth: apikey
}

headers {
  Content-Type: application/json
}

auth:apikey {
  key: x-api-key
  value: {{apiKey}}
  placement: header
}

body:json {
  {
    "orderNumber": "W60523"
  }
}

assert {
  $res.status: 200
  $res.body.orderNumber: W60523
}

→ GraphQL requests: see GRAPHQL.md → All auth types: see AUTH.md → Variable types & when to use: see VARIABLES.md

Body types

The method block declares body: <type>, and the body lives in its own body:<type> { ... } block.

Use case method body: Block
JSON payload json body:json { <raw json> }
URL-encoded form form-urlencoded body:form-urlencoded { key: value }
Multipart / file multipart-form body:multipart-form { key: value } / file: @file(path/to/f) @contentType(type)
Plain text text body:text { ... }
XML xml body:xml { ... }

Assertions & tests

Prefer the declarative assert {} block for status/body checks — no operator means equals:

assert {
  $res.status: 200
  $res.body.ingested: true
  ~$res.body.note: skipped        # a leading ~ disables an assertion
}

For JavaScript assertions, use a tests {} block:

tests {
  function onResponse(request, response) {
    expect(response.status).to.equal(200);
  }
}

Key rules

  • No enabled: field — a leading ~ DISABLES a line (header, param, var, assert). Everything else is enabled.
  • Auth is per-request: name the mode in the method block (auth: bearer) and add the matching auth:<type> {} block. For API keys use auth:apikey { key / value / placement }, or just put the key in headers {}.
  • Environments are .bru files under environments/. Bruno reads them when the collection is OPENED; it does NOT hot-detect files written to disk while it is open — re-open the collection (or create the env via the UI) to pick up a new one.
  • Cross-request values: vars:post-response { TOKEN: $res.body.token } sets a session-wide runtime var for later requests. Do NOT put it in the environment.
  • File names: <verb>-<noun>.bru in kebab-case; seq = next number in the folder.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill provides instructions and templates for managing API collections using the Bruno API client in the .bru format. It emphasizes secure secret management by utilizing .env files and environment variable mapping, and it refers to official documentation for tool usage. No security risks were identified.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 372cfb1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 2 months ago

README badge

README badge for jd-solanki/ai/bruno