Persona upgrade migration
Skill jeremylongshore/claude-code-plugins-plus-skills/skills/.curated/persona-upgrade-migration
'Upgrade Persona API versions and handle breaking changes.From its SKILL.md
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill persona-upgrade-migrationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.8 KB, 320 tokens by cl100k_base, as published. Nobody here has run it
persona upgrade migration | sed 's/\b(.)/\u\1/g'
Overview
API versioning via Persona-Version header, deprecated field migration, test against sandbox.
Prerequisites
- Completed
persona-install-authsetup - Valid Persona API key (sandbox or production)
Instructions
Step 1: Implementation
import os, requests
HEADERS = {
"Authorization": f"Bearer {os.environ['PERSONA_API_KEY']}",
"Persona-Version": "2023-01-05",
}
BASE = "https://withpersona.com/api/v1"
# Upgrade Persona API versions and handle breaking changes
resp = requests.get(f"{BASE}/inquiries?page[size]=10", headers=HEADERS)
resp.raise_for_status()
inquiries = resp.json()["data"]
for inq in inquiries:
print(f" {inq['id']}: {inq['attributes']['status']}")
Output
- API versioning via Persona-Version header, deprecated field migration, test against sandbox.
Error Handling
| Error | Cause | Solution |
|---|---|---|
| 401 Unauthorized | Invalid API key | Check PERSONA_API_KEY |
| 429 Rate Limited | Too many requests | Implement backoff |
| 404 Not Found | Wrong resource ID | Verify ID format |
Resources
Next Steps
See related Persona skills for more workflows.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.