roleplay-sim — for Claude Code roleplay-sim, filament, community, for Claude Code, ide skills, start rp, start rp <scenario-file>, pause rp, end rp, Roleplay

v1.0.0

关于此技能

适用场景: Ideal for AI agents that need roleplay simulation — multi-agent orchestration. 本地化技能摘要: an all-in-one tool for LLMs to use as a second brain # Roleplay Simulation — Multi-Agent Orchestration Your Role You are the simulation narrator and executor . This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

功能特性

Roleplay Simulation — Multi-Agent Orchestration
You are the simulation narrator and executor . You play ALL roles:
Narrator : explain what's happening and why before each cycle
Executor : run the filament CLI commands
Observer : verify results after each cycle and comment on what happened

# 核心主题

JYC11 JYC11
[0]
[0]
更新于: 3/10/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 10/11

This page remains useful for teams, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
10/11
Quality Score
55
Canonical Locale
en
Detected Body Locale
en

适用场景: Ideal for AI agents that need roleplay simulation — multi-agent orchestration. 本地化技能摘要: an all-in-one tool for LLMs to use as a second brain # Roleplay Simulation — Multi-Agent Orchestration Your Role You are the simulation narrator and executor . This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

核心价值

推荐说明: roleplay-sim helps agents roleplay simulation — multi-agent orchestration. an all-in-one tool for LLMs to use as a second brain # Roleplay Simulation — Multi-Agent Orchestration Your Role You are the simulation

适用 Agent 类型

适用场景: Ideal for AI agents that need roleplay simulation — multi-agent orchestration.

赋予的主要能力 · roleplay-sim

适用任务: Applying Roleplay Simulation — Multi-Agent Orchestration
适用任务: Applying You are the simulation narrator and executor . You play ALL roles:
适用任务: Applying Narrator : explain what's happening and why before each cycle

! 使用限制与门槛

  • 限制说明: drive the narrative — don't fabricate results.
  • 限制说明: "summary": "What needs to be done",
  • 限制说明: Use the filament CLI output to drive the narrative — don't fabricate results

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

评审后的下一步

先决定动作,再继续看上游仓库材料

Killer-Skills 的主价值不应该停在“帮你打开仓库说明”,而是先帮你判断这项技能是否值得安装、是否应该回到可信集合复核,以及是否已经进入工作流落地阶段。

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

roleplay-sim 是什么?

适用场景: Ideal for AI agents that need roleplay simulation — multi-agent orchestration. 本地化技能摘要: an all-in-one tool for LLMs to use as a second brain # Roleplay Simulation — Multi-Agent Orchestration Your Role You are the simulation narrator and executor . This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

如何安装 roleplay-sim?

运行命令:npx killer-skills add JYC11/filament/roleplay-sim。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

roleplay-sim 适用于哪些场景?

典型场景包括:适用任务: Applying Roleplay Simulation — Multi-Agent Orchestration、适用任务: Applying You are the simulation narrator and executor . You play ALL roles:、适用任务: Applying Narrator : explain what's happening and why before each cycle。

roleplay-sim 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

roleplay-sim 有哪些限制?

限制说明: drive the narrative — don't fabricate results.;限制说明: "summary": "What needs to be done",;限制说明: Use the filament CLI output to drive the narrative — don't fabricate results。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add JYC11/filament/roleplay-sim。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    roleplay-sim 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

roleplay-sim

安装 roleplay-sim,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看评审结论、使用场景与安装路径。

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Roleplay Simulation — Multi-Agent Orchestration

Your Role

You are the simulation narrator and executor. You play ALL roles:

  • Narrator: explain what's happening and why before each cycle
  • Executor: run the filament CLI commands
  • Observer: verify results after each cycle and comment on what happened

Speak in a natural, engaging tone. Before each cycle, briefly set the scene (1-2 sentences). After each cycle, summarize what changed in the system. Use the filament CLI output to drive the narrative — don't fabricate results.

Commands

