/palantir-pack:palantir-sdk-patterns [application-or-client-library]from palantir-pack
Provides patterns for building resilient Palantir Foundry clients: choosing between OSDK and Platform SDK, handling authentication, pagination, retries, and contract pinning.
Ships in palantir-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Keep application-specific Ontology access in the generated OSDK and broader platform operations in the Platform SDK. Wrap transport concerns without hiding the generated entity contract, OAuth authority, request identifiers, or Action validation.
references/official-docs.md, generated application documentation, and relevant migration guide.Inject an approved token provider or OAuth client into the boundary; never accept a raw long-lived token as ordinary configuration. Log grant/principal identifiers and request IDs where permitted, but never bearer tokens, client secrets, object values, or protected payloads.
Write a decision record choosing OSDK or Platform SDK and list the exact required resources or operations.
Expose one client boundary that owns token acquisition, deadlines, request correlation, retry classification, and telemetry.
Implement deterministic pagination and property selection; return continuation state rather than silently loading every page.
Keep generated object, Action, and Function definitions visible to callers and validate Actions before approved execution.
Add contract tests for auth denial, restrictions, page continuation, 429/503, non-retryable errors, validation failures, and SDK upgrades.
Application and platform owners approve the selected API surface; security owners approve token handling; data owners approve returned properties and writeback. Shared-client abstraction does not authorize new endpoints.
An SDK decision, pinned dependencies, typed client boundary, auth provider, pagination/retry policy, generated-contract usage, tests, telemetry/redaction rules, and upgrade procedure.
| Condition | Response |
|---|---|
| A wrapper accepts arbitrary endpoint paths | Replace it with typed/generated operations or an explicitly reviewed Platform API surface. |
| A helper loads all pages | Return bounded pages or stream with cancellation and total-work limits. |
| A write is retried automatically | Require documented idempotency or reconciliation before retry. |
| Generated definitions change | Treat it as a contract migration and update tests plus call sites together. |
Build a TypeScript OSDK client boundary that accepts a token provider, requests selected properties, returns continuation state, preserves generated Action validation, and emits redacted request metrics.
Build a Python Platform SDK service for one approved API group with Client Credentials auth, bounded pagination, retry only for transient responses, and request-ID capture.
What SKILL.md sets; muted values are Claude Code's defaults
inherithighThree short reads, in order
24 skills in this plugin
/palantir-ci-integrationDesign and verify Foundry-native continuous-integration and review gates for Code Repositories and transforms. Use when a team needs branch checks, unit tests, dataset-impact review, or controlled promotion. Trigger with "Palantir CI" or "Foundry repository checks"./palantir-common-errorsDiagnose Foundry API, Ontology, permission, and transform-build failures from bounded evidence. Use when an operator sees authentication, authorization, throttling, missing-resource, dependency, or build errors. Trigger with "Foundry error" or "Palantir 403"./palantir-core-workflow-aDesign and validate a Foundry Python transform pipeline with explicit datasets, compute choice, expectations, and incremental semantics. Use when building or changing batch data pipelines. Trigger with "Foundry transform" or "Palantir data pipeline"./palantir-core-workflow-bBuild and verify an Ontology-backed application with a generated OSDK, bounded object queries, and validated Actions. Use when implementing object reads, links, aggregations, Functions, or writeback. Trigger with "Palantir OSDK" or "Ontology Action"./palantir-cost-tuningReduce Foundry compute usage through measured engine, resource, incremental, schedule, and Compute Module decisions. Use when build or application usage is high or unpredictable. Trigger with "Foundry cost tuning" or "Palantir compute usage"./palantir-data-handlingDesign and verify Foundry data handling across projects, roles, mandatory controls, Ontology security, logs, exports, and retention. Use when processing sensitive or regulated data. Trigger with "Foundry data handling" or "Palantir markings".npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin palantir-packOther plugins' skills for the same job