environment-setup-guide
Guide developers through setting up development environments with proper tools, dependencies, and configurations
openevidence-core-workflow-a
Execute OpenEvidence clinical query workflow for point-of-care decisions. Use when implementing real-time clinical decision support, building EHR-integrated evidence lookups, or point-of-care queries. Trigger with phrases like "openevidence clinical query", "point of care", "quick clinical lookup...
Full skill instructions
Primary workflow for real-time clinical queries at the point of care. Returns evidence-based answers in 5-10 seconds with peer-reviewed citations.
openevidence-install-auth setup// src/workflows/clinical-query.ts
import { OpenEvidenceClient } from '@openevidence/sdk';
interface ClinicalQueryRequest {
question: string;
specialty: string;
urgency: 'stat' | 'urgent' | 'routine';
patientContext?: {
age?: number;
sex?: 'male' | 'female';
conditions?: string[];
medications?: string[];
};
}
interface ClinicalQueryResponse {
answer: string;
citations: Citation[];
confidence: number;
responseTimeMs: number;
queryId: string;
}
interface Citation {
source: string;
title: string;
year: number;
doi?: string;
guideline?: boolean;
}
// src/services/point-of-care-query.ts
import { OpenEvidenceClient } from '@openevidence/sdk';
const client = new OpenEvidenceClient({
apiKey: process.env.OPENEVIDENCE_API_KEY,
orgId: process.env.OPENEVIDENCE_ORG_ID,
timeout: 15000, // 15 second timeout for point-of-care
});
export async function queryAtPointOfCare(
request: ClinicalQueryRequest
): Promise<ClinicalQueryResponse> {
const startTime = Date.now();
const response = await client.query({
question: request.question,
context: {
specialty: request.specialty,
urgency: request.urgency,
...(request.patientContext && {
patientAge: request.patientContext.age,
patientSex: request.patientContext.sex,
relevantConditions: request.patientContext.conditions,
currentMedications: request.patientContext.medications,
}),
},
options: {
maxCitations: 5,
includeGuidelines: true,
prioritizeRecent: true, // Prefer evidence from last 3 years
},
});
return {
answer: response.answer,
citations: response.citations.map(c => ({
source: c.source,
title: c.title,
year: c.year,
doi: c.doi,
guideline: c.type === 'guideline',
})),
confidence: response.confidence,
responseTimeMs: Date.now() - startTime,
queryId: response.id,
};
}
// src/workflows/drug-interaction.ts
export async function checkDrugInteraction(
drug1: string,
drug2: string,
patientContext?: { age?: number; conditions?: string[] }
): Promise<{
hasInteraction: boolean;
severity: 'major' | 'moderate' | 'minor' | 'none';
details: string;
citations: Citation[];
}> {
const response = await queryAtPointOfCare({
question: `What are the drug interactions between ${drug1} and ${drug2}?`,
specialty: 'pharmacology',
urgency: 'urgent',
patientContext,
});
// Parse severity from response
const severity = determineSeverity(response.answer);
return {
hasInteraction: severity !== 'none',
severity,
details: response.answer,
citations: response.citations,
};
}
function determineSeverity(answer: string): 'major' | 'moderate' | 'minor' | 'none' {
const lower = answer.toLowerCase();
if (lower.includes('contraindicated') || lower.includes('major interaction')) return 'major';
if (lower.includes('moderate interaction') || lower.includes('caution')) return 'moderate';
if (lower.includes('minor interaction')) return 'minor';
if (lower.includes('no significant interaction') || lower.includes('no known interaction')) return 'none';
return 'moderate'; // Default to moderate if unclear
}
// src/integrations/ehr-hook.ts
import { queryAtPointOfCare } from '../services/point-of-care-query';
// HL7 FHIR CDS Hooks integration
interface CDSRequest {
hook: string;
hookInstance: string;
context: {
patientId: string;
encounterId?: string;
medications?: any[];
};
}
interface CDSResponse {
cards: CDSCard[];
}
interface CDSCard {
summary: string;
detail: string;
indicator: 'info' | 'warning' | 'critical';
source: { label: string; url?: string };
suggestions?: any[];
}
export async function handleCDSHook(request: CDSRequest): Promise<CDSResponse> {
// Extract clinical context from FHIR resources
const medications = request.context.medications?.map(m => m.medicationCodeableConcept?.text) || [];
// Query OpenEvidence for relevant clinical information
const evidence = await queryAtPointOfCare({
question: buildClinicalQuestion(request.hook, medications),
specialty: 'family-medicine',
urgency: 'routine',
patientContext: {
medications,
},
});
return {
cards: [{
summary: 'Clinical Evidence Available',
detail: evidence.answer,
indicator: evidence.confidence > 0.9 ? 'info' : 'warning',
source: {
label: 'OpenEvidence',
url: 'https://openevidence.com',
},
}],
};
}
function buildClinicalQuestion(hook: string, medications: string[]): string {
switch (hook) {
case 'medication-prescribe':
return `Are there any drug interactions or contraindications for ${medications.join(', ')}?`;
case 'order-sign':
return `What are the clinical considerations for prescribing ${medications.join(', ')}?`;
default:
return `Provide clinical guidance for patient on ${medications.join(', ')}`;
}
}
| Error | Cause | Solution |
|---|---|---|
| Timeout | Complex query or network | Increase timeout, simplify question |
| Low confidence | Ambiguous query | Rephrase with more specific context |
| No citations | Rare condition | Consider DeepConsult for deeper research |
| Rate limit | Too many queries | Implement request queuing |
// Example: Emergency department workflow
async function edClinicalSupport(chiefComplaint: string, vitals: any) {
const queries = await Promise.all([
queryAtPointOfCare({
question: `What is the differential diagnosis for ${chiefComplaint}?`,
specialty: 'emergency-medicine',
urgency: 'stat',
}),
queryAtPointOfCare({
question: `What workup is recommended for ${chiefComplaint}?`,
specialty: 'emergency-medicine',
urgency: 'stat',
}),
]);
return {
differential: queries[0],
workup: queries[1],
};
}
For comprehensive research queries, see openevidence-core-workflow-b (DeepConsult).
Guide developers through setting up development environments with proper tools, dependencies, and configurations
Implement Exa lint rules, policy enforcement, and automated guardrails. Use when setting up code quality rules for Exa integrations, implementing pre-commit hooks, or configuring CI policy checks for Exa best practices. Trigger with phrases like "exa policy", "exa lint", "exa guardrails", "exa be...
Configure CI/CD pipelines for Documenso integrations. Use when setting up automated testing, deployment pipelines, or continuous integration for Documenso projects. Trigger with phrases like "documenso CI", "documenso GitHub Actions", "documenso pipeline", "documenso automated testing".
Build check model availability and implement fallback chains. Use when building resilient systems or handling model outages. Trigger with phrases like 'openrouter availability', 'openrouter fallback', 'openrouter model down', 'openrouter health check'.
Configure Langfuse enterprise organization management and access control. Use when implementing team access controls, configuring organization settings, or setting up role-based permissions for Langfuse projects. Trigger with phrases like "langfuse RBAC", "langfuse teams", "langfuse organization"...
Execute compliance and security auditing for Cursor usage. Triggers on "cursor compliance", "cursor audit", "cursor security review", "cursor soc2", "cursor gdpr". Use when analyzing or auditing cursor compliance audit. Trigger with phrases like "cursor compliance audit", "cursor audit", "cursor".
Configure Apollo.io CI/CD integration. Use when setting up automated testing, continuous integration, or deployment pipelines for Apollo integrations. Trigger with phrases like "apollo ci", "apollo github actions", "apollo pipeline", "apollo ci/cd", "apollo automated tests".
Create robust Python automation with full logging and safety checks. Use when tasks need complex data processing, authenticated API work, conditional file operations, or error handling beyond simple shell commands.
Configure PostHog across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment secrets, or implementing environment-specific PostHog configurations. Trigger with phrases like "posthog environments", "posthog staging", "po...
Expert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration. Use when: build agent, AI agent, autonomous agent, tool use, function calling.
Validate insecure deserialization checker operations. Auto-activating skill for Security Fundamentals. Triggers on: insecure deserialization checker, insecure deserialization checker Part of the Security Fundamentals skill category. Use when working with insecure deserialization checker functiona...
Manage path traversal finder operations. Auto-activating skill for Security Fundamentals. Triggers on: path traversal finder, path traversal finder Part of the Security Fundamentals skill category. Use when working with path traversal finder functionality. Trigger with phrases like "path traversa...
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience