sesion-clinic-workflow

Implements scheduling, WhatsApp messaging, AFIP invoicing, and video consultations for Argentine psychology clinics.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Psychology clinics in Argentina need to coordinate appointment scheduling, patient communication, tax-compliant invoicing, and telehealth sessions across disconnected tools, which creates manual overhead and compliance risk. ## Core Features & Use Cases - Intelligent Scheduling: NestJS agenda module with conflict detection and available-slot computation, paired with a SvelteKit 5 calendar UI. - WhatsApp Automation: Baileys-based appointment confirmations, reminders, and crisis keyword detection sent directly to patients. - AFIP Electronic Invoicing: Generates CAE-authorized invoices via the AFIP SDK with monthly billing reports per practitioner. - AI Clinical Assistance: Claude Opus and Sonnet models summarize session notes, suggest documentation improvements, and predict therapeutic outcomes. - Video Consultations: LiveKit token generation and a Svelte video room component for secure telehealth sessions. - Use Case: A multi-practitioner clinic books a virtual session, the patient receives a WhatsApp confirmation, joins a LiveKit video call, and the clinic issues an AFIP-compliant invoice with a MercadoPago payment link. ## Quick Start Set up the Sesión clinic workflow platform by cloning the repository, configuring the environment variables for PostgreSQL, Redis, Anthropic, WhatsApp, AFIP, and LiveKit, then running the Prisma migrations and starting the NestJS backend and SvelteKit frontend.

Frequently Asked Questions about sesion-clinic-workflow

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

FAQPage Schema
How do I send WhatsApp appointment reminders from a NestJS backend?▼

Use the Baileys library (@whiskeysockets/baileys) to create a WhatsApp socket with multi-file auth state, then call sendMessage with the patient's phone JID. The service handles reconnection on disconnect and formats confirmation and reminder messages in Spanish.

How to generate AFIP electronic invoices in Node.js?▼

Use the @afipsdk/afip.js package with your CUIT, certificate, and private key to call ElectronicBilling.createVoucher. The service fetches the last voucher number, submits invoice data, and stores the returned CAE authorization code in the database.

Does Baileys WhatsApp integration require the official Business API?▼

No, Baileys connects directly to WhatsApp Web's protocol using QR code authentication and multi-file session state, without the official Business API. Sessions persist in a local directory and reconnect automatically unless logged out.

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

Yes, the Anthropic SDK accepts Spanish prompts instructing Claude Opus or Sonnet to structure session notes into consultation motive, observations, interventions, and next steps. The generated summary is stored back on the session record via Prisma.

Why does LiveKit video room connection fail in SvelteKit?▼

Connection fails when the access token is missing room join grants, the WebSocket URL is incorrect, or the token identity lacks publish permissions. Generate tokens server-side with livekit-server-sdk and pass the correct LIVEKIT_WS_URL to the client.

What are the limitations of Baileys for clinic messaging?▼

Baileys is an unofficial WhatsApp Web client, so sessions can be logged out or banned, and it lacks delivery guarantees of the official API. Clinics with strict compliance needs should evaluate the official WhatsApp Business Platform instead.