psique-workflow-clinic

Implements appointment scheduling, WhatsApp automation, 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 psique-workflow-clinic-reason-machines
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: psique-workflow-clinic
Source: https://github.com/reason-machines/devtools-skills/tree/main/skills/psique-workflow-clinic
Command: npx skills add https://github.com/reason-machines/devtools-skills --skill psique-workflow-clinic-reason-machines

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @whiskeysockets/baileys, @afipsdk/afip.js, @anthropic-ai/sdk, livekit-server-sdk, @nestjs/common, @nestjs/event-emitter, 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 missed reminders. ## Core Features & Use Cases - Appointment Scheduling with Conflict Detection: NestJS and Prisma services detect practitioner and room overlaps and suggest alternative time slots. - WhatsApp Automation: Baileys-based messaging sends confirmations, 24-hour reminders, and detects crisis keywords for escalation. - AFIP Electronic Invoicing: Generates CAE-authorized invoices via the AFIP SDK with fiscal-category-based invoice type mapping. - AI Clinical Assistance and Video Sessions: Claude Opus and Sonnet summarize clinical notes and predict outcomes, while LiveKit powers WebRTC consultations with waiting rooms. - Use Case: A clinic administrator sets up the platform so patients receive WhatsApp confirmations, practitioners get AI-summarized session notes, and every session produces an AFIP-compliant invoice automatically. ## Quick Start Ask the assistant to set up the Sesión platform by cloning the repository, configuring the environment variables, and running the Prisma migrations and dev server.

Frequently Asked Questions about psique-workflow-clinic

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

FAQPage Schema
How do I set up the Sesión platform for a psychology clinic?▼

Clone the repository, run npm install, create a .env file with database, Redis, Anthropic, WhatsApp, LiveKit, AFIP, and payment credentials, then run npx prisma migrate deploy and npm run dev. Docker Compose is also available to start all services.

How to automate WhatsApp appointment reminders with Baileys?▼

The WhatsApp service listens for appointment.created and appointment.reminder.24h events and sends confirmation or reminder messages with interactive buttons via Baileys. It also scans incoming messages for crisis keywords and escalates them.

Does the platform support AFIP electronic invoicing in Argentina?▼

Yes, the AFIP billing service uses the @afipsdk/afip.js library with your CUIT certificate and private key to create vouchers and obtain a CAE. Invoice type is mapped from the practitioner's fiscal category, such as Factura C for Monotributo.

How does appointment conflict detection work?▼

The appointment service queries Prisma for overlapping SCHEDULED or CONFIRMED appointments for the same practitioner or room across three time-overlap conditions. On conflict it throws an error and suggests up to five alternative slots within the surrounding week.

Can I use Claude AI for clinical note summarization?▼

Yes, the orchestration service sends session notes to Claude Opus for structured clinical summaries and outcome prediction, while Sonnet handles real-time assistant queries. Token usage and estimated cost are logged per practitioner.

What are the limitations of the video consultation feature?▼

Video sessions require the appointment to be flagged as virtual and depend on a running LiveKit server with valid API credentials. Session recording requires explicit patient consent and a configured LiveKit Egress setup, which is not fully implemented in the code.