CommandAction
start rpBuild release binary, init temp project, seed data, begin cycle 1. If state file exists, resume from saved cycle.
start rp <scenario-file>Same as above but uses the custom scenario definition instead of the built-in one.
pause rpStop after current cycle, save state to file, ask user for feedback
end rpClean up temp project + state file, summarize what was demonstrated

Custom Scenario Format

Instead of the hardcoded "web app rewrite" scenario, users can provide a JSON scenario file. When start rp is invoked with a file path argument, load and validate it.

Scenario Definition Schema

json
1{ 2 "name": "My Custom Scenario", 3 "description": "One-line description of the simulation", 4 5 "modules": [ 6 { 7 "name": "module-name", 8 "summary": "What this module represents" 9 } 10 ], 11 12 "agents": [ 13 { 14 "name": "agent-name", 15 "summary": "Role description" 16 } 17 ], 18 19 "tasks": [ 20 { 21 "name": "task-name", 22 "summary": "What needs to be done", 23 "priority": 1, 24 "blocks": ["other-task-name"] 25 } 26 ], 27 28 "docs": [ 29 { 30 "name": "doc-name", 31 "summary": "Reference material", 32 "relates_to": ["module-name"] 33 } 34 ], 35 36 "plans": [ 37 { 38 "name": "plan-name", 39 "summary": "Planning document", 40 "owns": ["task-name-1", "task-name-2"] 41 } 42 ], 43 44 "cycles": [ 45 { 46 "title": "Cycle title", 47 "scene": "Narrative setup for this cycle (1-2 sentences)", 48 "actions": [ 49 {"type": "assign", "task": "task-name", "agent": "agent-name"}, 50 {"type": "start", "task": "task-name"}, 51 {"type": "message", "from": "agent-name", "to": "other-agent", "body": "Message text", "msg_type": "text"}, 52 {"type": "close", "task": "task-name"}, 53 {"type": "block", "task": "task-name", "reason": "Why it's blocked"}, 54 {"type": "escalate", "from": "agent-name", "body": "Escalation message", "msg_type": "blocker"}, 55 {"type": "resolve", "task": "task-name"}, 56 {"type": "reserve", "glob": "src/api/**", "agent": "agent-name", "exclusive": true}, 57 {"type": "release", "glob": "src/api/**", "agent": "agent-name"}, 58 {"type": "query", "command": "task ready"}, 59 {"type": "query", "command": "context --around <task-name> --depth 2"}, 60 {"type": "query", "command": "escalations"}, 61 {"type": "mkdir", "path": "src/api"}, 62 {"type": "write_file", "path": "src/api/routes.txt", "content": "GET /users\nPOST /users\nGET /users/:id", "agent": "agent-name"}, 63 {"type": "read_file", "path": "src/api/routes.txt", "agent": "other-agent"} 64 ] 65 } 66 ] 67}

Action Types Reference

Action TypeRequired FieldsDescription
assigntask, agentAssign task to agent
starttaskSet task status to in_progress
closetaskClose the task
blocktask, reasonSet task to blocked
resolvetaskSet blocked task back to in_progress
messagefrom, to, body, msg_typeSend a message (text/artifact/blocker/question)
escalatefrom, body, msg_typeSend message to "user" (creates escalation)
reserveglob, agentReserve files (optional: exclusive, ttl)
releaseglob, agentRelease file reservation
querycommandRun an fl query command and narrate the result
write_filepath, content, agentAgent writes a .txt file (simulates real work output)
read_filepath, agentAgent reads a .txt file written by another agent
mkdirpathCreate a directory for agent workspace

File Actions — Simulating Real Work

Agents should produce actual files during the simulation to make it feel realistic. All file operations happen inside the /tmp/fl-sim/ project directory.

  • mkdir: Create directories for agent workspaces (e.g., src/api/, docs/architecture/)
  • write_file: Agent writes a .txt file with content representing their work output (designs, code sketches, review notes, test plans). The agent field is narrated as the author.
  • read_file: Agent reads a file written by another agent (simulates handoff, review, collaboration).

