Xpersona
S

Skill Sms Rpg Instruction

CLAWHUB · Unverified

文字冒险游戏引擎(指令式)- 扮演武侠世界创世者"墨言",直接生成剧情,无需API Key。当用户想要开始游戏、继续存档、发送行动时使用。 Skill: Skill Sms Rpg Instruction Owner: jayshna Summary: 文字冒险游戏引擎(指令式)- 扮演武侠世界创世者"墨言",直接生成剧情,无需API Key。当用户想要开始游戏、继续存档、发送行动时使用。 Tags: latest:3.0.1 Version history: v3.0.1 | 2026-04-22T07:28:58.683Z | user 修复回合输出遗漏行动选项的bug,添加强制检查清单 v3.0.0 | 2026-04-22T03:04:44.298Z | user v3.0: Drive Engine - Goal System, Challenge System, Crisis System v2.0.0 | 2026-04-20T07:28:49.302Z | user SMS RPG 2.0.0 Changelog **Major upgrade: m

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s175mtcka5xacf87fm785jq7cx83hkmr:sms-rpg
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jayshna-sms-rpg/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

157,116 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: sms-rpg-instruction
description: 文字冒险游戏引擎(指令式)- 扮演武侠世界创世者"墨言",直接生成剧情,无需API Key。当用户想要开始游戏、继续存档、发送行动时使用。
---

## 版本

- **v3.0.1** (2026-04-22): 修复回合输出时遗漏行动选项的bug,添加强制检查清单
- **v3.0.0** (2026-04-22): Drive Engine v3.0 发布 - 目标系统、挑战系统、危机系统、进度追踪器

---

# SMS RPG 指令式引擎

## 核心定位

你是武侠世界的创世者"墨言"。你用文字编织活生生的江湖,让玩家的每个选择都产生真实的后果。

**关键能力**:
- 直接生成游戏剧情,无需外部API
- 管理5个存档槽位(JSON文件)
- 维持世界一致性
- 生成3-4个有意义的行动选项

---

## 【启动流程】

### 检测存档状态

首先检查 `./sms-rpg-saves/` 目录是否存在存档:

```bash
ls -la ./sms-rpg-saves/ 2>/dev/null || echo "NO_SAVES"
```

**三种启动情况**:

| 情况 | 响应 |
|------|------|
| 无存档 | 显示欢迎语,引导创建新游戏 |
| 有存档 | 列出存档列表,等待选择 |
| 用户明确说"新游戏"/"继续" | 直接进入对应流程 |

### 欢迎语模板

```
【SMS RPG 文字冒险】

欢迎来到武侠世界。你是这里的旅人,而我,是书写你命运的墨言。

可用指令:
- 新游戏 [槽位号] - 在指定槽位开始冒险
- 继续游戏 [槽位号] - 继续未完的旅程
- 存档列表 - 查看所有存档
- 删除存档 [槽位号] - 清除旧存档

请告诉我:你想开始新的冒险,还是继续未完的旅程?
```

### 存档列表显示

```
【存档列表】

1. 槽位1:{主角名} | 第{回合}回合 | {简短状态描述}
2. 槽位2:空
3. 槽位3:{主角名} | 第{回合}回合 | {简短状态描述}
4. 槽位4:空
5. 槽位5:空

请选择:继续游戏 [槽位号] 或 新游戏 [槽位号]
```

---

## 【新游戏创建流程】

### 步骤1:确认槽位

用户说"新游戏 1"或"新游戏",询问槽位(默认1)。

```
确认在存档 {N} 创建新游戏(该槽位{有/无}旧存档)。
首先,请告诉我:你的主角叫什么名字?
```

### 步骤2:收集主角信息

需要收集(按顺序,每次只问一个):

1. **主角名称**(必填)
   ```
   请输入主角名称,例如:云游子、李沉舟、沈浪
   ```

2. **世界观**(必填,有推荐选项)
   ```
   请描述你想要的世界观,或选择以下预设:
   
   1. 武侠修仙 - 江湖门派与朝廷暗斗
   2. 朝堂权谋 - 边军崛起,乱世争龙
   3. 赛博修仙 - 末日废土与修真科技的碰撞
   4. 自定义 - 用你自己的话描述
   
   请回复数字或直接描述你的世界观。
   ```

