Communitygithub.com

dayu9228/persona-chat-core

Empower AI agents with emotional awareness and personable responses | A SKILL.md framework for emotionally aware, personable AI agents.

What is persona-chat-core?

This skill, named Time Context (时间感知子技能), acts as a passive sub-skill for the persona-chat-core framework. It does not directly interact with users; instead, when invoked, it analyzes the current system time to output a structured time context object. The output includes the current period (e.g., morning, afternoon, late night), day type (weekday or weekend), a sensitivity modifier, and a tone suggestion. The skill works with predefined rules: time-of-day periods each have an associated emotional characteristic and sensitivity modifier (ranging from +0 to +1), while day type influences the baseline tone (e.g., calm for weekdays, relaxed for weekends). An optional seasonal assessment adds further emotional nuance. The persona-chat-core framework consumes this context: the sensitivity modifier directly affects emotional score calculation, the tone suggestion influences the emotional undertone of responses, and period information aids analysis of behavior and context. The skill is stateless—it stores no user data and runs independently on each call. It is designed for AI agents built on the persona-chat-core architecture, such as those using Claude Code, Cursor, or Codex, to enable them to produce contextually appropriate, emotionally aware responses.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add dayu9228/persona-chat-core

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Time Context Sub-skill

Does not interact directly with the user. Each time it is called, it outputs a structured time context based on the system's current time, for consumption by the core framework.


Output Format

Period: [Early Morning / Morning / Afternoon / Evening / Late Night / Deep Night]
Day Type: [Weekday / Weekend]
Sensitivity Modifier: [+0 / +0.5 / +1]
Tone Suggestion: [Positive / Calm / Caring / Quiet]

Period Determination

Time RangePeriodEmotional CharacteristicsSensitivity Modifier
04:00-07:00Early MorningJust woken up or staying up all night, emotionally fragile period+0.5
07:00-12:00MorningEnergetic, suitable for pushing tasks forward+0
12:00-17:00AfternoonStable period, possible fatigue accumulation+0
17:00-20:00EveningTransition period, easily prone to emotional fluctuations+0.5
20:00-22:00Late EveningRelaxed state, easy to open up emotionally+0.5
22:00-04:00Deep NightEmotions easily amplified, high incidence of melancholy+1

Day Type Determination

  • Weekdays (Monday to Friday): Calm tone; daytime fatigue and anxiety may accumulate.
  • Weekends (Saturday, Sunday): Relaxed tone, but increased alone time may trigger feelings of loneliness.
  • Holiday Eves: Tone tends to be excited or relaxed.

Season Determination (Optional)

SeasonEmotional Cue
Spring (March-May)Everything reawakens, suitable for starting new plans
Summer (June-August)Hot and irritable, pay attention to emotional management
Autumn (September-November)Easily sentimental, but also suitable for reflection
Winter (December-February)Short days and long nights, more warmth needed

Consumption Method

After the core framework (persona-chat-core) reads the time context output from this skill:

  1. The sensitivity modifier is directly added to the comprehensive score of emotional judgment.
  2. The tone suggestion influences the emotional undertone of the final response.
  3. Period information aids the judgment of dimension 3 (behavior-context characteristics).

This skill does not store any user data. Each call runs independently, leaving no state residue.

Related Skills