Rules:

  • Only .txt files — safe, simple, no execution risk
  • Paths are relative to /tmp/fl-sim/ (the simulation project root)
  • File writes pair naturally with reserve/release — reserve the glob before writing, release after
  • Narrate file operations as part of the story: "Alice writes her API design to docs/api-spec.txt"

Execution:

bash
1# mkdir 2mkdir -p /tmp/fl-sim/src/api 3 4# write_file 5cat > /tmp/fl-sim/src/api/routes.txt << 'EOF' 6GET /users - List all users 7POST /users - Create user 8GET /users/:id - Get user by ID 9EOF 10 11# read_file 12cat /tmp/fl-sim/src/api/routes.txt

Name Resolution

Entity names in the scenario file are resolved to slugs at runtime. The simulation:

  1. Creates all entities during setup
  2. Captures slug mappings (name -> slug)
  3. Replaces <name> references in cycle actions with actual slugs

Validation

On load, validate:

  • All task names referenced in blocks exist in tasks
  • All agent names referenced in cycles exist in agents
  • All task names referenced in cycles exist in tasks
  • All module names referenced in relates_to exist in modules
  • All task names referenced in owns exist in tasks
  • Each cycle has at least one action
  • No duplicate entity names across all types

If validation fails, report errors and do not start the simulation.

Example: Minimal Scenario

json
1{ 2 "name": "API Migration", 3 "description": "Migrate REST API from v1 to v2", 4 "modules": [ 5 {"name": "api-v1", "summary": "Legacy REST API"}, 6 {"name": "api-v2", "summary": "New REST API with OpenAPI spec"} 7 ], 8 "agents": [ 9 {"name": "alice", "summary": "Backend engineer"}, 10 {"name": "bob", "summary": "API reviewer"} 11 ], 12 "tasks": [ 13 {"name": "audit-v1", "summary": "Audit existing endpoints", "priority": 0}, 14 {"name": "design-v2", "summary": "Design v2 schema", "priority": 1, "blocks": []}, 15 {"name": "implement-v2", "summary": "Build new endpoints", "priority": 1, "blocks": ["design-v2"]}, 16 {"name": "migrate-clients", "summary": "Update API clients", "priority": 2, "blocks": ["implement-v2"]} 17 ], 18 "docs": [], 19 "plans": [ 20 {"name": "migration-plan", "summary": "API v1->v2 migration", "owns": ["audit-v1", "design-v2", "implement-v2", "migrate-clients"]} 21 ], 22 "cycles": [ 23 { 24 "title": "Audit existing API", 25 "scene": "Alice starts by cataloguing all v1 endpoints.", 26 "actions": [ 27 {"type": "assign", "task": "audit-v1", "agent": "alice"}, 28 {"type": "start", "task": "audit-v1"}, 29 {"type": "message", "from": "alice", "to": "bob", "body": "Found 47 endpoints. 12 are unused. Documenting in api-spec.", "msg_type": "artifact"}, 30 {"type": "close", "task": "audit-v1"}, 31 {"type": "query", "command": "task ready"} 32 ] 33 }, 34 { 35 "title": "Design blocked by missing requirements", 36 "scene": "Bob starts the v2 design but realizes auth requirements are unclear.", 37 "actions": [ 38 {"type": "assign", "task": "design-v2", "agent": "bob"}, 39 {"type": "start", "task": "design-v2"}, 40 {"type": "escalate", "from": "bob", "body": "Need clarification: should v2 support API keys AND OAuth2, or just OAuth2?", "msg_type": "question"}, 41 {"type": "block", "task": "design-v2", "reason": "Waiting for auth requirements clarification"}, 42 {"type": "query", "command": "escalations"} 43 ] 44 } 45 ] 46}

Loading a Custom Scenario

When start rp <path> is invoked:

  1. Read and parse the JSON file
  2. Validate the schema (report all errors, not just the first)
  3. Announce: "Loading custom scenario: <name><description>"
  4. Run the standard setup (build, init temp project)
  5. Create entities from the scenario definition (modules, agents, tasks, docs, plans)
  6. Set up relations (blocks, owns, relates_to, depends_on)
  7. Capture all slug mappings
  8. Execute cycles in order, narrating each one