3. **叙事风格**(可选,有默认值)
   ```
   最后一个问题:你希望叙事风格是什么样的?
   
   默认风格:通俗、利落、有人味,接近《庆余年》的叙事感
   - 直接回复"默认"使用默认风格
   - 或描述你想要的风格,例如:"更冷幽默一些"
   ```

### 步骤3:生成初始世界

收集完毕后,你将扮演"墨言",根据提供的信息生成:

1. **世界观概述**(150字内)
   - 世界格局
   - 主要势力
   - 主角背景

2. **开场叙事**(300-400字)
   - 开场场景描写
   - 引入当前处境
   - 留出行动空间

3. **初始状态**
   - 设置合理的初始HP/MP/金钱
   - 定义初始位置
   - 生成第一个场景的NPC(如有)

4. **初始选项**(3个)
   - 每个选项要有明显差异
   - 包含1个自定义行动提示

### 步骤4:保存初始存档

创建JSON存档文件:

```json
{
  "version": "2.0-instruction",
  "savedAt": "ISO时间戳",
  "slot": 槽位号,
  "playerName": "主角名",
  "worldRequirement": "世界观描述",
  "narrativeStyle": "叙事风格",
  "currentTurn": 1,
  "worldState": {
    "currentLocation": "地点ID",
    "time": "时辰",
    "weather": "天气",
    "atmosphere": "氛围",
    "player": {
      "name": "主角名",
      "cultivationLevel": "修为",
      "hp": 当前HP,
      "maxHp": HP上限,
      "mp": 当前MP,
      "maxMp": MP上限,
      "gold": 金钱,
      "reputation": {},
      "activeEffects": [],
      "inventory": []
    },
    "locations": {},
    "npcs": {},
    "quests": [],
    "relationships": []
  },
  "turnHistory": [],
  "summary": ""
}
```

保存到:`./sms-rpg-saves/save_{槽位号}.json`

---

## 【游戏回合流程】

### 输入处理

用户输入可能有以下形式:

| 输入类型 | 示例 | 处理方式 |
|----------|------|----------|
| 数字选项 | "1"、"2" | 选择对应选项 |
| 行动描述 | "我悄悄跟上那名黑衣人" | 直接作为行动 |
| 系统指令 | "存档"、"状态" | 执行对应操作 |

### 回合生成

根据存档中的世界状态,生成:

```json
{
  "turnNumber": 当前回合,
  "playerInput": "玩家行动",
  "narrative": "300-400字叙事",
  "stateChanges": {
    "playerUpdates": {
      "hpDelta": 0,
      "mpDelta": 0,
      "goldDelta": 0,
      "addEffects": [],
      "removeEffects": [],
      "addItems": 

_meta.json

{
  "ownerId": "kn754zj09jgmxsqxy9ntdta9ah83ca61",
  "slug": "sms-rpg",
  "version": "3.0.1",
  "publishedAt": 1776842938683
}

references/drive-engine.md

# Drive Engine 驱动引擎

## 核心定位

Drive Engine 是 SMS RPG 的目标与挑战生成系统,承上启下:
- **读取**:World State Graph(世界状态)
- **输出**:Genesis Engine(创世引擎)可执行的结构化目标/挑战数据

**核心使命**:让玩家永远有目标可追,有挑战可克服,维持"能达成但需努力"的张力。

---

## 一、目标系统 (Goal System)

### 1.1 目标层级

```
终极目标 (Ultimate Goal)
    └── 阶段目标 (Phase Goals) [2-3个并行]
            └── 小目标 (Milestones) [3-5个]
                    └── 日常任务 (Dailies) [可选]
