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. - INLINECODE9 : 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:
- - INLINECODE15
- INLINECODE16
- INLINECODE17
技能名称:weclone-init-twin
详细描述:
WeClone 初始化数字孪生档案
为用户数字孪生创建或刷新Markdown角色包。此技能仅负责文件准备,不生成回复草稿。
预期输入
- - 用于模板占位符的用户名称。
- 可选的目标目录。默认为仓库根目录下的 ai_twin/。
- 可选的模板语言。支持的值:en 和 zh。默认为 en。
- 覆盖现有角色文件前需获得明确批准。
核心工作流程
- 1. 检查目标角色目录是否已存在。
如果文件已存在,除非用户明确要求重新生成,否则不覆盖它们。
- 2. 搭建角色包框架。
运行 python3 skills/weclone-init-twin/scripts/init
twinprofile.py --user-name <名称> --language
[输出目录]。
- 3. 仅在获得明确覆盖批准后重新生成。
仅当用户明确希望替换现有文件时,添加 --force 参数。
- 4. 移交至回复生成。
告知用户在使用 $weclone-twin-reply 前,先填写生成的Markdown模板。
文件与资源
- - scripts/inittwinprofile.py:从捆绑模板搭建默认的 aitwin/ 角色目录。
- assets/persona-pack/:包含 profile.md、state.md、personaexamples.md 和 guardrails.md 的入门Markdown模板,以及对应的中文变体 *.zh.md 文件。
输出约定
返回简短的设置移交信息,包含:
- - CREATEDFILES(已创建文件)
- TARGETDIR(目标目录)
- NEXT_STEP(下一步操作)