dragon-copilot-extension-samples
Copilot instructions18 starsChanged 5 months agoMITView on GitHub
This repository contains sample code and tools for developing Dragon Copilot Extensions - plugins that extend the functionality of Dragon Copilot, a medical AI platform for clinical documentation and healthcare workflows. 1. Follow Medical Domain Patterns - Use clinical terminology appropriately - Respect patient data sensitivity and privacy -
The file
We split this copilot-instructions.md into the rules it gives an agent
12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 87
Test locally, then deploy
- Very specific: line 90
Run: .\scripts\start-dev.ps1 (Windows) or ./scripts/start-dev.sh (Linux/Mac)
- Distinctive: line 91
Test endpoints: http://localhost:5181/health, http://localhost:5181/ (Swagger)
- Very specific: line 92
Use .http files for API testing
- Distinctive: line 104
Use clinical terminology appropriately
- Distinctive: line 106
Follow healthcare compliance patterns (HIPAA considerations)
- Distinctive: line 109
Always implement health check endpoints
- Distinctive: line 110
Use structured logging for debugging
- Distinctive: line 111
Follow the ProcessRequest/ProcessResponse pattern
- Distinctive: line 117
Use HTTPS in production
- Distinctive: line 118
Follow principle of least privilege
- Distinctive: line 129
Test with realistic clinical data samples
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Copilot Instructions for Dragon Copilot Extension Samples
Repository Overview
This repository contains sample code and tools for developing Dragon Copilot Extensions - plugins that extend the functionality of Dragon Copilot, a medical AI platform for clinical documentation and healthcare workflows.
Key Architecture Concepts
Dragon Copilot Extensions
- Purpose: Extend Dragon Copilot with custom AI-powered functionality for clinical data processing
- Pattern: REST API services that receive clinical data and return processed results
- Data Types: Clinical notes, transcripts, audio, encounters, patient data
- Integration: Extensions are called by Dragon Copilot platform via HTTP POST to
/v1/process
Core Data Models (physician/src/models/Dragon.Copilot.Physician.Models/)
- DragonStandardPayload: Main payload structure containing session data, clinical context
- Note: Clinical notes and documentation
- Transcript: Speech-to-text transcriptions
- IterativeTranscript/IterativeAudio: Real-time streaming data
- Patient/Practitioner: Healthcare entities
- Encounter: Clinical visits and sessions
- MedicalCode: Standardized medical coding (ICD, SNOMED, etc.)
Project Structure
Main Components
- Sample Extension (
physician/src/samples/DragonCopilot/Workflow/SampleExtension.Web/)- C# ASP.NET Core Web API demonstrating extension pattern
- Shows request/response handling, authentication, processing logic
- Port 5181 (HTTP), 7156 (HTTPS)
- CLI Tools (
tools/dragon-copilot-cli/)- TypeScript/Node.js CLI for extension development
- Commands:
connector init,connector validate,connector package - Creates extension manifests and publisher configurations
- Documentation (
doc/)- Authentication patterns (Microsoft Entra ID JWT)
- API contracts and integration guides
Development Patterns
Extension API Contract
[HttpPost("/v1/process")]
public async Task<ProcessResponse> ProcessAsync([FromBody] ProcessRequest request)Authentication
- JWT Authentication: Microsoft Entra ID integration for service-to-service auth
- Conditional Security: Can be disabled for development environments
Configuration Patterns
- Development: Authentication disabled for easier testing
- Production: JWT authentication with Microsoft Entra ID
- Environment-specific:
appsettings.jsonvsappsettings.Development.json
Extension Manifest Format
name: extension-name
description: Extension description
version: 0.0.1
auth:
tenantId: 12345678-1234-1234-1234-123456789abc
tools:
- name: tool-name
description: Tool description
endpoint: https://api.example.com/v1/process
trigger: AutoRun # Optional: AutoRun (default) or AdaptiveCardAction
inputs:
- name: note
description: Clinical note input
content-type: application/vnd.ms-dragon.dsp.note+json
outputs:
- name: processed-data
description: Processed results
content-type: application/vnd.ms-dragon.dsp+jsonCommon Development Workflows
Creating New Extensions
- Use CLI:
dragon-copilot connector init - Copy sample project as starting point
- Modify
ProcessingService.csfor custom business logic - Update
extension.yamlmanifest - Test locally, then deploy
Local Development
- Run:
.\scripts\start-dev.ps1(Windows) or./scripts/start-dev.sh(Linux/Mac) - Test endpoints: http://localhost:5181/health, http://localhost:5181/ (Swagger)
- Use
.httpfiles for API testing
Deployment Options
- Local/Development: Direct .NET hosting
- Container: Docker with provided Dockerfile
- Azure: Container Apps deployment scripts available
Code Generation Guidelines
When working with this codebase:
- Follow Medical Domain Patterns
- Use clinical terminology appropriately
- Respect patient data sensitivity and privacy
- Follow healthcare compliance patterns (HIPAA considerations)
- Extension Development
- Always implement health check endpoints
- Use structured logging for debugging
- Follow the ProcessRequest/ProcessResponse pattern
- Include comprehensive error handling
- Security Considerations
- Implement proper authentication when required
- Validate all input data thoroughly
- Use HTTPS in production
- Follow principle of least privilege
- API Design
- Use RESTful patterns
- Include OpenAPI/Swagger documentation
- Support CORS for Dragon Copilot integration
- Return consistent error response formats
- Testing Patterns
- Include health check endpoints
- Provide
.httptest files - Test with realistic clinical data samples
- Validate against extension manifest requirements
Technology Stack
- Backend: C# .NET 9.0, ASP.NET Core
- CLI Tools: TypeScript, Node.js, Commander.js
- Authentication: Microsoft Entra ID, JWT tokens
- Documentation: OpenAPI/Swagger
- Deployment: Docker, Azure Container Apps
- Testing: HTTP files, integration tests
Key Files to Reference
physician/src/samples/DragonCopilot/Workflow/SampleExtension.Web/- Main extension examplephysician/src/models/Dragon.Copilot.Physician.Models/- Data models and contractstools/dragon-copilot-cli/- Development toolingdoc/Authentication.md- Security implementation guidephysician/QUICKSTART.md- Getting started guide
Business Context
This is healthcare/medical AI software. Extensions process clinical data like patient notes, transcripts, and medical encounters to provide AI-powered insights, entity extraction, clinical decision support, and documentation assistance for healthcare providers.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

