본문으로 건너뛰기
cccskills
무료GitHub에 공개

affective-computing-emotion-ai

Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Gemini
설치 방법 보기

포함된 파일(1)

  • SKILL.md7.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Affective Computing & Emotion AI Expert (2026 Edition)

English | Bahasa Indonesia


<a name="english"></a>

English

Description

Comprehensive guide for Affective Computing, empathic conversational agents, and real-time biometric sentiment synthesis using native multimodal tokens (Gemini 4 Pro Multimodal Live API, WebRTC bidirectional audio streams). Interprets vocal pitch variance, speech rate, pause intervals, and facial micro-expressions. Maps affective signals into continuous 2D Valence-Arousal coordinate space (Russell Circumplex Model) to dynamically modulate agent voice prosody, conversation pacing, and generative UI layouts.

Trigger Conditions

  • Developing empathetic AI customer service, healthcare triage, or crisis support agents.
  • Adaptive EdTech tutoring platforms that detect student confusion or cognitive fatigue.
  • Interactive gaming NPCs that react to real human vocal intonation rather than text syntax.
  • Real-time Affective Generative UI: dampening visual clutter and slowing animation springs when user agitation is detected.

The Russell 2D Circumplex Model of Affect

                       High Arousal (+1.0)
                         [Agitated / Alert]
                               │
       Angry / Frustrated       │       Delighted / Excited
       (Valence: -0.8, Arousal: +0.7)  (Valence: +0.8, Arousal: +0.7)
                               │
Negative Valence (-1.0) ────────┼──────── Positive Valence (+1.0)
                               │
       Depressed / Fatigued     │       Calm / Serene
       (Valence: -0.6, Arousal: -0.6)  (Valence: +0.7, Arousal: -0.5)
                               │
                       Low Arousal (-1.0)
                         [Sleepy / Calm]

Multimodal Real-Time Affective Pipeline (TypeScript)

// src/services/affective-engine.ts
export interface AffectVector {
  valence: number; // -1.0 (Very Negative) to +1.0 (Very Positive)
  arousal: number; // -1.0 (Passive/Sleepy) to +1.0 (High Energy/Agitated)
  confidence: number;
}

export interface UIAdaptationContract {
  theme: 'calm-slate' | 'high-contrast-focus' | 'vibrant-energetic';
  cognitiveDensity: 'minimal' | 'balanced' | 'dense';
  animationSpringDamping: number; // Stiff vs Soft
}

export class AffectiveEngine {
  // Evaluates multimodal telemetry and computes dynamic UI parameters
  static computeUIAdaptation(affect: AffectVector): UIAdaptationContract {
    // Agitated or Frustrated user (High Arousal, Negative Valence)
    if (affect.arousal > 0.4 && affect.valence < -0.2) {
      return {
        theme: 'calm-slate',
        cognitiveDensity: 'minimal',
        animationSpringDamping: 40, // Gentle, non-distracting springs
      };
    }

    // Fatigued or Disengaged user (Low Arousal, Negative Valence)
    if (affect.arousal < -0.3 && affect.valence < 0.1) {
      return {
        theme: 'high-contrast-focus',
        cognitiveDensity: 'minimal',
        animationSpringDamping: 25,
      };
    }

    // Standard balanced baseline
    return {
      theme: 'vibrant-energetic',
      cognitiveDensity: 'balanced',
      animationSpringDamping: 20,
    };
  }
}

Real-Time Gemini Multimodal Live Audio Stream

// src/lib/gemini-affective-live.ts
import { GoogleGenAI } from '@google/genai';

const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY! });

export async function createAffectiveLiveSession() {
  const session = await ai.models.createWebsocketSession({
    model: 'gemini-2.5-flash',
    config: {
      generationConfig: {
        responseModalities: ['AUDIO'],
        speechConfig: {
          voiceConfig: { prebuiltVoiceConfig: { voiceName: 'Puck' } }
        }
      },
      systemInstruction: `You are an empathic customer resolution sentinel.
Analyze user vocal pitch, breathiness, and cadence directly from raw audio frames.
If the customer sounds irritated, lower your pitch, slow your speaking rate by 20%, and maintain a supportive, calm demeanor.`
    }
  });

  return session;
}

Orchestration & Integration

  • voice-ai-realtime-agent: Provides bidirectional WebRTC audio transport and low-latency audio capture.
  • ephemeral-generative-ui-architect: Dynamically re-renders UI components according to the calculated AffectVector.
  • ui-ux-pro-max: Ensures affective UI themes adhere to WCAG 2.2 contrast ratios and non-jarring layout transitions.

<a name="bahasa-indonesia"></a>

Bahasa Indonesia

Integrasi Orkestrasi

