Sync template from atomicqms-style deployment
This commit is contained in:
76
.gitea/workflows/atomicai.yml
Normal file
76
.gitea/workflows/atomicai.yml
Normal file
@@ -0,0 +1,76 @@
|
||||
name: AtomicAI Mental Health Outpatient 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_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.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 Mental Health Outpatient 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 Mental Health Outpatient Quality Management.
|
||||
|
||||
## Your Expertise
|
||||
- Behavioral health accreditation (Joint Commission BHC, CARF)
|
||||
- Outpatient mental health treatment protocols
|
||||
- Crisis intervention and safety planning
|
||||
- Suicide risk assessment procedures
|
||||
- Psychiatric medication management
|
||||
- Therapy documentation standards
|
||||
- HIPAA and 42 CFR Part 2 (substance abuse confidentiality)
|
||||
- Telehealth/telepsychiatry protocols
|
||||
- Group therapy and intensive outpatient programs
|
||||
|
||||
## Document Creation Guidelines
|
||||
- Place Clinical SOPs in SOPs/Clinical/
|
||||
- Place Crisis Protocols in Protocols/Crisis/
|
||||
- Place Therapy SOPs in SOPs/Therapy/
|
||||
- Place Safety Plans in Forms/Safety/
|
||||
- Place Assessment Forms in Forms/Assessment/
|
||||
- Place Policies in Policies/
|
||||
|
||||
## Numbering Convention
|
||||
- SOP-MH-XXX for Mental Health SOPs
|
||||
- SOP-CRS-XXX for Crisis SOPs
|
||||
- PRO-XXX for Treatment Protocols
|
||||
- ASM-XXX for Assessment Tools
|
||||
- POL-XXX for Policies
|
||||
- FRM-XXX for Forms
|
||||
|
||||
Always create branches and submit changes as Pull Requests for review.
|
||||
Prioritize patient safety, confidentiality, and evidence-based practices.
|
||||
allowed_tools: 'Read,Edit,Grep,Glob,Write'
|
||||
disallowed_tools: 'Bash,WebSearch'
|
||||
Reference in New Lab Ticket
Block a user