jeremylongshore / openevidence-sdk-patterns
Install for your project team
Run this command in your project directory to install the skill for your entire team:
mkdir -p .claude/skills/openevidence-sdk-patterns && curl -L -o skill.zip "https://fastmcp.me/Skills/Download/3064" && unzip -o skill.zip -d .claude/skills/openevidence-sdk-patterns && rm skill.zip
Project Skills
This skill will be saved in .claude/skills/openevidence-sdk-patterns/ and checked into git. All team members will have access to it automatically.
Important: Please verify the skill by reviewing its instructions before using it.
OpenEvidence SDK patterns and best practices for clinical AI integration. Use when implementing advanced SDK features, optimizing API usage, or following clinical decision support best practices. Trigger with phrases like "openevidence patterns", "openevidence best practices", "openevidence sdk", "clinical ai patterns".
Skill Content
---
name: openevidence-sdk-patterns
description: |
Sdk Patterns for OpenEvidence.
Trigger: "openevidence sdk patterns".
allowed-tools: Read, Write, Edit
version: 1.0.0
license: MIT
author: Jeremy Longshore <jeremy@intentsolutions.io>
tags: [saas, openevidence, healthcare]
compatible-with: claude-code
---
# OpenEvidence SDK Patterns
## Singleton Client
```typescript
let instance: any = null;
export function getClient() {
if (!instance) instance = createOpenEvidenceClient({ apiKey: process.env.OPENEVIDENCE_API_KEY });
return instance;
}
```
## Error Wrapper
```typescript
async function safe<T>(fn: () => Promise<T>): Promise<T | null> {
try { return await fn(); }
catch (e: any) {
if (e.status === 429) { await new Promise(r => setTimeout(r, 5000)); return fn(); }
console.error('OpenEvidence error:', e.message);
return null;
}
}
```
## Resources
- [OpenEvidence SDK](https://www.openevidence.com)
## Next Steps
Apply in `openevidence-core-workflow-a`.