| 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
- Check whether the target persona directory already exists.
If files already exist, do not overwrite them unless the user explicitly asks for regeneration.
- Scaffold the persona pack.
Run
python3 skills/weclone-init-twin/scripts/init_twin_profile.py --user-name <name> --language <en|zh> [output_dir].
- Regenerate only with explicit overwrite approval.
Add
--force only when the user clearly wants to replace existing files.
- 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