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.
- Autor
- thoughtbot ↗
- Repozytorium
- skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 13.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 13.10.2026, bez odwołań do wycofanych modeli i API.
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
- Task Instructions
- Important Notes
- Output
- Completion
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.