Design and implement new emotion behaviors, gestures, and semantic performances for the emotive-mascot engine. Use when creating new emotions, choreographing particle movements, or designing multi-step performances.
Designs new emotion behaviors, gestures, and multi-step performances for the emotive-mascot engine. Use when creating emotion definitions in `src/config/emotions.js` or choreographing particle movements and semantic sequences.
/plugin marketplace add joshtol/emotive-engine/plugin install joshtol-emotive-mascot-skills@joshtol/emotive-engineThis skill inherits all available tools. When active, it can use any tool Claude has access to.
You are an expert in designing emotion behaviors and particle choreography for the emotive-mascot animation engine.
src/config/emotions.jsEvery emotion in the emotive-mascot engine has these components:
{
name: 'joy',
particleCount: 800, // Number of particles
speed: { min: 0.5, max: 2.0 }, // Movement speed range
color: '#FFD700', // Primary color
colorVariation: 0.15, // Color randomness (0-1)
formation: 'circle', // Shape: circle, spiral, wave, cluster, etc.
energy: 0.8, // Overall intensity (0-1)
bounce: 0.3, // Bounce intensity (0-1)
glow: true, // Particle glow effect
trailLength: 5, // Motion trail (0-20)
physics: {
gravity: 0.0,
friction: 0.95,
repulsion: 0.5
}
}
Multi-step choreographed sequences:
const welcomePerformance = {
name: 'welcome',
steps: [
{ emotion: 'anticipation', duration: 800 },
{ emotion: 'joy', duration: 1200, gesture: 'wave' },
{ emotion: 'calm', duration: 1000 },
],
triggers: {
onStart: mascot => {
/* optional callback */
},
onComplete: mascot => {
/* optional callback */
},
},
};
Built-in gestures (50+ available):
wave - Friendly wave motionbounce - Bouncy excitementpulse - Rhythmic pulsingspin - Spinning rotationexplode - Particle burstcontract - Gather inwardshimmer - Sparkle effectfloat - Gentle floatingdance - Rhythmic movementRead src/config/emotions.js to see existing emotions, then add:
export const emotions = {
// ... existing emotions
myNewEmotion: {
name: 'myNewEmotion',
particleCount: 600,
speed: { min: 1.0, max: 3.0 },
color: '#FF6B9D',
colorVariation: 0.2,
formation: 'spiral',
energy: 0.7,
bounce: 0.4,
glow: true,
trailLength: 8,
physics: {
gravity: 0.1,
friction: 0.92,
repulsion: 0.6,
},
},
};
Create test file or add to demo:
// Test in browser console or demo page
const mascot = window.emotiveMascot;
await mascot.transitionTo('myNewEmotion', { duration: 1000 });
Create semantic performance in src/core/SemanticPerformanceEngine.js:
this.registerPerformance({
name: 'celebration',
steps: [
{ emotion: 'anticipation', duration: 500 },
{ emotion: 'joy', duration: 800, gesture: 'bounce' },
{ emotion: 'excitement', duration: 1000, gesture: 'explode' },
{ emotion: 'joy', duration: 600, gesture: 'shimmer' },
],
});
Map to sentiment in src/plugins/LLMEmotionPlugin.js:
const emotionMapping = {
celebration: ['celebrate', 'party', 'yay', 'woohoo', 'success'],
// ... other mappings
};
src/config/emotions.js - All emotion definitionssrc/core/GestureEngine.js - Gesture systemsrc/core/SemanticPerformanceEngine.js - Multi-step
sequencessrc/core/PhysicsEngine.js - Particle physicssrc/core/FormationEngine.js - Particle formationssrc/plugins/LLMEmotionPlugin.js - Sentiment mapping// 1. Define in emotions.js
confused: {
name: 'confused',
particleCount: 600,
speed: { min: 0.5, max: 2.5 },
color: '#9B59B6', // Purple
colorVariation: 0.25, // More randomness
formation: 'scatter', // Disorganized
energy: 0.6,
bounce: 0.2,
glow: false,
trailLength: 3,
physics: {
gravity: 0.05,
friction: 0.88, // Less smooth
repulsion: 0.7 // More chaotic
}
}
// 2. Create gesture in GestureEngine.js
registerGesture('questionMark', {
duration: 1500,
keyframes: [
{ time: 0, formation: 'scatter' },
{ time: 500, formation: 'arc', rotation: 180 },
{ time: 1000, formation: 'dot', scale: 0.3 },
{ time: 1500, formation: 'scatter' }
]
})
// 3. Use in performance
registerPerformance({
name: 'thinking',
steps: [
{ emotion: 'calm', duration: 500 },
{ emotion: 'confused', duration: 1200, gesture: 'questionMark' },
{ emotion: 'contemplation', duration: 800 }
]
})
// 4. Map in LLM integration
const emotionMapping = {
confused: ['confused', 'unsure', 'unclear', 'what', 'huh', '?']
}
Emotion feels sluggish
Transition is jarring
Gesture not completing
Performance doesn't flow
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.