Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

generate-postman-collection

/generate-postman-collection

Tworzy lub aktualizuje kolekcję Postman dla API aplikacji Rails na podstawie analizy tras, kontrolerów i testów specs.

Repozytorium
skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
13.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 13.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Tworzy lub aktualizuje kolekcję Postman dla API aplikacji Rails na podstawie analizy tras, kontrolerów i testów specs.

Oryginalny opis (EN)

Automatically generate or update a Postman API collection by analyzing a Rails application's routes, controllers, and test specs. Use when the user wants a Postman collection created or refreshed for a Rails app's API.

Jak działa

  1. Task Instructions
  2. Important Notes
  3. Output
  4. Completion
Sekcje z nagłówków SKILL.md, w oryginale · 80 linii, 432 słów
Podgląd SKILL.md
---
name: generate-postman-collection
description: Automatically generate or update a Postman API collection by analyzing a Rails application's routes, controllers, and test specs. Use when the user wants a Postman collection created or refreshed for a Rails app's API.
---

# Generate Postman Collection

Automatically generate or update the Postman API collection by analyzing the Rails application routes, controllers, and test specs.

## Task Instructions

You are tasked with generating or updating the Postman collection file `postman_collection.json` based on the current state of the Rails API.

Follow these steps:

If there is no existing Postman collection file `postman_collection.json`, 
skip to Step 2.

1. **Check for API-related changes first** (to avoid unnecessary work):
   - Use `git diff` to check if there are any changes to API-related files compared to the main branch
   - Check these paths: `config/routes.rb`, `app/controllers/api/`, `spec/requests/api/`
   - Also check for staged and unstaged changes in the current working directory
   - If NO changes are found in any of these locations, output "No API changes detected - skipping Postman collection update"
   - If changes ARE found, continue to step 2

2. **Read the Rails routes** from `config/routes.rb` to identify all API endpoints

3. **Analyze each API controller** in `app/controllers/api/` to understand:
   - Request parameters (required and optional)
   - Request body structure
   - Response format
   - Authentication requirements
   - Status codes returned

4. **Review RSpec test files** in `spec/requests/api/v1/` to extract:
   - Example request bodies
   - Example responses
   - Valid parameter values
   - Edge cases and validation rules

5. **Generate or update the Postman collection** with:
   - All API endpoints organized in logical folders
   - Complete request examples with proper HTTP methods
   - Request body examples in JSON format
   - Query parameters where applicable
   - Headers (especially Authorization header for authenticated endpoints)
   - Example responses
   - Clear descriptions for each endpoint
   - Variables for `{{base_url}}` and `{{api_token}}`
   - Test scripts that auto-save the API token after successful login

6. **Maintain the existing structure**:
   - Keep the same collection name: "postman_collection"
   - Preserve the variables: `base_url` and `api_token`
   - Maintain folder organization
   - Keep the login test script that auto-saves the token

7. **Ensure completeness**:
   - Every route in `config/routes.rb` should have a corresponding request
   - Each request should have accurate parameters and examples
   - Descriptions should explain what each endpoint does
   - Authentication requirements should be clearly indicated

8. **Write the updated collection** to `postman_collection.json`

## Important Notes

- Use the RSpec tests as the source of truth for request/response examples
- Maintain proper Postman collection v2.1 format
- Ensure all JSON is properly formatted and valid

## Output

After completing the update, provide a summary of:

- Number of endpoints documented
- Any new endpoints added
- Any endpoints removed or modified
- Any issues or ambiguities found

## Completion

If changes have been made notify the user to commit them.

Wersje

W bazie nie ma innych skilli o nazwie generate-postman-collection.

Migawka bazy z 13.11.2026 · wersja paczki e316523769c1 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100rc-postman
    Tworzy lub aktualizuje kolekcję Postman w wersji 2.1.0 i pliki środowisk, odkrywając z kodu endpointy HTTP i kontrakty żądań.
  • 95postman-publisher
    Waliduje i synchronizuje wybraną kolekcję Postman z własną publiczną przestrzenią roboczą w Postman API Network, na potrzeby dystrybucji API.
  • 95postman-routing
    Kieruje prośby dotyczące API i Postmana do właściwego polecenia, np. kolekcji, specyfikacji, testów, mocków czy dokumentacji.
  • 100postman-collection-generator
    Generuje gotowe do importu kolekcje Postman v2.1 JSON z opisów API w języku naturalnym lub poleceń cURL, w tym przepływy uwierzytelniania i operacje CRUD.
  • 95postman
    Prowadzi cykl życia API w Postmanie: synchronizuje specyfikacje OpenAPI, generuje klienty, uruchamia testy, tworzy mocki i sprawdza bezpieczeństwo według OWASP.
  • 100postman-openapi-converter
    Konwertuje specyfikacje OpenAPI 3.x i Swagger 2.0 w YAML lub JSON na gotowe do importu pliki JSON kolekcji Postman v2.1.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.