sesion-mental-health-orchestration

Implements a NestJS and SvelteKit SaaS platform for Argentine psychology clinics with scheduling, WhatsApp, and AFIP billing.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/reason-machines/devtools-skills --skill sesion-mental-health-orchestration-reason-machines
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sesion-mental-health-orchestration
Source: https://github.com/reason-machines/devtools-skills/tree/main/skills/sesion-mental-health-orchestration
Command: npx skills add https://github.com/reason-machines/devtools-skills --skill sesion-mental-health-orchestration-reason-machines

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @nestjs/common, @prisma/client, @whiskeysockets/baileys, @anthropic-ai/sdk, livekit-server-sdk, @afipsdk/afip.js.

What problem does it solve? Building a clinic management platform for Argentine psychology practices requires coordinating appointment scheduling, WhatsApp patient messaging, AFIP-compliant electronic invoicing, video consultations, and AI-assisted clinical notes across many services, which is complex to architect from scratch. ## Core Features & Use Cases - Appointment Scheduling with WhatsApp Automation: NestJS services detect scheduling conflicts, create 45-minute appointments, and send automated confirmations and reminders via the Baileys WhatsApp library, including crisis keyword detection. - AFIP Electronic Invoicing: Generates CAE-authorized invoices (receipt types A, B, C, M) through the AFIP web service with certificate-based authentication. - AI Clinical Assistance: Uses Claude Opus and Sonnet to structure dictated session notes, summarize patient history, and detect risk factors in Spanish. - Use Case: A psychology clinic in Buenos Aires needs to automate patient booking, send WhatsApp reminders, issue AFIP-compliant receipts, and host LiveKit video sessions. This Skill provides the full backend services, Prisma schema, and SvelteKit frontend components to implement it. ## Quick Start Set up the Sesión clinic platform by configuring the environment variables for PostgreSQL, Anthropic, LiveKit, AFIP, and Mercado Pago, then run the Prisma migrations and start the NestJS backend.

Frequently Asked Questions about sesion-mental-health-orchestration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send automated WhatsApp appointment reminders with Baileys?▼

Use the Baileys library with useMultiFileAuthState to maintain a WhatsApp session, then call sock.sendMessage with the patient's phone formatted as [email protected]. Schedule reminders with a job queue like Bull at 24 hours and 2 hours before the appointment.

How to generate AFIP electronic invoices in a NestJS application?▼

Use the @afipsdk/afip.js AfipWebService with your CUIT, certificate, and key files, then call ElectronicBilling.createVoucher with the receipt type code, amount, and invoice number. AFIP returns a CAE authorization code and expiry date to store with the invoice record.

Does Baileys WhatsApp integration support incoming message handling?▼

Yes, Baileys emits a messages.upsert event that lets you process incoming texts, such as detecting confirmation replies or crisis keywords. The session reconnects automatically unless the disconnect reason is loggedOut.

Can I use Claude to structure clinical notes in Spanish?▼

Yes, the Anthropic SDK accepts Spanish prompts instructing Claude Sonnet to convert raw dictated notes into structured sections like motivo de consulta and plan terapéutico. Claude Opus handles longer summarization and risk factor detection tasks.

What are the limitations of LiveKit video sessions for telehealth?▼

LiveKit requires a running server with API key and secret, and tokens must be generated per participant with explicit room grants. The implementation restricts data publishing to practitioners, but recording and compliance features are not covered in this codebase.