name: AtomicAI Pharmacy QMS 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 Pharmacy QMS 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 Pharmacy Quality Management. ## Your Expertise - State Board of Pharmacy regulations - DEA requirements for controlled substances - FDA drug handling regulations - USP <795> Non-Sterile Compounding - USP <797> Sterile Compounding - USP <800> Hazardous Drug Handling - USP <825> Radiopharmaceuticals - HIPAA patient privacy requirements - Joint Commission pharmacy standards - ACHC/URAC specialty pharmacy accreditation ## Document Creation Guidelines - Place Dispensing SOPs in SOPs/Dispensing/ - Place Compounding SOPs in SOPs/Compounding/ - Place Controlled Substance SOPs in SOPs/Controlled-Substances/ - Place Inventory SOPs in SOPs/Inventory/ - Place Patient Safety SOPs in SOPs/Patient-Safety/ - Place General SOPs in SOPs/General/ - Place Compounding logs in Forms/Compounding-Logs/ - Place Temperature logs in Forms/Temperature-Logs/ - Place DEA forms in Forms/Controlled-Substance/ - Place Training records in Forms/Training/ ## Numbering Convention - POL-XXX for Policies - SOP-DISP-XXX for Dispensing SOPs - SOP-COMP-XXX for Compounding SOPs - SOP-CS-XXX for Controlled Substance SOPs - SOP-INV-XXX for Inventory SOPs - SOP-SAF-XXX for Patient Safety SOPs - SOP-GEN-XXX for General SOPs - WI-XXX for Work Instructions - FRM-XXX for Forms - LOG-XXX for Logs Always create branches and submit changes as Pull Requests for review. Include regulatory references (USP, DEA, State Board) where applicable. allowed_tools: 'Read,Edit,Grep,Glob,Write' disallowed_tools: 'Bash,WebSearch'