create-bruno-collection
Skill0 starsChanged 58 days agoMITView on GitHub
Create or extend a Bruno API collection across protocols: HTTP/REST (JSON, multipart, XML, SSE), GraphQL, gRPC (proto imports, streaming), WebSocket, and SOAP-as-HTTP. Includes bruno.json, Bruno 2.x environment files, JWT chaining via bru.setEnvVar, and per-request docs for success and errors. Scans routes, OpenAPI, GraphQL schema, or proto. Use when asked for Bruno collections, .bru files, gRPC/GraphQL/WebSocket examples, API environments, auth flow in Bruno, or runnable documented API examples for a service.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/comments.mdcCursor rule
- .cursor/rules/commit-messages.mdcCursor rule
- .cursor/rules/git-workflow.mdcCursor rule
- .cursor/rules/manage-stack.mdcCursor rule
- .cursor/rules/no-worktrees.mdcCursor rule
- manage-stackSkill
- convert-as-skillSkill
- create-agentSkill
- create-agents-mdSkill
- create-commandSkill
- create-hookSkill
- create-ruleSkill
- create-skillSkill
- super-architectureSkill
- super-cachingSkill
- super-nodejsSkill
- super-protobufSkill
- super-tech-blueprintSkill
- atomic-semantic-commitSkill
- create-jira-storySkill
- glab-code-reviewSkill
- write-mr-descriptionSkill
- output-saversSkill
- polyglot-copywriterSkill
- super-designSkill
- super-elixirSkill
- super-noslopSkill
- super-refactorSkill
- super-tddSkill
- super-verifySkill
- one-next-actionSkill
- parking-lotSkill
- super-challenge-meSkill
- super-codebase-learnerSkill
- writing-plansSkill
- find-skillsSkill
- handoffSkill
- standupSkill
The file
Files
Create Bruno collection
Bruno stores collections as plain-text .bru files. Deliver a runnable, documented collection: environments, chained auth, and inline API docs — for every protocol the service exposes.
Shared references: collection-layout.md, environments-and-auth.md, request-documentation.md, scripts-and-env-by-protocol.md, bruno-documentation.md.
Step 0: pick protocol first
| If the surface is… | meta.type | Load |
| REST, OpenAPI, webhooks, file upload, SSE | http | protocols/rest-http.md |
| GraphQL gateway or schema | graphql | protocols/graphql.md |
| gRPC / protobuf services | grpc | protocols/grpc.md |
| WebSocket APIs | ws | protocols/websocket.md |
| SOAP or WSDL | http + XML | protocols/soap-and-sse.md |
Mixed services: one collection, shared environments/, HTTP auth/login when tokens are JWT, then protocol-specific folders (see collection-layout.md). Index: protocols/README.md.
Prerequisites
- HTTP — route definitions or OpenAPI.
- GraphQL — schema, exported operations, or gateway config.
- gRPC —
.protofiles and/or reflection; optional buf layout. - WebSocket — URL, message contract, auth headers.
- Optional: Bruno desktop client to run interactive streams and WebSockets.
Workflow
- Discover — list operations per protocol (paths, RPCs, queries/mutations, WS actions). Note auth scheme and error shapes.
- Scaffold —
bruno.json,environments/, protocol folders, one.bruper operation. collection-layout.md. - Environments —
baseUrl,graphqlUrl,grpcHost,wsUrl, credentials, empty token slots,vars:secret. environments-and-auth.md. - Auth chain — HTTP login or token request in
auth/(seq1);script:post-responsewithbru.setEnvVar; downstream requests use{{accessToken}}(HTTP bearer, GraphQL, gRPC metadata, WS headers). environments-and-auth.md, scripts-and-env-by-protocol.md. - Implement requests — follow the protocol reference for
meta.type, body blocks, and streaming rules. - Document each request —
docs { }with success and errors (HTTP status, GraphQLerrors, gRPC status codes). request-documentation.md. - Keep in sync — API changes update the matching
.bruin the same commit.
Output checklist
bruno.jsonwith collection name andtype: collection- Environment file(s) with URLs/hosts and auth-related vars for each protocol in use
auth/login or token request with post-responsebru.setEnvVarwhen JWT or API keys are chained- Each protocol: correct
meta.typeand driver block (get/post,grpc,ws,body:graphql) - gRPC: proto path or collection proto settings documented for operators
- Every non-trivial request has a
docsblock (success + errors) - No real secrets, production hostnames, or employer-only URLs in committed files
Bruno version caveats
- Bru tag reference documents
httpandgraphqltags;grpcandwstypes are supported in the app (see Brunotests/grpcandtests/websocketsfixtures and bruno-documentation.md). - gRPC scripting is beta (interactive app; limited runner/CLI).
- SSE and long-lived WebSocket/gRPC streams may be skipped or manual in collection runner — document operator steps in
docs. - OpenCollection YAML is Bruno’s recommended format for some new work; this skill targets
.bruunless the user asks for YAML migration.
Out of scope
Bruno desktop feature parity, cloud sync, and generating a collection from live traffic capture.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

