adobe-sdk-patterns

Featured

Apply production-ready patterns for Adobe Firefly Services SDK, PDF Services SDK, and raw REST API usage in TypeScript and Python. Use when implementing Adobe integrations, refactoring SDK usage, or establishing team coding standards for Adobe APIs. Trigger with phrases like "adobe SDK patterns", "adobe best practices", "adobe code patterns", "idiomatic adobe", "adobe typescript".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Adobe SDK Patterns ## Overview Production-ready patterns for Adobe SDK usage across Firefly Services (`@adobe/firefly-apis`, `@adobe/photoshop-apis`, `@adobe/lightroom-apis`), PDF Services (`@adobe/pdfservices-node-sdk`), and direct REST API calls. ## Prerequisites - Completed `adobe-install-auth` setup - Familiarity with async/await patterns - Understanding of the Adobe API you are integrating ## Instructions ### Pattern 1: Singleton Auth Client with Token Caching ```typescript // src/adobe/client.ts import { ServicePrincipalCredentials, PDFServices } from '@adobe/pdfservices-node-sdk'; let pdfServicesInstance: PDFServices | null = null; let tokenCache: { token: string; expiresAt: number } | null = null; export function getPDFServices(): PDFServices { if (!pdfServicesInstance) { const credentials = new ServicePrincipalCredentials({ clientId: process.env.ADOBE_CLIENT_ID!, clientSecret: process.env.ADOBE_CLIENT_SECRET!, }); pdfServicesInstance = new PDFServices({ credentials }); } return pdfServicesInstance; } export async function getAccessToken(): Promise<string> { if (tokenCache && tokenCache.expiresAt > Date.now() + 300_000) { return tokenCache.token; } const res = await fetch('https://ims-na1.adobelogin.com/ims/token/v3', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({ client_id: process.env.ADOBE_CLIENT_ID!, client_secret: process.e...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

firecrawl-sdk-patterns

Apply production-ready Firecrawl SDK patterns for TypeScript and Python. Use when implementing Firecrawl integrations, building reusable scraping services, or establishing team coding standards for Firecrawl. Trigger with phrases like "firecrawl SDK patterns", "firecrawl best practices", "firecrawl code patterns", "idiomatic firecrawl", "firecrawl wrapper".

2,266 Updated today
jeremylongshore
AI & Automation Featured

documenso-sdk-patterns

Apply production-ready Documenso SDK patterns for TypeScript and Python. Use when implementing Documenso integrations, refactoring SDK usage, or establishing team coding standards for Documenso. Trigger with phrases like "documenso SDK patterns", "documenso best practices", "documenso code patterns", "idiomatic documenso".

2,266 Updated today
jeremylongshore
AI & Automation Featured

adobe-reliability-patterns

Implement reliability patterns for Adobe APIs: circuit breakers for IMS/Firefly, idempotency for PDF Services operations, graceful degradation when Adobe is down, and dead letter queues for failed async jobs. Trigger with phrases like "adobe reliability", "adobe circuit breaker", "adobe fallback", "adobe resilience", "adobe graceful degradation".

2,266 Updated today
jeremylongshore
AI & Automation Featured

adobe-hello-world

Create minimal working examples for Adobe APIs: Firefly image generation, PDF extraction, and Photoshop background removal. Use when starting a new Adobe integration, testing your setup, or learning basic Adobe API patterns. Trigger with phrases like "adobe hello world", "adobe example", "adobe quick start", "simple adobe code", "first adobe API call".

2,266 Updated today
jeremylongshore
AI & Automation Featured

adobe-performance-tuning

Optimize Adobe API performance with token caching, async job batching, connection pooling, and response caching for Firefly, PDF Services, and Photoshop API workflows. Trigger with phrases like "adobe performance", "optimize adobe", "adobe latency", "adobe caching", "adobe slow", "adobe batch".

2,266 Updated today
jeremylongshore