sesion-mental-health-platform

Implements appointment scheduling, WhatsApp automation, AFIP invoicing, and video consultations for psychology clinics.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Psychology practitioners in Argentina need to coordinate appointment scheduling, patient reminders, legally compliant electronic invoicing, and remote video sessions across disconnected tools, which creates manual overhead and missed appointments. ## Core Features & Use Cases - Appointment Scheduling with Conflict Detection: NestJS services validate time-slot conflicts in PostgreSQL via Prisma and trigger WhatsApp confirmations automatically. - WhatsApp Automation via Baileys: Sends 24-hour reminders, processes confirmation replies, and detects crisis keywords to alert practitioners. - AFIP Electronic Invoicing: Generates Factura B vouchers with CAE authorization through the AFIP SDK for Argentine tax compliance. - Video Consultations and AI Notes: LiveKit rooms host remote sessions while Claude Opus and Sonnet models summarize clinical notes in Spanish. - Use Case: A clinic onboards a new patient, books a virtual session, sends an automated WhatsApp reminder, conducts the LiveKit video call, generates an AI clinical summary, and issues an AFIP-compliant invoice in one workflow. ## Quick Start Set up the Sesión platform by cloning the repository, configuring the environment variables for PostgreSQL, Redis, Anthropic, LiveKit, and AFIP, then running the Prisma migrations and starting the development servers.

Frequently Asked Questions about sesion-mental-health-platform

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

FAQPage Schema
How do I set up the Sesión mental health platform?▼

Clone the repository, run pnpm install, copy .env.example to .env, and configure DATABASE_URL, REDIS_URL, ANTHROPIC_API_KEY, LiveKit, and AFIP credentials. Then run pnpm prisma migrate dev and start the servers with pnpm dev:full.

How to send automated WhatsApp appointment reminders with Baileys?▼

The WhatsAppService connects via Baileys using multi-file auth state, and a NestJS cron job queries appointments 24 hours ahead. It sends formatted Spanish reminder messages and records each message in the WhatsAppMessage table.

Does the platform support AFIP electronic invoicing in Argentina?▼

Yes, the AfipService uses @afipsdk/afip.js to create Factura B vouchers with CAE authorization. It fetches the last voucher number per punto de venta, submits invoice data, and stores the CAE and expiration date in the Invoice model.

Can I use Claude AI to summarize clinical session notes?▼

The ClaudeService sends session notes to Claude Opus with a clinical psychology system prompt and returns a structured summary covering consultation motive, observations, interventions, and treatment plan. Claude Sonnet handles faster chat-style queries.

Why does the WhatsApp connection keep disconnecting?▼

Baileys sessions close when credentials expire or the linked device logs out. The service checks DisconnectReason.loggedOut and automatically reconnects unless logged out, in which case you must rescan the QR code.

What are the prerequisites for running this platform?▼

You need Node.js 18 or higher, pnpm 8 or higher, PostgreSQL 14 or higher, and Redis 7 or higher. You also need API credentials for Anthropic, LiveKit, MercadoPago or Stripe, and an AFIP certificate with CUIT.