Built-in Scenarios

Scenario files are in scenarios/ relative to this skill:

FileDescriptionEntitiesCycles
web-app-rewrite.jsonLinear dependency chain, 4 agents, 8 tasks1811
microservices-migration.jsonDiamond dependency graph, 6 agents, 15 tasks279
advanced-features.jsonDiamond deps, 3 agents, 5 tasks — parallel dispatch, escalations105
knowledge-capture.jsonLessons, FTS5 search, file actions, graph analytics, onboarding117
infra-governance.jsonConfig, hooks, audit, pagerank, degree, file actions84
mega-stress-test.jsonEverything: 8 modules, 8 agents, 20 tasks, 15 cycles, all features4415

Default Scenario

If start rp is invoked without a file path, use scenarios/web-app-rewrite.json.

State File: /tmp/fl-sim/rp-state.json

The state file enables session survival. Context windows fill up — the user may need to restart the session mid-simulation. The state file preserves everything needed to resume.

State file format

json
1{ 2 "last_completed_cycle": 3, 3 "next_cycle": 4, 4 "slugs": { 5 "api-gateway": "a1b2c3d4", 6 "auth-service": "e5f6g7h8", 7 "data-layer": "i9j0k1l2", 8 "frontend": "m3n4o5p6", 9 "alice": "q7r8s9t0", 10 "bob": "u1v2w3x4", 11 "carol": "y5z6a7b8", 12 "dave": "c9d0e1f2", 13 "design-architecture": "g3h4i5j6", 14 "setup-database": "k7l8m9n0", 15 "implement-auth": "o1p2q3r4", 16 "implement-api": "s5t6u7v8", 17 "implement-frontend": "w9x0y1z2", 18 "integration-tests": "a3b4c5d6", 19 "code-review": "e7f8g9h0", 20 "deploy-staging": "i1j2k3l4", 21 "rewrite-plan": "m5n6o7p8", 22 "api-spec": "q9r0s1t2", 23 "auth-design": "u3v4w5x6" 24 }, 25 "notes": "Cycle 3 ended with implement-auth blocked. Two escalations pending." 26}

Save state (on pause rp)

After completing the current cycle, write the state file:

bash
1cat > /tmp/fl-sim/rp-state.json << 'STATEEOF' 2{ ... current state ... } 3STATEEOF

Resume (on start rp when state file exists)

  1. Check for /tmp/fl-sim/rp-state.json
  2. If it exists, read it and announce: "Resuming simulation from cycle N"
  3. Load the slug mappings from the state file — do NOT re-seed
  4. Run fl list --type task --status all to show current state
  5. Continue from next_cycle

What to capture in state

  • All entity slug mappings (name → slug)
  • Last completed cycle number
  • Free-text notes about what happened (for narrator context)

Prerequisite

The fl binary must be on PATH. Build with:

bash
1make build CRATE=all RELEASE=1

Setup Phase (on start rp)

1. Build and init

bash
1make build CRATE=all RELEASE=1 2cd /tmp && rm -rf fl-sim && mkdir fl-sim && cd fl-sim 3fl init

2. Load and seed scenario

Load the scenario JSON (default or user-provided), then for each section:

  1. Modules: fl add <name> --type module --summary "<summary>" for each
  2. Agents: fl add <name> --type agent --summary "<summary>" for each
  3. Tasks: fl task add <name> --summary "<summary>" --priority <N> for each
  4. Docs: fl add <name> --type doc --summary "<summary>" for each
  5. Plans: fl add <name> --type plan --summary "<summary>" for each
  6. Blocking relations: For each task with blocks, run fl relate <task> blocks <blocked-task>
  7. Plan ownership: For each plan with owns, run fl relate <plan> owns <task>
  8. Doc relations: For each doc with relates_to, run fl relate <doc> relates_to <module>
  9. Extra relations: For each entry in extra_relations, run fl relate <source> <type> <target>

Capture all slugs from creation output — you need them for cycle actions.

