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★ 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
.brufile 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
:paramformat. - 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-webin pom.xml or build.gradle - Node.js: look for
expressin package.json dependencies - Go: look for
github.com/gin-gonic/ginin go.mod - Rust: look for
actix-weboraxumin Cargo.toml dependencies - Python: look for
djangoordjangorestframeworkin 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.ymlforserver.port - Node.js: search for
listen(calls,.envforPORT - Go: search for
Run(orListenAndServe(calls - Rust: search for
bind(orlisten(calls - Python: check
settings.pyfor port,manage.pyfor 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:
- Read the class to find
@RequestMappingat class level for path prefix - Find all method-level mappings and combine with class prefix
- Read method parameters for
@RequestBody,@PathVariable,@RequestParam,@RequestHeader - Find the DTO/entity class used in
@RequestBodyand read its fields - 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:
- Extract the route path string (first argument)
- Find
app.use('/prefix', router)to resolve full paths for router-based routes - Read the handler to find
req.body,req.params,req.queryusage - If TypeScript, look for interface/type definitions for request body
- 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 /
Установить bruno-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
GlobGrepReadBashWriteВложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic