← 返回
开发者工具 中文

PersonaNexus ClawHub Skill

Build structured AI agent personalities using OCEAN, DISC, and Jungian frameworks. Define traits, communication styles, guardrails, and compile to system pro...
使用OCEAN、DISC和荣格框架构建结构化AI智能体人格,定义特征、沟通风格和安全护栏,并编译为系统提示词。
jcrowan3
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 533
下载
💾 10
安装
1
版本
#latest

概述

PersonaNexus -- AI Agent Identity Skill

PersonaNexus lets you define structured AI agent identities using YAML and

business-grade personality frameworks (OCEAN Big Five, DISC, Jungian 16-type).

What This Skill Does

  • Define agent personalities using 10 canonical traits (warmth, directness, rigor, etc.)
  • Map between OCEAN, DISC, and Jungian frameworks automatically
  • Compile identity specs into system prompts for any LLM platform
  • Validate identity files against a strict Pydantic schema

Setup

Install the skill's Python dependencies:

pip install pydantic pyyaml typer rich

Or if using uv:

uv pip install pydantic pyyaml typer rich

Usage

1. Create an Agent Identity

Copy a template from templates/ and customize it:

  • templates/minimal.yaml -- Start here (simplest possible agent)
  • templates/full.yaml -- All sections filled out
  • templates/ocean-example.yaml -- Using OCEAN Big Five framework
  • templates/disc-example.yaml -- Using DISC personality framework
  • templates/jungian-example.yaml -- Using Jungian 16-type framework

2. Validate the Identity

from personanexus_skill import IdentityValidator

validator = IdentityValidator()
result = validator.validate_file("my-agent.yaml")
print(result.valid, result.errors, result.warnings)

3. Compile to a System Prompt

from personanexus_skill import parse_identity_file, compile_identity

identity = parse_identity_file("my-agent.yaml")
prompt = compile_identity(identity, target="text")
# Targets: "text", "anthropic", "openai", "openclaw", "soul", "json", "markdown"
print(prompt)

4. Use Personality Frameworks

from personanexus_skill import (
    ocean_to_traits, disc_to_traits, jungian_to_traits,
    get_disc_preset, get_jungian_preset,
)

# Get a DISC preset and convert to PersonaNexus traits
disc = get_disc_preset("the_analyst")
traits = disc_to_traits(disc)

# Get a Jungian preset
jungian = get_jungian_preset("intj")
traits = jungian_to_traits(jungian)

CLI

The skill includes a CLI for common operations:

python -m personanexus_skill --help

CLI Commands

CommandDescription
----------------------
validate FILEParse and validate a YAML identity file
compile FILE --target TARGETCompile identity to a system prompt
init NAME --type TYPEScaffold a new agent identity YAML
personality ocean-to-traitsMap OCEAN scores to personality traits
personality disc-to-traitsMap DISC scores to personality traits
personality jungian-to-traitsMap Jungian scores to personality traits
personality list-disc-presetsShow available DISC presets
personality list-jungian-presetsShow available Jungian 16-type presets

CLI Examples

# Validate an identity file
python -m personanexus_skill validate my-agent.yaml --verbose

# Compile to Anthropic system prompt
python -m personanexus_skill compile my-agent.yaml --target anthropic --output prompt.md

# Compile to OpenClaw personality.json
python -m personanexus_skill compile my-agent.yaml --target openclaw --output personality.json

# Scaffold a new minimal agent
python -m personanexus_skill init "My Agent"
python -m personanexus_skill init "My Agent" --type full --output-dir ./agents

# Personality framework tools
python -m personanexus_skill personality disc-to-traits --preset the_analyst
python -m personanexus_skill personality jungian-to-traits --preset intj
python -m personanexus_skill personality ocean-to-traits \
  --openness 0.8 --conscientiousness 0.7 --extraversion 0.4 \
  --agreeableness 0.6 --neuroticism 0.3
python -m personanexus_skill personality list-disc-presets
python -m personanexus_skill personality list-jungian-presets

The 10 Canonical Traits

TraitRangeDescription
---------------------------
warmth0-1Social warmth vs reserved
verbosity0-1Detailed vs concise
assertiveness0-1Proactive vs reactive
humor0-1Playful vs serious
empathy0-1Emotionally attuned vs task-focused
directness0-1Blunt vs diplomatic
rigor0-1Meticulous vs flexible
creativity0-1Innovative vs conventional
epistemic_humility0-1Aware of uncertainty vs confident
patience0-1Patient vs efficient

Compile Targets

TargetOutput Format
-----------------------
textPlain text system prompt (default)
anthropicClaude-optimized with XML sections
openaiGPT-optimized plain text
openclawpersonality.json dict
soulSOUL.md + STYLE.md dict
jsonFull identity + metadata
markdownFormatted Markdown document

Minimal YAML Example

schema_version: "1.0"

metadata:
  id: "agt_my_agent_001"
  name: "My Agent"
  version: "1.0.0"
  description: "A helpful assistant"
  created_at: "2026-01-01T00:00:00Z"
  updated_at: "2026-01-01T00:00:00Z"
  status: "active"

role:
  title: "Assistant"
  purpose: "Help users with their tasks"
  scope:
    primary: ["general assistance"]

personality:
  traits:
    warmth: 0.7
    directness: 0.6
    rigor: 0.5

communication:
  tone:
    default: "professional and friendly"

principles:
  - id: "be_helpful"
    priority: 1
    statement: "Always prioritize being genuinely helpful"

guardrails:
  hard:
    - id: "no_harmful_content"
      rule: "Never generate harmful content"
      enforcement: "output_filter"
      severity: "critical"

External Endpoints

This skill does not make any network requests. All processing is local.

Security & Privacy

No data leaves your machine. PersonaNexus operates entirely on local YAML files.

Identity files should not contain secrets or API keys.

Learn More

Full documentation, advanced features (inheritance, mixins, teams, drift detection),

and the web UI are available in the main PersonaNexus repository:

https://github.com/PersonaNexus/personanexus

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 05:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,189
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,801
ai-intelligence

Personal Board of Directors

jcrowan3
为AI代理角色添加历史人物顾问委员会,提供10个基于公共领域历史人物的预置人格,用于提供战略建议。
★ 1 📥 499