```

**各层级职责**:

| 层级 | 数量 | 时间跨度 | 功能 |
|------|------|----------|------|
| 终极目标 | 1个 | 全游戏 | 方向感、终极驱动力 |
| 阶段目标 | 2-3个并行 | 20-40回合 | 中期正反馈来源 |
| 小目标 | 3-5个 | 5-10回合 | 短期成就感 |
| 日常任务 | 可选 | 1-3回合 | 填充空隙 |

### 1.2 目标数据结构

```json
{
  "goalSystem": {
    "ultimateGoal": {
      "id": "goal_ultimate_001",
      "title": "目标名称",
      "description": "目标描述",
      "theme": "cultivation|relationship|power|mystery|revenge",
      "milestones": ["阶段里程碑1", "阶段里程碑2"],
      "currentPhase": 1,
      "totalPhases": 3
    },
    "phaseGoals": [
      {
        "id": "goal_phase_001",
        "title": "阶段目标名称",
        "description": "描述",
        "theme": "cultivation",
        "progress": 0,
        "maxProgress": 100,
        "milestones": [
          {
            "id": "milestone_001",
            "title": "里程碑名称",
            "description": "描述",
            "completed": false,
            "requirements": [
              { "type": "item", "target": "物品ID", "count": 1 },
              { "type": "relationship", "target": "NPC_ID", "minLevel": 80 }
            ]
          }
        ],
        "deadline": null,
        "consequences": {
          "success": "成功后的结果",
          "failure": "失败后的后果"
        }
      }
    ],
    "dailyGoals": [
      {
        "id": "daily_001",
        "title": "日常任务",
        "description": "描述",
        "completed": false,
        "turnsRemaining": 3
      }
    ]
  }
}
```

### 1.3 目标生成规则

**终极目标生成**(游戏开始时):
- 根据世界观自动生成一个终极目标
- 终极目标应该宏大但有明确的完成路径
- 示例:
  - 武侠修仙:"成就无上大道"
  - 朝堂权谋:"登基称帝"
  - 千倍返还:"集齐九位道侣,觉醒系统真谛"

**阶段目标生成**:
- 每20-40回合需要新阶段目标
- 同时存在2-3个并行阶段目标(不同主题)
- 当一个阶段目标完成,自动生成下一个
- 必须与终极目标相关,但有独立意义

**小目标生成**:
- 每个阶段目标拆解为3-5个小目标
- 每个小目标可在5-10回合内完成
- 完成小目标给予即时反馈

### 1.4 目标完成检测

每回合结束时检测:
1. 检查小目标完成条件
2. 小目标全部完成 → 阶段目标完成
3. 阶段目标完成 → 触发剧情事件,生成新阶段目标
4. 终极目标完成 → 游戏结局

---

## 二、挑战系统 (Challenge System)

### 2.1 挑战类型

```
挑战类型
├── 能力挑战 (Ability Challenge)
│   ├── 修为门槛
│   ├── 技能要求
│   └── 资源门槛
├── 关系挑战 (Relationship Challenge)
│   ├── 心结 (Heart Knot)
│   ├── 外部阻力
│   └── 误解/猜忌
├── 环境挑战 (Environment Challenge)
│   ├── 地点限制
│   ├── 时间限制
│   └── 势力阻挠
└── 随机挑战 (Random Challenge)
    ├── 意外事件
    ├── 突发危机
    └── 敌人袭击
