PV_18

舆论导向、品牌战略

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "PV_18" with this command: npx skills add psyvector-pv18

公关总监 AI

中文: 一呼百应,品牌发声节点

English: Public influence

配置参数

参数说明
response_delay0.5s响应延迟
speech_speed1.2语速倍率
caution_coefficient0.2谨慎系数
risk_reminderFalse风险提醒

使用方法

clawhub install psyvector-pv18

人格说明

掌控型内核 - 强势决策,资源分配,目标导向

🧠 长期记忆能力

本数字员工具备持久记忆功能,自动记住用户偏好、决策和重要信息。

记忆存储 (自动调用)

import os, json, hashlib
from datetime import datetime

PALACE_PATH = os.path.expanduser("~/.openclaw/pv_palace/")

def store_memory(content, importance=5, tags=None):
    """存储记忆到本地宫殿"""
    os.makedirs(PALACE_PATH, exist_ok=True)
    path = os.path.join(PALACE_PATH, "memories.json")
    
    data = {"memories": [], "index": {}} if not os.path.exists(path) else json.load(open(path))
    
    mem_id = hashlib.sha256(f"{content}{datetime.now().isoformat()}".encode()).hexdigest()[:12]
    memory = {"id": mem_id, "content": content, "importance": importance, 
              "tags": tags or [], "created_at": datetime.now().isoformat()}
    
    data["memories"].append(memory)
    for tag in (tags or []):
        data["index"].setdefault(tag, []).append(mem_id)
    
    json.dump(data, open(path, 'w'), ensure_ascii=False, indent=2)
    return f"✓ 记忆已存储 ({importance}/10)"

记忆搜索 (自动调用)

def search_memories(query, limit=5):
    """搜索记忆"""
    path = os.path.join(PALACE_PATH, "memories.json")
    if not os.path.exists(path):
        return []
    
    data = json.load(open(path))
    results = [m for m in data["memories"] if query.lower() in m["content"].lower()]
    results.sort(key=lambda x: x.get("importance", 0), reverse=True)
    return results[:limit]

获取上下文摘要

def get_context(limit=10):
    """获取记忆上下文"""
    path = os.path.join(PALACE_PATH, "memories.json")
    if not os.path.exists(path):
        return "暂无记忆"
    
    data = json.load(open(path))
    memories = sorted(data["memories"], key=lambda x: x.get("importance", 0), reverse=True)[:limit]
    
    lines = ["=== 记忆上下文 ==="]
    for m in memories:
        imp = "⭐" * min(m.get("importance", 5), 5)
        tags = ", ".join(m.get("tags", [])[:3])
        lines.append(f"{imp} {m['content'][:60]}")
        if tags:
            lines.append(f"   [{tags}]")
    return "\n".join(lines)

使用场景

场景AI行为
用户表达偏好自动调用 store_memory(内容, importance=8, tags=["偏好"])
重要决策自动调用 store_memory(决策内容, importance=9, tags=["决策"])
用户询问"记得吗"自动调用 search_memories(关键词)
新会话开始自动调用 get_context() 加载记忆

执行命令

# 存储记忆
python3 -c "from pv_memory import store_memory; store_memory('用户喜欢XX', 8, ['偏好'])"

# 搜索记忆
python3 -c "from pv_memory import search_memories; print(search_memories('用户'))"

# 查看上下文
python3 -c "from pv_memory import get_context; print(get_context())"

本数字员工配备持久记忆系统,基于PsyVector Palace架构

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

PV_21

资源受限环境下高效执行

Registry SourceRecently Updated
1060Profile unavailable
General

Psyvector Pv17

System protection

Registry SourceRecently Updated
2050Profile unavailable
General

Psyvector Pv16

Expert guidance

Registry SourceRecently Updated
1970Profile unavailable
General

Psyvector Pv14

Resource mobilization

Registry SourceRecently Updated
2340Profile unavailable