360 Secure SkillHub
360 安全技能中心

Weclone Init Twin

该 Skill 通过 Python 脚本搭建或重置数字孪生人格包,生成 profile、state、persona_examples 与 guardrails 的中英文 Markdown 模板;只准备目录和文件,不生成回复,需用户填写模板后再交给回复生成技能。

分类:效率
xming521
xming521
热度 33.00
最近更新 2026-05-11 17:30:57

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add xming521/weclone-init-twin
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
weclone-init-twin
description
Scaffold a digital twin persona directory with markdown templates such as profile, state, persona examples, and guardrails. Use when the user wants to initialize, bootstrap, reset, or regenerate the persona files that weclone-twin-reply will read.
version
0.1.0
emoji
🧩
homepage
https://github.com/xming521/WeClone-Skill
metadata
{"openclaw":{"requires":{"bins":["python3"]}}}

WeClone Init Twin Profile

Create or refresh the markdown persona pack for a user's digital twin. This skill prepares files only. It does not draft replies.

Expected Inputs

  • A user name for template placeholders.
  • An optional target directory. Default to ai_twin/ at the repo root.
  • An optional template language. Supported values: en and zh. Default to en.
  • Explicit approval before overwriting existing persona files.

Core Workflow

  1. Check whether the target persona directory already exists. If files already exist, do not overwrite them unless the user explicitly asks for regeneration.
  2. Scaffold the persona pack. Run python3 skills/weclone-init-twin/scripts/init_twin_profile.py --user-name <name> --language <en|zh> [output_dir].
  3. Regenerate only with explicit overwrite approval. Add --force only when the user clearly wants to replace existing files.
  4. Hand off to reply generation. Tell the user to fill the generated markdown templates before using $weclone-twin-reply.

Files And Resources

  • scripts/init_twin_profile.py: scaffold the default ai_twin/ persona directory from bundled templates.
  • assets/persona-pack/: starter markdown templates for profile.md, state.md, persona_examples.md, and guardrails.md, plus *.zh.md Chinese variants.

Output Contract

Return a short setup handoff with:

  • CREATED_FILES
  • TARGET_DIR
  • NEXT_STEP