Automated summary
This skill provides three minimal TypeScript examples for getting started with Adobe APIs: Firefly image generation, PDF text extraction, and Photoshop background removal.
Strengths
- Copy-pasteable examples covering three distinct Adobe API surfaces
- Demonstrates OAuth credential handling through environment variables
- Includes HTTP error checking for the Firefly request
- Useful as a quick smoke test after installation and authentication
Limitations
- Assumes an existing ./adobe/auth helper and completed adobe-install-auth setup
- The Photoshop example is truncated in the provided file
- Photoshop calls require pre-signed input and output URLs
Use it to quickly validate an Adobe setup or learn the basic pattern for a first API call.
Avoid it for production integrations that need retries, hardened security, or complete end-to-end workflows.
Security analysis
SafeThe skill only provides example code snippets for Adobe API calls using Read/Write/Edit tools. It does not instruct destructive actions, exfiltration, or obfuscated payloads. API credentials are sent only to legitimate Adobe endpoints as part of documented integration patterns.
No concerns found
How this analysis is madeExamples
Give me an Adobe hello world script in TypeScript that generates a 1024x1024 Firefly image from a text prompt using OAuth server-to-server credentials.Show me a minimal Adobe PDF Services example that extracts text and tables from sample.pdf and saves the result ZIP file.I want to test Adobe Photoshop background removal with a pre-signed image URL — give me a quick start example.name: adobe-hello-world description: '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".
' allowed-tools: Read, Write, Edit version: 1.7.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
- saas
- design
- adobe compatibility: Designed for Claude Code
Adobe Hello World
Overview
Three minimal working examples covering Adobe's core API surfaces: Firefly AI image generation, PDF content extraction, and Photoshop background removal.
Prerequisites
- Completed
adobe-install-authsetup - Valid OAuth Server-to-Server credentials
- Node.js 18+ with
@adobe/firefly-apisor@adobe/pdfservices-node-sdkinstalled
Instructions
Example 1: Firefly Text-to-Image Generation
// hello-firefly.ts
import 'dotenv/config';
import { getAdobeAccessToken } from './adobe/auth';
async function generateImage() {
const token = await getAdobeAccessToken();
const response = await fetch(
'https://firefly-api.adobe.io/v3/images/generate',
{
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'x-api-key': process.env.ADOBE_CLIENT_ID!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
prompt: 'A futuristic cityscape at sunset with flying cars',
n: 1, // number of images
size: {
width: 1024,
height: 1024,
},
contentClass: 'art', // "art" or "photo"
}),
}
);
if (!response.ok) {
throw new Error(`Firefly API error: ${response.status} ${await response.text()}`);
}
const result = await response.json();
console.log('Generated image URL:', result.outputs[0].image.url);
return result;
}
generateImage().catch(console.error);
Example 2: PDF Text Extraction
// hello-pdf.ts
import {
ServicePrincipalCredentials,
PDFServices,
MimeType,
ExtractPDFParams,
ExtractElementType,
ExtractPDFJob,
ExtractPDFResult,
} from '@adobe/pdfservices-node-sdk';
import * as fs from 'fs';
async function extractPDF() {
const credentials = new ServicePrincipalCredentials({
clientId: process.env.ADOBE_CLIENT_ID!,
clientSecret: process.env.ADOBE_CLIENT_SECRET!,
});
const pdfServices = new PDFServices({ credentials });
// Upload the PDF
const inputStream = fs.createReadStream('./sample.pdf');
const inputAsset = await pdfServices.upload({
readStream: inputStream,
mimeType: MimeType.PDF,
});
// Configure extraction (text + tables)
const params = new ExtractPDFParams({
elementsToExtract: [ExtractElementType.TEXT, ExtractElementType.TABLES],
});
// Run extraction job
const job = new ExtractPDFJob({ inputAsset, params });
const pollingURL = await pdfServices.submit({ job });
const result = await pdfServices.getJobResult({
pollingURL,
resultType: ExtractPDFResult,
});
// Download result ZIP containing structuredData.json
const resultAsset = result.result!.resource;
const streamAsset = await pdfServices.getContent({ asset: resultAsset });
const outputStream = fs.createWriteStream('./extracted-output.zip');
streamAsset.readStream.pipe(outputStream);
console.log('Extraction complete: ./extracted-output.zip');
}
extractPDF().catch(console.error);
Example 3: Photoshop Remove Background
// hello-photoshop.ts
import 'dotenv/config';
import { getAdobeAccessToken } from './adobe/auth';
async function removeBackground() {
const token = await getAdobeAccessToken();
// Input/output must be pre-signed URLs (S3, Azure Blob, Dropbox)
const response = await fetch(
'https://image.adobe.io/sensei/cutout',
{
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'x-api-key': process.env.ADOBE_CLIENT_ID!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
input: {
href: 'https://your-bucket.s3.amazonaws.com/input-photo.jpg',
storage: 'external',
},
output: {
href: 'https://your-bucket.s3.amazonaws.com/output-cutout.png',
storage: 'external',
type: 'image/png',
},
}),
}
);
const result = await response.json();
console.log('Job status URL:', result._links.self.href);
// Poll for completion
let status = result;
while (status.status !== 'succeeded' && status.status !== 'failed') {
await new Promise(r => setTimeout(r, 2000));
const poll = await fetch(status._links.self.href, {
headers: {
'Authorization': `Bearer ${token}`,
'x-api-key': process.env.ADOBE_CLIENT_ID!,
},
});
status = await poll.json();
}
console.log('Background removal:', status.status);
}
removeBackground().catch(console.error);
Output
- Generated AI image URL from Firefly API
- Extracted PDF text/tables in structured JSON format
- Background-removed PNG from Photoshop API
Error Handling
| Error | Cause | Solution |
|-------|-------|----------|
| 403 Forbidden | Missing API entitlement | Enable the API in Developer Console project |
| 400 Bad Request on Firefly | Invalid prompt or parameters | Check content policy; prompts cannot request trademarks or people |
| invalid_content_type on PDF | Wrong MimeType | Ensure input is actually a PDF, not a renamed file |
| InputValidationError on Photoshop | Invalid storage URL | Use pre-signed URLs with read/write permissions |
| 429 Too Many Requests | Rate limit exceeded | Implement backoff; see adobe-rate-limits |
Examples
Start with the smallest applicable command or code example already provided in this guide, using a non-production Adobe environment and credentials. Confirm the documented response or validation result before applying the pattern to production.
Resources
- Firefly API Quickstart
- PDF Services Node.js Quickstart
- Photoshop API Getting Started
Next Steps
Proceed to adobe-local-dev-loop for development workflow setup.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/adobe-hello-world-examples-mte1lim6/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/adobe-hello-world-examples-mte1lim6' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/adobe-hello-world-examples-mte1lim6/download' --output '.skill-downloads/adobe-hello-world-examples-mte1lim6/SKILL.md.part' && mv '.skill-downloads/adobe-hello-world-examples-mte1lim6/SKILL.md.part' '.skill-downloads/adobe-hello-world-examples-mte1lim6/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Environment declared by the author: Designed for Claude Code
Tools declared by the author (check availability in your agent): Read, Write, Edit
Original excerpt: Prerequisites
- Completed
adobe-install-authsetup - Valid OAuth Server-to-Server credentials
- Node.js 18+ with
@adobe/firefly-apisor@adobe/pdfservices-node-sdkinstalled
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/adobe-hello-world-examples-mte1lim6/SKILL.md' && test -s '.skill-downloads/adobe-hello-world-examples-mte1lim6/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/adobe-hello-world' && cp -R '.skill-downloads/adobe-hello-world-examples-mte1lim6' '.claude/skills/adobe-hello-world'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/adobe-hello-world-examples-mte1lim6'openskills read 'adobe-hello-world-examples-mte1lim6'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/adobe-hello-world-examples-mte1lim6/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.