sesion-mental-health-clinic-platform

Configures a NestJS and SvelteKit practice management platform for psychology clinics with WhatsApp, AFIP billing, and video consultations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Psychology clinics in Argentina need to coordinate appointment scheduling, patient messaging, tax-compliant invoicing, and telehealth video sessions across disconnected tools, which creates manual overhead and missed reminders. ## Core Features & Use Cases - Appointment Scheduling with Conflict Detection: Creates appointments in PostgreSQL via Prisma, detects practitioner schedule conflicts, and suggests alternative time slots based on availability rules. - WhatsApp Automation via Baileys: Sends appointment confirmations and 24-hour/2-hour reminders, parses patient replies, and escalates crisis keywords to practitioners with emergency line information. - AFIP Electronic Invoicing: Generates CAE-authorized invoices (types A, B, C) through the AFIP SDK based on practitioner and patient fiscal categories, with monthly reporting. - LiveKit Video Consultations: Issues role-based access tokens for virtual sessions and enforces dual consent before recording. - Use Case: A clinic deploys the platform, configures AFIP certificates and WhatsApp sessions, and patients automatically receive confirmations, reminders, and invoices after each session. ## Quick Start Set up the Sesión platform by cloning the repository, configuring the backend and frontend environment variables, and running the Prisma migrations.

Frequently Asked Questions about sesion-mental-health-clinic-platform

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

FAQPage Schema
How do I set up the Sesión clinic platform locally?▼

Clone the repository, run npm install in both the backend and frontend directories, configure the .env files with database, Redis, Anthropic, LiveKit, and AFIP credentials, then run npx prisma migrate deploy and start both development servers.

How does WhatsApp appointment automation work with Baileys?▼

The WhatsAppService initializes a Baileys socket with multi-file auth state, sends confirmation messages when appointments are created, and runs an hourly cron job that sends 24-hour and 2-hour reminders for upcoming scheduled appointments.

How do I generate AFIP-compliant electronic invoices in NestJS?▼

The BillingService uses the @afipsdk/afip.js library with your CUIT certificate and key to call ElectronicBilling.createVoucher, which returns a CAE authorization code stored with the invoice record in PostgreSQL.

Does the platform detect patient crisis messages on WhatsApp?▼

Yes, incoming messages are scanned for crisis keywords such as suicidio or crisis. Matches trigger an immediate alert to the patient's practitioner and an auto-reply with the Argentine suicide prevention line 135.

Can patients record LiveKit video consultation sessions?▼

No, recording requires verified consent from both the patient and the practitioner stored in the recordingConsent table, and only the practitioner role can initiate recording through the startRecording method.

What are the prerequisites for running this platform?▼

You need Node.js 20 or higher, PostgreSQL 15 or higher, Redis 7 or higher, plus API credentials for Anthropic Claude, LiveKit, Stripe or MercadoPago, and AFIP certificates for invoicing.