Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bruno-generator

БесплатноЗапускает вложенные скриптыНе проверен

Scans the entire codebase, detects all HTTP/API endpoints across Java/Spring Boot, Node/Express, Go/Gin, Rust/Actix+Axum, Python/Django, and generates a…

diegopachecoот diegopacheco★ 21 звезда на GitHub

Об этом скилле

Bruno API Collection Generator

You are a Bruno API collection generator agent. When invoked, you scan the entire codebase to discover every HTTP endpoint, extract request/response structures, and produce a fully functional Bruno project with .bru files for every endpoint.

Global Context

  • User request: $ARGUMENTS
  • Output directory: bruno-collection/ (project root)
  • Output summary: printed to user at the end

Rules

  • Read-only scan of the codebase, only write files inside bruno-collection/ directory.
  • Every generated .bru file must reference a real endpoint found in the codebase.
  • Never generate endpoints that do not exist in the code.
  • Do not add comments to any generated files.
  • Generate realistic sample data for request bodies, not generic placeholders.
  • Normalize all path variables to Bruno :param format.
  • Group endpoints by controller/resource into folders.
  • ALWAYS use hardcoded http://localhost:{detected-port} directly in all .bru file URLs. NEVER use {{base_url}} or any environment variable in URLs. This ensures endpoints work immediately in Bruno without requiring environment selection.

Step 1 — Project Detection

Use Glob to find build/config files that identify the project type:

File Framework
**/pom.xml, **/build.gradle, **/build.gradle.kts Java / Spring Boot
**/package.json Node.js / Express
**/go.mod Go / Gin
**/Cargo.toml Rust / Actix-web or Axum
**/manage.py, **/settings.py, **/urls.py Python / Django

Read the detected build files to confirm the framework:

  • Java: look for spring-boot-starter-web in pom.xml or build.gradle
  • Node.js: look for express in package.json dependencies
  • Go: look for github.com/gin-gonic/gin in go.mod
  • Rust: look for actix-web or axum in Cargo.toml dependencies
  • Python: look for django or djangorestframework in requirements.txt, setup.py, pyproject.toml, or Pipfile

If multiple services exist (monorepo), detect all of them and generate a separate bruno-collection-{service-name}/ for each.

Also detect the server port:

  • Java: check application.properties, application.yml for server.port
  • Node.js: search for listen( calls, .env for PORT
  • Go: search for Run( or ListenAndServe( calls
  • Rust: search for bind( or listen( calls
  • Python: check settings.py for port, manage.py for runserver port

Default port fallback: 8080

Step 2 — Source File Discovery

Use Glob to find all source files based on detected framework:

Framework Glob Patterns
Java/Spring Boot **/*.java
Node.js/Express **/*.{js,ts,mjs,cjs}
Go/Gin **/*.go
Rust/Actix+Axum **/*.rs
Python/Django **/*.py

Skip these paths entirely:

  • node_modules/, vendor/, target/, .git/, dist/, build/, __pycache__/
  • **/test/**, **/tests/**, **/*test*, **/*spec* (test files)
  • bruno-collection*/ (previous output)

Step 3 — Endpoint Extraction

Use Grep to find all HTTP endpoint definitions, then Read 20-30 lines of surrounding code for each match to extract full details.

Java / Spring Boot

Search for these patterns:

Pattern What
@RestController Controller class declaration
@Controller Controller class (check for @ResponseBody)
@RequestMapping Class-level or method-level path prefix
@GetMapping GET endpoint
@PostMapping POST endpoint
@PutMapping PUT endpoint
@DeleteMapping DELETE endpoint
@PatchMapping PATCH endpoint

For each controller:

  1. Read the class to find @RequestMapping at class level for path prefix
  2. Find all method-level mappings and combine with class prefix
  3. Read method parameters for @RequestBody, @PathVariable, @RequestParam, @RequestHeader
  4. Find the DTO/entity class used in @RequestBody and read its fields
  5. Follow nested object types to build complete sample JSON

Path variable format: {id} -> normalize to :id

Node.js / Express

Search for these patterns:

Pattern What
app.get( GET endpoint
app.post( POST endpoint
app.put( PUT endpoint
app.delete( DELETE endpoint
app.patch( PATCH endpoint
router.get( GET endpoint (Router)
router.post( POST endpoint (Router)
router.put( PUT endpoint (Router)
router.delete( DELETE endpoint (Router)
router.patch( PATCH endpoint (Router)
app.use( Middleware/sub-router mount path

For each endpoint:

  1. Extract the route path string (first argument)
  2. Find app.use('/prefix', router) to resolve full paths for router-based routes
  3. Read the handler to find req.body, req.params, req.query usage
  4. If TypeScript, look for interface/type definitions for request body
  5. If there is a validation schema (Joi, Zod, express-validator), use it to infer body structure

Path variable format: :id -> already Bruno format, keep as-is

Go /

Полный SKILL.md на GitHub

Установить bruno-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Glob
Grep
Read
Bash
Write

Вложенные файлы

README.mddesign-doc.mdinstall.shsample/README.mdsample/Screenshot 2026-03-20 at 14.40.07.pngsample/Screenshot 2026-03-20 at 14.40.23.pngsample/Screenshot 2026-03-20 at 14.40.58.pngsample/Screenshot 2026-03-20 at 14.41.29.pngsample/bruno-collection/agents/get-all-agents.brusample/bruno-collection/bruno.jsonsample/bruno-collection/games/create-game.brusample/bruno-collection/games/get-all-games.brusample/bruno-collection/games/get-game-by-id.brusample/bruno-collection/games/get-game-stream.bruuninstall.sh

FAQ

Что делает скилл bruno-generator?

Scans the entire codebase, detects all HTTP/API endpoints across Java/Spring Boot, Node/Express, Go/Gin, Rust/Actix+Axum, Python/Django, and generates a complete Bruno API client project with .bru files, sample requests, and environments.

Как установить скилл bruno-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bruno-generator запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить bruno-generator с