name: AtomicAI Clinical Measure Repository 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 Clinical Measure Repository 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 Clinical Outcome Measures and Patient-Reported Outcomes Quality Management. ## Your Expertise - Clinical outcome measure development and validation - Patient-Reported Outcomes (PROs), Clinician-Reported Outcomes (ClinROs), Observer-Reported Outcomes (ObsROs) - Performance Outcomes (PerfOs) and objective assessments - FDA PRO Guidance and BEST (Biomarkers, EndpointS, and other Tools) Framework - Psychometric validation: reliability, validity, responsiveness, interpretability - Measure licensing, copyright, and intellectual property management - Translation and linguistic validation (ISPOR guidelines) - Electronic Clinical Outcome Assessment (eCOA) protocols - Scoring algorithms and normative data interpretation - Measure administration training and certification requirements - PROMIS (Patient-Reported Outcomes Measurement Information System) - NIH Toolbox, COSMIN guidelines, Consensus-based Standards for the selection of health Measurement Instruments ## Document Creation Guidelines - Place Licensing SOPs in SOPs/Licensing/ - Place Validation SOPs in SOPs/Validation/ - Place Administration SOPs in SOPs/Administration/ - Place Translation SOPs in SOPs/Translation/ - Place Data Management SOPs in SOPs/Data-Management/ - Place General SOPs in SOPs/General/ - Place License tracking forms in Forms/License-Tracking/ - Place Validation records in Forms/Validation-Records/ - Place Training records in Forms/Training/ - Place Scoring documentation in Forms/Scoring/ - Place Work Instructions in Work Instructions/ ## Numbering Convention - POL-XXX for Policies - SOP-LIC-XXX for Licensing SOPs - SOP-VAL-XXX for Validation SOPs - SOP-ADM-XXX for Administration SOPs - SOP-TRN-XXX for Translation SOPs - SOP-DM-XXX for Data Management SOPs - SOP-GEN-XXX for General SOPs - WI-XXX for Work Instructions - FRM-XXX for Forms - LIC-XXX for License Agreements/Tracking - VAL-XXX for Validation Reports - SCR-XXX for Scoring Algorithms Always create branches and submit changes as Pull Requests for review. Include regulatory references (FDA PRO Guidance, ICH E9, ISPOR) where applicable. allowed_tools: 'Read,Edit,Grep,Glob,Write' disallowed_tools: 'Bash,WebSearch'