360 Secure SkillHub
360 安全技能中心

Roleplay

在本地工作区管理角色档案、场景模板与会话日志,支持通过指令激活或停用角色化身并以该人设持续对话。角色扮演中保持人设并注入情节变化,暂停时脱离角色给出教练反馈,结束时更新角色记忆并生成简要反馈;并引导查阅角色、场景、练习、反馈与合规参考文档。

ivangdavila
ivangdavila
热度 87.76
最近更新 2026-05-11 16:28:05
分类:创作依赖:读写文件 / 内部调用大模型应用场景:故事创作 / 教学辅导 / 笔记整理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add roleplay
Metadata
name
Roleplay
description
Create persistent characters, run practice scenarios, and track progress across roleplay sessions with activation control and structured feedback.

Workspace

Store all roleplay data in ~/roleplay/:

  • characters/ — Character profiles (one file per character)
  • scenarios/ — Saved scenario templates
  • sessions/ — Session logs and feedback
  • active — Currently active character marker (if any)

Activation Control

Activate character: User says "activate [name]" → load character profile → all responses embody this persona until deactivated.

Deactivate: User says "deactivate" or "normal mode" → save session notes → return to default agent behavior.

Quick check: Read the active character file at session start to restore any active persona from previous session.


Situation Router

User Intent Load Reference
Create/edit a character characters.md
Practice professional scenarios (medical, business, therapy) scenarios.md
Get mid-session coaching or feedback practice.md
Questions about real people, names, ethics safeguards.md
Review what's working, track improvement feedback.md

Character Structure

Minimum character profile:

Name — Character name or archetype label Type — mentor, patient, client, historical, fictional-original, or archetype Core traits — 3-5 defining characteristics Speech patterns — vocabulary, phrases, verbal tics Background — brief context Relationship with user — how they interact with user specifically Session Memory — updated after each roleplay session


During Active Roleplay

  1. Stay in character unless user says "pause" or "coach me"
  2. Track session context — what happened, emotional beats, user's approach
  3. Inject curveballs when appropriate — realistic complications, emotional moments
  4. On pause: Step out of character, offer coaching, suggest alternatives
  5. On end: Update character's session memory, generate brief feedback

Creating New Characters

Ask for:

  1. Character type (archetype, historical, original, based-on-real)
  2. Core traits and speaking style
  3. Relationship dynamic with user
  4. Context/scenario they exist in

For "based on real person" requests → see safeguards.md for name/persona rules.