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.

AUTH.md

≈636 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Bruno Auth Reference

How secrets flow: .env → environment → request

Step 1 — .env (gitignored, never committed) at the collection root:

HUBSPOT_TOKEN=pat-xxx-yyy
DDI_WEBHOOK_TOKEN=s3cr3t

Step 2 — environments/<env>.bru — map process env to Bruno variables:

vars {
  baseUrl: https://api.example.com
  apiToken: {{process.env.HUBSPOT_TOKEN}}
  ddiWebhookToken: {{process.env.DDI_WEBHOOK_TOKEN}}
}

The values are {{process.env.*}} references, so the file holds no secret — the real value stays in .env. A leading ~ disables a variable.

Step 3 — individual request — reference the variable:

auth:bearer {
  token: {{apiToken}}
}

Auth types

Name the mode in the method block (auth: bearer), then add the matching block.

Bearer Token

auth:bearer {
  token: {{apiToken}}
}

API Key (header or query)

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

placement: header or query. If your Bruno version lacks auth:apikey, put the key straight into headers { x-api-key: {{apiKey}} } — the server only ever sees a header either way.

Basic Auth

auth:basic {
  username: {{clientId}}
  password: {{clientSecret}}
}

Important: with basic auth + a JSON body Bruno does not auto-inject Content-Type. Add it explicitly in headers { Content-Type: application/json }.

Inherit (from collection or folder)

Set the method block's auth: inherit — inherits collection.bru's auth.

No auth

Set the method block's auth: none and omit the auth block.

OAuth 2.0, AWS SigV4, Digest, WSSE, NTLM

Supported as auth:oauth2, auth:awsv4, auth:digest, auth:wsse, auth:ntlm blocks. Fetch https://docs.usebruno.com/auth/overview for current keys, or configure once via the Bruno UI and read back the generated .bru.


Getting a token and sharing it across requests

Capture a value into a session-wide runtime variable with vars:post-response:

vars:post-response {
  ACCESS_TOKEN: $res.body.access_token
}

Then reference {{ACCESS_TOKEN}} in any later request:

auth:bearer {
  token: {{ACCESS_TOKEN}}
}

Do NOT add ACCESS_TOKEN to environments/<env>.bru. If it references {{process.env.*}} there, the runtime capture cannot override it and the token will never update.

For scripted capture instead of the declarative block, use a post-response script: script:post-response { bru.setVar("ACCESS_TOKEN", res.body.access_token); }

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