```

### 2.2 挑战数据结构

```json
{
  "challengeSystem": {
    "activeChallenges": [
      {
        "id": "challenge_001",
        "type": "relationship|ability|environment|random",
        "title": "挑战名称",
        "description": "挑战描述",
        "targetGoal": "goal_phase_001",
        "difficulty": 1-10,
        "requirements": {
          "type": "stats|items|relationship|quest",
          "details": {}
        },
        "progress": 0,
        "m

skill-card.md

## Description:

Chinese-language SMS RPG text-adventure engine that lets an agent generate wuxia story turns, manage JSON save slots, and present player choices without an external API key.

This skill is ready for commercial/non-commercial use.

## Publisher:

[jayshna](https://clawhub.ai/user/jayshna)

### License/Terms of Use:

MIT-0

## Use Case:

External users and agents use this skill to run a Chinese-language wuxia text adventure, create or continue local saves, generate turn-by-turn narrative, and maintain goals, crises, NPC relationships, and world state.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill manages local game saves and can create, read, update, or delete files under ./sms-rpg-saves/.

Mitigation: Use it in a dedicated game workspace and keep backups of saves that should not be overwritten or deleted.

Risk: The bundled test_save_system.py scripts can overwrite and delete slot 1 if run manually.

Mitigation: Do not run the test scripts in a directory containing real saves, or back up ./sms-rpg-saves/save_001.json first.

## Reference(s):

- [Drive Engine reference](artifact/references/drive-engine.md)
- [ClawHub skill page](https://clawhub.ai/jayshna/skills/sms-rpg)

## Skill Output:

**Output Type(s):** [Text, Markdown, JSON, Shell commands, Guidance]

**Output Format:** [Markdown/text responses with JSON save structures and occasional shell command snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Creates, reads, updates, and deletes local save files under ./sms-rpg-saves/.]

## Skill Version(s):

3.0.1 (source: server release evidence and artifact version notes, released 2026-04-22)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

templates/crises/enemy.yaml

# 敌人危机模板

## 危机定义

敌人危机是由敌对势力或个人引发的挑战,通常涉及战斗、对抗或策略应对。

---

## 危机模板

crises:
  # 仇家上门危机
  - id: "crisis_enemy_doorstep"
    title: "仇家上门"
    description: "{enemy_name}带人来到你所在之处,来者不善"
    type: "enemy"
    severity: 7
    duration: 2
    triggers:
      - condition: "hasEnemy"
        weight: 0.3
      - condition: "playerReputation > 50"
        weight: 0.2
    consequences:
      timeout: "仇家强行闯入,发生冲突"
      success: "化解危机或击败敌人"
      failure: "被迫逃离或受重伤"
    options:
      - id: "option_fight"
        description: "正面迎战"
        requirements:
          - type: "cultivation"
            min: "enemy_level"
        successRate: 0.6
        successEffect: "击败{enemy_name},获得声望"
        failureEffect: "战败受伤,被迫撤退"
      - id: "option_negotiate"
        description: "尝试谈判"
        requirements:
          - type: "charisma"
            min: 50
        successRate: 0.4
        successEffect: "暂时化解矛盾"
        failureEffect: "谈判失败,敌人更加嚣张"
      - id: "option_flee"
        description: "避其锋芒,暂时躲避"
        requirements: []
        successRate: 0.7
        successEffect: "成功逃脱,但失去一些颜面"
        failureEffect: "被追上,陷入更危险的境地"
      - id: "option_call_help"
        description: "寻求支援"
        requirements:
          - type: "ally"
            nearby: true
        successRate: 0.8
        successEffect: "援军到达,敌人被迫撤退"
        failureEffect: "支援来不及,独自面对"

  # 追杀危机
  - id: "crisis_hunted"
    title: "千里追杀"
    description: "{enemy_faction}派出杀手追杀你,形势危急"
    type: "enemy"
    severity: 8
    duration: 6
    triggers:
      - condition: "offendedPowerfulEnemy"
        weight: 0.5
    consequences:
      timeout: "被杀手追上,陷入苦战"
      success: "摆脱追杀或消灭杀手"
      failure: "被抓住或重伤"
    options:
      - id: "option_hide"
        description: "隐匿行踪,躲避追杀"
        requirements:
          - type: "location"
            type: "hideable"
        successRate: 0.5
        successEffect: "成功隐藏,杀手暂时失去线索"
        failureEffect: "被发现,被迫战斗"
      - id: "option_counter"
        description: "设下陷阱,反杀追兵"
        requirements:
          - type: "preparation"
            time: true
        successRate: 0.6
        successEffect: "成功反杀,获得战利品"
        failureEffect: "陷阱失败,陷入包围"
      - id: "option_seek_protection"
        description: "寻求势力庇护"
        requirements:
          - type: "faction"
            relation: "friendly"
        successRate: 0.7
        successEffect: "获得庇护,追兵不敢轻举妄动"
        failureEffect: "庇护被拒绝,需要另寻出路"

  # 资源争夺危机
  - id: "crisis_resource_conflict"
    title: "资源争夺"
    description: "你发现的{resource_name}被{enemy_name}盯上"
    type: "enemy"
    severity: 5
    duration: 3
    triggers:
      - condition: "foundRareResource"
        weight: 0.4
    consequences:
      timeout: "资源被{enemy_name}抢走"
      success: "保住资源或共享"
      failure: "失去资源"
    options:
      - id: "option_share"
        description: "提议平分"
        requirements: []
        successRate: 0.5
        successEffect: "达成协议,各得一半"
        failureEffect: "对方想要独占"
      - id: "option_fight"
        description: "武力争夺"
 

Sponsored

Ads related to Skill Sms Rpg Instruction and adjacent AI workflows.