算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
salesloft-sdk-patterns【设计与创意】Analyze and design a typed Salesloft REST adapter with tenant-bound authentication, endpoint-specific schemas, pagination, errors, and rate metadata. Use when creating or refactoring an integration client. Trigger with "Salesloft SDK patterns", "Salesloft client wrapper", or "typed Salesloft API".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: salesloft-sdk-patterns description: >- Analyze and design a typed Salesloft REST adapter with tenant-bound authentication, endpoint-specific schemas, pagination, errors, and rate metadata. Use when creating or refactoring an integration client. Trigger with "Salesloft SDK patterns", "Salesloft client wrapper", or "typed Salesloft API". argument-hint: "[repository-path] [language]" allowed-tools: Read, Glob, Grep, WebFetch, Write, Edit version: 1.6.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT tags:
This skill builds a narrow client around the endpoints an application actually uses. It avoids invented universal schemas, implicit tenant state, and unbounded recursive retries.
Use Read, Glob, and Grep to inspect package versions, call sites, and generated types. Use WebFetch only for official endpoint contracts. Use Write or Edit after the adapter boundary is confirmed.
https://api.salesloft.com/v2 and documented resource paths; do not force .json onto every path.data, metadata, error, and field-keyed errors as separate typed shapes.x-ratelimit-endpoint-cost and x-ratelimit-remaining-minute from every response that provides them.Resolve one Bearer credential from the explicit tenant context for every call. Never store a mutable global token or retry with another tenant's credential.
metadata.paging.next_page or an empty page.Do not synthesize request fields from examples, automatically fall back to v1, or retry CRM writes without an application idempotency rule and operator approval.
Return endpoint inventory, type boundaries, auth resolver, pagination behavior, retry policy, fixture coverage, and remaining direct calls.
| Condition | Response |
|---|---|
| 401 | Refresh or reacquire through the configured auth flow once. |
| 403/404 | Preserve singular error and verify scope, visibility, and path. |
| 422 | Preserve field-keyed errors; do not flatten away field context. |
| 429/5xx | Respect current headers and bounded backoff; surface exhaustion. |
The example below shows the minimum redacted evidence expected from a successful invocation of this operator workflow.
tenant=team-42; endpoint=GET /v2/people; pages=2; rate-cost=2; retries=0