---
name: "bruno-git-friendly-api-docs"
description: "Manage version-controlled, collaborative API request collections with Bruno Bru files."
metadata:
  author: "UseBruno"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "create bruno api collection"
  - "write .bru request file"
  - "run bruno collection cli"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Bruno Git-Friendly API Collection Spec

Authors Bruno .bru plain-text request specifications: declarative HTTP verbs, headers, body schemas, authentication, and test assertions stored directly inside Git repositories.

## When to Invoke
Invoke this skill whenever you need to:
- create bruno api collection
- write .bru request file
- run bruno collection cli

## Execution SOP & Rules
1. Organize requests into folder trees containing intuitive request.bru files.
2. Define request parameters cleanly with meta, get, headers, body:json, and tests blocks.
3. Commit .bru files directly into the project repository alongside source code.
4. Run automated collection test runs using bru run --env Production in CI.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
