スキル一覧に戻る
dragonbornjedi-code

emotion-engine

by dragonbornjedi-code

Complete AI-powered life operating system: gamified homeschooling, smart home automation, digital product empire, AI receptionist SaaS, and multi-AI orchestration

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: emotion-engine description: Manage emotion detection, LED responses, and mood-based automations for Ezra. Use when working on emotional regulation features, smart home responses, or the Chaos Orb. allowed-tools: Read, Edit, Grep, Glob

Emotion Engine Skill

Emotion States

StateColorResponse
happyorangeEnergy quests, upbeat
calmblueFocus quests, peaceful
anxiouspurpleComfort, breathing exercises
frustratedredBreak, encouragement
withdrawnpurpleGentle engagement
peakgoldCelebrate, challenge quests
distressedredImmediate support, alert parent
encouragedgreenPositive reinforcement

LED Color Mapping

colors = {
    'happy': 'orange',
    'calm': 'blue',
    'anxious': 'purple',
    'frustrated': 'red',
    'withdrawn': 'purple',
    'peak': 'gold',
    'distressed': 'red',
    'encouraged': 'green'
}

Response Rules

Immediate Responses

  1. Emotion change → LED color change (2 second transition)
  2. Peak performance → Rainbow celebration + TTS

Escalation Rules

  1. Negative emotion → Support lights + optional TTS
  2. Negative 30+ minutes → Alert parent via SMS
  3. Distressed → Immediate parent alert

Context Modifiers

  • Morning + negative → Extra encouragement
  • Bedtime + negative → Calming protocol (dim orange)
  • Home alone + low energy → Gentle engagement
  • With parent + frustrated → Let parent handle

Chaos Orb (Daily Modifier)

Calculates 0.8x to 1.2x multiplier for XP:

Base: 1.0 (40%)
Mood Factor: confidence + valence (30%)
Moon Phase: new=0.9, full=1.1 (20%)
Streak Bonus: 0% streak=0.8, 100%=1.2 (10%)
Random Nudge: ±0.05

Runs daily at 6 AM via cron.

Key Files

  • ~/repos/phoenix-forge-ecosystem/9_Documentation/emotion_engine_rules.yaml
  • ~/repos/phoenix-forge-ecosystem/2_SmartHome/scripts/chaos_orb.py

Home Assistant Entities

  • input_select.ezra_emotion
  • input_number.daily_quest_count
  • input_number.daily_xp_total
  • input_number.current_streak
  • light.ezra_room

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です