sesion-mental-health-saas

Builds a mental health practice platform with scheduling, WhatsApp automation, AFIP billing, and Claude AI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Psychology clinics and independent practitioners in Argentina need to coordinate appointment scheduling, patient messaging, tax-compliant invoicing, and video consultations across disconnected tools, which creates manual overhead and missed reminders. ## Core Features & Use Cases - Appointment Scheduling: NestJS services with Prisma conflict detection create appointments and trigger automated WhatsApp confirmations and 24-hour/2-hour reminders via Baileys. - AFIP Electronic Billing: Generates CAE-authorized invoices (types A, B, C, M) through the AFIP SDK and delivers them to patients over WhatsApp. - Claude AI Clinical Assistance: Routes clinical note summarization and risk assessment to Claude Opus and quick in-session queries to Claude Sonnet. - Use Case: An Argentine psychology clinic deploys the platform so patients receive WhatsApp reminders, join LiveKit video sessions, and get AFIP-compliant invoices with MercadoPago payment options automatically after each appointment. ## Quick Start Ask the agent to set up the Sesión platform by cloning the repository, configuring the environment variables for PostgreSQL, Redis, Anthropic, WhatsApp, LiveKit, and AFIP, then running the Prisma migrations and starting the development servers.

Frequently Asked Questions about sesion-mental-health-saas

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 npm install, copy .env.example to .env, and configure DATABASE_URL, REDIS_URL, ANTHROPIC_API_KEY, LiveKit, and AFIP credentials. Then run npx prisma generate and npx prisma migrate deploy before starting the backend and frontend dev servers.

How to send WhatsApp appointment reminders with Baileys?▼

The WhatsAppService uses Baileys multi-file auth state to connect, then cron jobs query appointments 24 hours and 2 hours ahead and call sendReminder for patients with whatsappOptIn enabled. Patients can reply SI or NO to confirm or cancel.

How does AFIP electronic billing integration work in NestJS?▼

The AfipService uses @afipsdk/afip.js with your CUIT certificate and private key to fetch the last voucher number and create a new invoice via ElectronicBilling.createVoucher. It returns a CAE authorization code stored on the Invoice record.

When should I use Claude Opus versus Sonnet in this platform?▼

Use Claude Opus for deep tasks like clinical note summarization and patient risk analysis that need careful reasoning. Use Claude Sonnet for fast, concise in-session responses where latency matters more than depth.

Does the platform support video consultations?▼

Yes, it uses LiveKit for WebRTC video sessions. The backend generates room access tokens with role-based grants, and a SvelteKit component connects participants with camera, microphone, and mute controls.

What are the prerequisites for running this platform?▼

You need Node.js 18 or higher, PostgreSQL 14 or higher, and Redis 6 or higher. You also need API credentials for Anthropic, LiveKit, Stripe or MercadoPago, and AFIP certificates for production billing.