procore-sdk-patterns
/procore-sdk-patterns
Projektuje cienkiego klienta REST dla Procore, który zachowuje wersje endpointów, routing firmy, linki paginacji, błędy i nagłówki limitów, jako wspólny adapter HTTP zamiast kopiowanych żądań.
- Autor
- jeremylongshore ↗
- Repozytorium
- tons-of-skills-marketplace ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 3
Brak sygnałów. Repozytorium zmienione 26.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
Projektuje cienkiego klienta REST dla Procore, który zachowuje wersje endpointów, routing firmy, linki paginacji, błędy i nagłówki limitów, jako wspólny adapter HTTP zamiast kopiowanych żądań.
Wyzwalacze z opisu
Argumenty
/procore-sdk-patterns [language-and-endpoint-set]
Oryginalny opis (EN)
Design a thin Procore REST client that preserves endpoint-specific versions, company routing, pagination links, errors, and rate headers. Use when building or reviewing a shared HTTP adapter instead of copying ad hoc requests. Trigger with: "build a Procore client", "review Procore SDK patterns", "standardize Procore API calls".
Jak działa
- Overview
- Prerequisites
- Instructions
- Authentication
- Tool Discipline
- Output
- Examples
- Error Handling
- Resources
Podgląd SKILL.md
--- name: procore-sdk-patterns description: >- Design a thin Procore REST client that preserves endpoint-specific versions, company routing, pagination links, errors, and rate headers. Use when building or reviewing a shared HTTP adapter instead of copying ad hoc requests. Trigger with: "build a Procore client", "review Procore SDK patterns", "standardize Procore API calls". allowed-tools: Read, Grep, Write, Edit version: 2.0.0 argument-hint: '[language-and-endpoint-set]' model: inherit effort: high license: MIT author: Jeremy Longshore <jeremy@intentsolutions.io> tags: - saas - procore - rest-client - reliability compatibility: 'Requires an HTTP client with access to documented Procore REST endpoints and a caller-supplied OAuth token provider.' --- # Procore Contract-Preserving REST Client ## Overview Keep the client transport-focused and endpoint versions explicit. Procore resources use multiple REST versions, endpoint-specific page limits, company routing requirements, and actionable response headers that a generic JSON wrapper must not erase. ## Prerequisites - Enumerated public endpoints and their current reference versions - Token-provider interface that never exposes client secrets to callers - Typed error, pagination, rate-budget, and redaction contracts ## Instructions ### Step 1: Model requests explicitly Represent HTTP method, full documented route, API version, company ID, project ID, query parameters, and body separately. Reject private or guessed routes. ### Step 2: Centralize safe headers Add the Bearer token at dispatch time. Carry `Procore-Company-Id` from explicit request context where required, and never infer company routing from a cached payload. ### Step 3: Preserve response metadata Return status, parsed body, request correlation data, `Link`, `Total`, `Per-Page`, `X-Rate-Limit-*`, and `Retry-After` to higher layers. ### Step 4: Bound retries Retry only safe reads or mutations with a proven idempotency design. Honor reset or retry headers, add jitter, cap attempts, and surface the final provider response. ### Step 5: Test endpoint adapters Give each resource adapter contract fixtures for success, pagination, permission denial, validation errors, throttling, and server failure. Keep business workflows outside the transport. ## Authentication The client receives OAuth 2.0 Bearer tokens from an external token provider and injects them only at request dispatch. It must not accept client secrets as ordinary endpoint parameters or log authorization headers. ## Tool Discipline Use Read and Grep to inspect existing transports, endpoint references, and call sites. Use Write or Edit only for the approved client, adapter, tests, or receipt; do not silently rewrite business workflows or provider data. ## Output - Typed transport and endpoint adapter boundary - Pagination, throttling, error, and redaction tests - Endpoint-version inventory and upgrade ownership Return which response contracts are preserved and which endpoints remain outside the client. ## Examples A submittals adapter selects the documented submittals version explicitly and returns Link-header pagination to the caller. The shared transport adds routing and auth headers, but it does not pretend all resources share that version or page size. ## Error Handling | Failure | Response | | --- | --- | | Undocumented route requested | Reject locally and require a public API reference. | | Company context missing | Fail before dispatch when the endpoint requires company routing. | | 429 or 503 response | Honor provider timing headers, enqueue work, and retry only within the bounded policy. | | Ambiguous mutation outcome | Stop automatic retry and reconcile the resource before another write. | ## Resources - [First-party source notes](references/official-docs.md) - [REST API overview](https://developers.procore.com/documentation/rest-api-overview) - [Pagination](https://developers.procore.com/documentation/pagination) - [Rate limiting](https://developers.procore.com/documentation/rate-limiting)
Pliki w paczce (2)
- SKILL.md 4 KB
- references/official-docs.md 1 KB
Wersje
W bazie nie ma innych skilli o nazwie procore-sdk-patterns.
Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki 25465a1ea044 (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
- 100procore-common-errors
Rozpoznaje awarie integracji Procore w OAuth, routingu, uprawnieniach, walidacji, paginacji, dławieniu i webhookach, bez poszerzania dostępu i ślepego ponawiania. - 100procore-local-dev-loop
Buduje deterministyczną pętlę pracy lokalnej z integracją Procore: fikstury, Developer Sandbox i jawne sprzątanie po zmianach, przy testach paginacji i ponowień. - 100procore-webhooks
Odbiera i uwierzytelnia webhooki Procore dla firm budowlanych: sprawdza nagłówek Authorization, obsługuje zdarzenia RFI i dokumentów zgłoszeniowych. - 100api-design-rest
Stosuje reguły projektowania endpointów HTTP: kształty żądań i odpowiedzi, kody, formaty błędów, stronicowanie, wersje i limity. - 100api-design
Projektuje lub recenzuje API HTTP, REST i GraphQL pod kątem wersjonowania, paginacji, kształtu błędów, idempotencji, uwierzytelniania i ewolucji, z naciskiem na kody statusu i nagłówki cache. - 100api-design
Projektuje lub przegląda API HTTP: zasoby, OpenAPI, błędy, stronicowanie, wersje, idempotencję i uwierzytelnianie.