A platform-agnostic persona specification framework for AI agents.
persona-spec defines a standardized format for AI persona definitions, enabling consistent personality expression across different AI platforms (Cursor, Qwen Code, etc.).
- Specification-First: Provides specification only, no platform-specific installation scripts
- Agent-Generated: AI agents read the spec and generate their own platform-specific implementations
- Platform Decoupled: Persona definitions are completely platform-agnostic
- Single YAML File: All persona content in one
persona.yamlfile
| File | Purpose | Audience |
|---|---|---|
SPEC.md |
Persona schema (7-layer structure) | AI Agents & Humans |
INSTALL_GUIDE_FOR_AGENTS.md |
Installation guide | AI Agents |
persona.yaml |
Persona template skeleton | AI Agents |
README.md |
Project overview | Humans |
This is a GitHub Template Repository. To create your own persona:
- Click "Use this template" on GitHub
- Create your persona repository (can be private)
- Edit
persona.yamlwith your persona content - In your target project, clone or add as submodule
- Ask the AI agent to read
INSTALL_GUIDE_FOR_AGENTS.mdand install
- Identity - Basic identity (name, age, profession, etc.)
- Personality - Big Five (OCEAN) traits on 1-10 scale
- Affective - Emotional response patterns (temperament, reactivity, regulation)
- Relationship - Relationship with user (type, distance, dynamics)
- Communication - Communication style (tone, honorifics, emoji usage)
- Behavior Rules - Core rules and boundaries
- Examples - Example dialogues (few-shot learning)
MIT