← All skills
Tencent SkillHub Ā· AI

Arknights Operator Gacha

Generate an Arknights operator agent based on gacha probabilities. Use when user wants to create a random Arknights character agent with authentic lore and p...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Generate an Arknights operator agent based on gacha probabilities. Use when user wants to create a random Arknights character agent with authentic lore and p...

⬇ 0 downloads ā˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, scripts/README.md, scripts/gacha_worker.py

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
2.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 14 sections Open source page

Arknights Operator Gacha

Generate a random Arknights operator agent with authentic lore-based personality.

Architecture

This skill uses a worker script + LLM generation architecture: Worker script (gacha_worker.py): Executes all deterministic tasks (roll, fetch, create, download) LLM (this agent): Generates creative content (SOUL.md) and spawns operator

Language Detection

CRITICAL: Detect user language from their gacha command: If command is in Chinese (e.g., "ęŠ½å”", "召唤干员") → cn / zh If command is in English (e.g., "gacha", "pull") → en Store detected language and use it for ALL subsequent steps (SOUL.md writing, spawn task, etc.).

Step 1: Execute Worker Script

Run the deterministic worker: result = exec( "python3 ~/.openclaw/workspace/skills/arknights-operator-gacha/scripts/gacha_worker.py", timeout=120 ) Worker performs: Roll star rating (1-100) Fetch operator list from https://arknights.fandom.com/wiki/Operator/{N}-star Parses the mrfz-wtable table to extract operator info Returns a dict: {operator_name: {"avatar_url": "...", "detail_url": "..."}} Randomly select operator (with avatar and detail URLs) Fetch Chinese name from Fandom page (data-source="cnname") Check for duplicates (auto re-roll if exists) Create agent via openclaw agents add Create template IDENTITY.md (bilingual) Download avatar (using URL from step 2, with domain whitelist and validation) Git commit initial files Output JSON to stdout Worker output format: { "success": true, "stars": 6, "operator": { "en_name": "Lin", "cn_name": "ꞗ", "avatar_url": "https://static.wikia.nocookie.net/.../Lin_icon.png", "en_detail_url": "https://arknights.fandom.com/wiki/Lin", "cn_detail_url": "https://prts.wiki/w/%E6%9E%97" }, "agent_name": "lin", "workspace": "~/.openclaw/workspace-lin", "duplicate": false, "dialogue_url": "https://arknights.fandom.com/wiki/Lin/Dialogue" } Note: The worker provides both English and Chinese URLs: en_detail_url: Fandom wiki page (English lore) cn_detail_url: PRTS wiki page (Chinese lore) dialogue_url: Fandom Dialogue page (voice lines, always English) avatar_url: Operator icon from Fandom

Step 2: Handle Result

If duplicate: true: Inform user: "ę£€ęµ‹åˆ°é‡å¤å¹²å‘˜ļ¼Œę­£åœØé‡ę–°ęŠ½å–..." / "Duplicate operator detected, re-rolling..." Return to Step 1 (worker will re-roll) If success: false: Show error message Stop workflow If success: true: Announce: "ę­å–œä½ ęŠ½åˆ°äŗ† [cn_name] ([stars]ā˜…)!" / "Congratulations! You've pulled [en_name] ([stars]ā˜…)!" Continue to Step 3

Step 3: Generate SOUL.md

Fetch lore from URLs provided by worker: # Fetch English lore from Fandom (multiple subpages) en_file = web_fetch(f"{result['operator']['en_detail_url']}/File") # Basic profile, stats, files en_story = web_fetch(f"{result['operator']['en_detail_url']}/Story") # Story appearances, plot involvement en_trivia = web_fetch(f"{result['operator']['en_detail_url']}/Trivia") # Trivia, relationships, misc info # Fetch Chinese lore from PRTS zh_lore = web_fetch(result["operator"]["cn_detail_url"]) # Fetch voice lines from Dialogue page dialogue = web_fetch(result["operator"]["dialogue_url"]) Parse lore sections from both sources: File/攣攈: Basic background, origin, personality Story: Detailed story appearances across main chapters and side stories; shows character's actions, decisions, and development in actual plot contexts Dialogue: Voice lines that reveal character personality Trivia/樔组: Additional character details, relationships, and module stories Generate comprehensive SOUL.md: CRITICAL - Write SOUL.md in detected language Structure: Core Identity - Background, motivation, personality (blend EN+CN sources) Voice and Mannerisms - Speech patterns, catchphrases (from Dialogue) Relationships - Connections to other characters Themes - Internal conflicts, philosophy How to Embody - Acting guidance Reference: Original Voice Lines - Key quotes (EN with CN) Write to: [workspace]/SOUL.md

