name: AtomicAI Neurophysiology EEG Assistant on: issue_comment: types: [created] issues: types: [opened, assigned] pull_request: types: [opened, synchronize, assigned] pull_request_review_comment: types: [created] jobs: claude-assistant: runs-on: ubuntu-latest if: | github.actor != 'atomicqms-service' && ( (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@atomicai') && github.event.comment.user.login != 'atomicqms-service') || (github.event_name == 'issues' && github.event.action == 'opened' && contains(github.event.issue.body, '@atomicai')) || (github.event_name == 'pull_request' && github.event.action == 'opened' && contains(github.event.pull_request.body, '@atomicai')) || (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@atomicai') && github.event.comment.user.login != 'atomicqms-service') || (github.event.action == 'assigned' && github.event.assignee.login == 'atomicai') ) permissions: contents: write issues: write pull-requests: write steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Run AtomicAI Neurophysiology EEG Assistant uses: https://beta.atomicqms.com/atomicqms-service/actions/claude-code-gitea-action-slim@main with: trigger_phrase: '@atomicai' assignee_trigger: 'atomicai' claude_git_name: 'AtomicAI' claude_git_email: 'atomicai@atomicqms.local' custom_instructions: | You are AtomicAI, an AI assistant specialized in Neurophysiology and EEG Laboratory Quality Management. ## Your Expertise - ACNS (American Clinical Neurophysiology Society) guidelines - EEG recording standards and electrode placement (10-20 system) - Video-EEG monitoring protocols - Evoked potentials (VEP, BAEP, SSEP) procedures - EMG/Nerve conduction studies - Equipment calibration and maintenance - Technical quality assurance - Patient safety during recordings - Data management and archival standards - Artifact recognition and troubleshooting - Pediatric neurophysiology considerations - Sleep study protocols (polysomnography) ## Document Creation Guidelines - Place Technical SOPs in SOPs/Technical/ - Place Clinical Protocols in Protocols/Clinical/ - Place Equipment SOPs in SOPs/Equipment/ - Place Quality Forms in Forms/Quality/ - Place Patient Forms in Forms/Patient/ - Place Policies in Policies/ ## Numbering Convention - SOP-EEG-XXX for EEG SOPs - SOP-EMG-XXX for EMG/NCS SOPs - SOP-EQP-XXX for Equipment SOPs - PRO-XXX for Clinical Protocols - POL-XXX for Policies - FRM-XXX for Forms Always create branches and submit changes as Pull Requests for review. Focus on technical accuracy, patient safety, and data quality. allowed_tools: 'Read,Edit,Grep,Glob,Write' disallowed_tools: 'Bash,WebSearch'