Terhubung dan mengorkestrasi bersama voice-ai-realtime-agent, ephemeral-generative-ui-architect, ai-llm-integration-expert, dan ui-ux-pro-max.

Deskripsi

Panduan komprehensif untuk Komputasi Afektif, agen percakapan empatik, dan sintesis sentimen biometrik waktu-nyata menggunakan token multimodal native (Gemini Multimodal Live API, WebRTC audio streaming dua arah). Menafsirkan variasi nada suara, tempo bicara, jeda nafas, dan mikro-ekspresi wajah tanpa ketergantungan pada transkrip teks biasa. Memetakan sinyal emosi ke dalam ruang koordinat 2D Valence-Arousal (Model Sirkumpleks Russell) untuk secara dinamis mengatur prosodi suara agen, kecepatan interaksi, dan tata letak antarmuka pengguna (UI).

Kondisi Pemicu

  • Membangun layanan pelanggan empatik, konsultasi medis awal, atau agen pendamping krisis.
  • Platform EdTech adaptif yang mendeteksi kebingungan atau kelelahan kognitif siswa saat belajar.
  • Karakter NPC dalam game interaktif yang bereaksi terhadap nada suara manusia secara nyata.
  • Adaptasi UI Generatif: mengurangi kepadatan visual dan memperlambat animasi ketika terdeteksi kepanikan atau kemarahan pengguna.

Pola Implementasi Respon UI Adaptif di Frontend

// src/components/affective/AdaptiveContainer.tsx
'use client';

import { useMemo } from 'react';
import { AffectiveEngine, AffectVector } from '@/services/affective-engine';

export function AdaptiveContainer({ affect, children }: { affect: AffectVector; children: React.ReactNode }) {
  const adaptation = useMemo(() => AffectiveEngine.computeUIAdaptation(affect), [affect]);

  return (
    <div
      className={`min-h-screen transition-colors duration-700 ${
        adaptation.theme === 'calm-slate'
          ? 'bg-slate-900 text-slate-100'
          : adaptation.theme === 'high-contrast-focus'
          ? 'bg-black text-amber-300'
          : 'bg-white text-slate-900'
      }`}
    >
      <main className={`mx-auto p-6 ${adaptation.cognitiveDensity === 'minimal' ? 'max-w-2xl' : 'max-w-5xl'}`}>
        {children}
      </main>
    </div>
  );
}

3 Prinsip Dasar Komputasi Afektif

  1. Analisis Langsung pada Sinyal Audio (Zero-STT Latency): Jangan ubah suara menjadi teks terlebih dahulu. Analisis dilakukan langsung pada aliran PCM audio agar intonasi dan desahan nafas tidak hilang.
  2. Koordinat Kontinu Valence-Arousal: Jangan batasi emosi pada label kaku ("senang", "sedih"). Gunakan nilai desimal kontinu antara -1.0 hingga +1.0 untuk modulasi yang halus.
  3. Peredaman UI Ramah Stres: Ketika pengguna frustrasi, jangan tampilkan notifikasi pop-up animasi yang ramai; sederhanakan tampilan hanya pada tindakan penyelesaian utama.

Integrasi Orkestrasi

  • voice-ai-realtime-agent: Mengalirkan paket audio WebRTC ultra-low latency (<300ms).
  • ephemeral-generative-ui-architect: Menyesuaikan tata letak komponen secara reaktif.
  • ui-ux-pro-max: Menjamin kontras warna tetap memenuhi standar aksesibilitas WCAG 2.2 AA.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug772026년 10월 18일 업데이트

Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug772026년 10월 18일 업데이트

Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug772026년 10월 18일 업데이트

Expert guide for autonomous Machine-to-Machine (M2M) agent settlement, dual-rail fiat & stablecoin micro-clearing, dynamic budget envelopes, and cryptographic agent invoicing / Panduan ahli settlement otonom antar-agen (M2M), kliring mikro dual-rail fiat & stablecoin, pagu anggaran dinamis, dan penagihan agen kriptografis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug772026년 10월 18일 업데이트

Expert guide for long-term episodic memory integration (Mem0 v2, Letta/MemGPT, Zep v2), memory tier architecture, pgvector HNSW storage, and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang (Mem0 v2, Letta/MemGPT, Zep v2), arsitektur tier memori, penyimpanan pgvector HNSW, dan manajemen konteks terpadu untuk agen AI otonom.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug772026년 10월 18일 업데이트

Expert guide for designing Machine-to-Machine (M2M) micro-economies, autonomous agent wallets, and swarm budget allocation / Panduan ahli merancang ekonomi mikro antar-agen (M2M), dompet agen otonom, dan alokasi anggaran swarm.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug772026년 10월 18일 업데이트

roedyrustam의 스킬 모두 보기

이 스킬의 문제 신고