/persona-pack:persona-local-dev-loopfrom persona-pack
Sets up a local development loop for Persona identity verification using sandbox API keys, ngrok for webhook tunneling, and mock API responses for CI testing.
Ships in persona-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.
None: SKILL.md is the whole skill.
Sandbox testing with test inquiry templates, ngrok tunnel for webhook testing, mock API responses for CI.
persona-install-auth setupset -euo pipefail
# Use sandbox API key for all development
echo 'PERSONA_API_KEY=persona_sandbox_xxxxxxxx' > .env
echo 'PERSONA_API_VERSION=2023-01-05' >> .env
# Terminal 1: Start your webhook server
npm run dev # localhost:3000
# Terminal 2: Tunnel with ngrok
ngrok http 3000
# Copy the HTTPS URL and configure in Persona Dashboard > Webhooks
import os, requests
HEADERS = {
"Authorization": f"Bearer {os.environ['PERSONA_API_KEY']}",
"Persona-Version": "2023-01-05",
}
# Create inquiry with sandbox template
resp = requests.post("https://withpersona.com/api/v1/inquiries", headers=HEADERS, json={
"data": {
"attributes": {
"inquiry-template-id": "itmpl_YOUR_SANDBOX_TEMPLATE",
"reference-id": f"test-{int(time.time())}",
}
}
})
print(f"Test inquiry: {resp.json()['data']['id']}")
import { vi } from 'vitest';
const mockPersonaApi = {
createInquiry: vi.fn().mockResolvedValue({
data: { id: 'inq_test_123', attributes: { status: 'created', 'session-token': 'tok_xxx' } },
}),
getInquiry: vi.fn().mockResolvedValue({
data: { id: 'inq_test_123', attributes: { status: 'completed' } },
}),
};
| Error | Cause | Solution |
|---|---|---|
| Webhook not received | ngrok URL not configured | Update webhook URL in Dashboard |
| Sandbox key rejected | Using production key | Verify key starts with persona_sandbox_ |
| Template not found | Wrong environment | Templates are per-environment |
Apply SDK patterns: persona-sdk-patterns
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 skills in this plugin
/persona-ci-integrationCI/CD pipeline for Persona integrations with sandbox API testing.
Use when working with Persona identity verification.
Trigger with phrases like "persona ci-integration", "persona ci-integration".
/persona-common-errorsFix top Persona API errors: 401, 422, webhook signature failures, inquiry state issues.
Use when working with Persona identity verification.
Trigger with phrases like "persona common-errors", "persona common-errors".
/persona-core-workflow-aBuild a complete KYC verification flow with Persona inquiries and embedded UI.
Use when implementing identity verification, building KYC onboarding,
or integrating Persona's hosted flow into your application.
Trigger with phrases like "persona KYC flow", "identity verification",
"persona inquiry workflow", "onboarding verification".
npx claudepluginhub flight505/skill-forge --plugin persona-packOther plugins' skills for the same job