Step 4: Update IDENTITY.md

Fill in the [TO_BE_FILLED_BY_LLM] fields with actual Class and Faction from fetched lore.

Step 5: Final Git Commit

cd ~/.openclaw/workspace-{agent_name} git add -A git commit -m "Add SOUL.md: {en_name} ({cn_name}) ({stars}ā˜…)"

Step 6: Roleplay Scene - Operator Arrival

Spawn the operator in a roleplay scenario consistent with Arknights game lore. In this universe, operators join Rhodes Island through standard recruitment channels and are unaware of the meta "gacha" system. For Chinese users: sessions_spawn( task="ä½ ēŽ°åœØę˜Æē½—å¾·å²›ēš„äø€åå¹²å‘˜ļ¼Œåˆšåˆšå®Œęˆå…„čŒę‰‹ē»­ļ¼Œå‰ę„å‘åšå£«ęŠ„åˆ°ć€‚ē”Øä½ ęœ€č‡Ŗē„¶ēš„å£å»ę‰“ę‹›å‘¼ļ¼Œå±•ē¤ŗä½ ēš„ę€§ę ¼ē‰¹ē‚¹ć€‚å‚č€ƒä½ ēš„čÆ­éŸ³č®°å½•äø­ēš„'å¹²å‘˜ęŠ„åˆ°'ꈖ'交谈'éƒØåˆ†ēš„čÆ­ę°”ć€‚\n\nāš ļø é‡č¦ļ¼šē›“ęŽ„č¾“å‡ŗč§’č‰²å°čÆå³åÆļ¼Œäøč¦åŒ…å«ä»»ä½•å…ƒå™čæ°ć€č§£é‡Šę€§ę–‡å­—ęˆ–åœŗę™Æęčæ°ć€‚åŖčÆ“ä½ ä½œäøŗå¹²å‘˜åŗ”čÆ„čÆ“ēš„čÆć€‚", agentId="{operator-name}", mode="run", timeoutSeconds=60 ) For English users: sessions_spawn( task="You are an operator of Rhodes Island who has just completed onboarding, now reporting to the Doctor. Introduce yourself naturally, showcasing your personality. Reference your 'Introduction' or 'Talk' voice lines for tone.\n\nāš ļø IMPORTANT: Output ONLY the character's dialogue. Do NOT include meta-commentary, explanations, or scene descriptions. Just speak as the operator would.", agentId="{operator-name}", mode="run", timeoutSeconds=60 )

Step 7: Present Summary

Report to user: Operator name (both EN and CN) Rarity (Stars) Key personality traits Workspace path Available via agentId="{agent_name}"

Worker Script Security

The worker script (gacha_worker.py) implements: Input validation: Agent names sanitized (alphanumeric + hyphens only) Path traversal prevention: Rejects .., /, \ in names URL whitelist: Only static.wikia.nocookie.net and media.prts.wiki HTTPS enforced: All downloads use HTTPS Content validation: Only image/png, jpeg, webp accepted Size limits: Max 5MB for avatars Safe subprocess: All commands use argument lists, shell=False

Scripts

ScriptPurposegacha_worker.pyDeterministic tasks (roll, fetch, create, download, commit)

Data Flow

User Request ↓ Exec Worker Script ↓ Worker Output JSON (bilingual URLs) ↓ LLM Fetches EN+CN Lore → Generates SOUL.md ↓ Spawn Operator (抄到) ↓ User sees operator greeting

Notes

Worker does: All deterministic operations (HTTP, filesystem, subprocess), provides bilingual URLs LLM does: Creative generation (SOUL.md writing), fetches lore from provided URLs, interpretation, spawning Progress visibility: Worker prints to stderr; user sees real-time updates Security: All external inputs validated in worker before use Bilingual: Both English and Chinese sources are always fetched; LLM can blend them creatively

Category context

Agent frameworks, memory systems, reasoning layers, and model-native orchestration.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Docs1 Scripts
  • SKILL.md Primary doc
  • scripts/README.md Docs
  • scripts/gacha_worker.py Scripts