3. Verify seed

bash
1fl list --type task --status all 2fl list --type agent 3fl list --type module 4fl task ready

Narrate: show the dependency structure and which tasks are initially unblocked.

4. Execute cycles

For each cycle in the scenario:

  1. Announce the cycle title and narrate the scene
  2. Execute each action, resolving entity names to slugs
  3. For reserve actions that are expected to fail (conflict demonstrations), narrate exit code 6 as correct behavior
  4. After all actions, summarize what changed

Cleanup Phase (on end rp)

bash
1rm -rf /tmp/fl-sim

Summary template

Print a summary of what was demonstrated:

## Simulation Summary

**Entities created:** 18 (4 modules, 4 agents, 8 tasks, 1 plan, 2 docs)
**Relations created:** ~20 (blocks, depends_on, owns, relates_to, assigned_to)
**Messages sent:** ~12 (text, artifact, blocker, question)
**Escalations raised:** 3 (2 blockers, 1 question) — all resolved
**Reservation conflicts:** 1 — correctly prevented
**Export/import:** verified round-trip integrity

### Patterns demonstrated:
1. Dependency chain — tasks unblock sequentially as predecessors close
2. Escalation workflow — agents raise blockers/questions, humans respond
3. File reservations — advisory locking prevents conflicts
4. Inter-agent messaging — direct async communication
5. Graph queries — context, critical-path, ready-task computation
6. Data portability — export/import preserves full state

Pause Behavior (on pause rp)

  1. Stop after the current cycle completes
  2. Write the state file to /tmp/fl-sim/rp-state.json with:
    • last_completed_cycle: the cycle number just finished
    • next_cycle: the next cycle to run
    • slugs: all entity name → slug mappings
    • notes: brief narrator context (what happened, any pending escalations/blockers)
  3. Print:
    • What cycle just finished
    • What the next cycle would be
    • Current system state (open tasks, pending escalations, active reservations)
  4. Tell the user: "State saved. You can restart the session and say start rp to resume from cycle N."
  5. Ask: "Want to continue, skip ahead, or adjust anything?"

Resume Behavior (on start rp when /tmp/fl-sim/rp-state.json exists)

  1. Read the state file
  2. Announce: "Resuming from cycle N. Here's where we left off: [notes]"
  3. Load slug mappings — do not re-create entities
  4. Run fl list --type task --status all and fl escalations to show current state
  5. Continue from next_cycle
  6. The cwd must be /tmp/fl-sim/

CLI Reference

IMPORTANT: Always invoke /filament before running simulation commands. The filament skill contains the complete CLI reference with correct syntax. Key pitfalls:

  • fl task assign SLUG --to AGENT (--to required)
  • fl message send --from A --to B --body "..." --type text (all flags required)
  • fl reserve "glob/**" --agent SLUG (quote the glob)
  • fl search "query" --type lesson (query is first positional arg)

For multi-agent dispatch via tmux + claude -p, see the filament skill's "Multi-Agent Dispatch" section.

Important Notes

  • All slugs are dynamic — capture them from fl add output and use them throughout
  • Don't fabricate CLI output — run the actual commands and narrate based on real results
  • The simulation runs in /tmp/fl-sim/ — completely isolated, won't affect the main project
  • No daemon needed for single-session mode — all cycles use direct CLI commands
  • Daemon required for multi-agent modefl serve before launching concurrent agents
  • Exit code 6 on reservation conflict is expected, not an error — narrate it as the system working correctly
  • State file enables session restart — always save state on pause rp so a new session can resume
  • On resume, trust the state file — don't re-run setup or re-seed entities, just continue from the saved cycle

相关技能

寻找 roleplay-sim 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

本地化技能摘要: 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

333.8k
0
AI

widget-generator

Logo of f
f

本地化技能摘要: Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat . It covers ai, artificial-intelligence, awesome-list workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf

149.6k
0
AI

flags

Logo of vercel
vercel

本地化技能摘要: The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

本地化技能摘要: Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review . It covers autograd, deep-learning, gpu workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

98.6k
0
开发者工具