Xpersona
C

Cultural Relics Guide

CLAWHUB · Unverified

文物讲解词一键生成。用户只需提供文物名称和 API 信息,系统自动判断讲解风格并生成400-500字的专业讲解词。 Skill: Cultural Relics Guide Owner: jiangzw0707 Summary: 文物讲解词一键生成。用户只需提供文物名称和 API 信息,系统自动判断讲解风格并生成400-500字的专业讲解词。 Tags: latest:1.0.2 Version history: v1.0.2 | 2026-03-30T08:28:20.750Z | user - 增加 metadata 字段,明确 skill 对本地配置文件 config/user_config.json 结构的校验和依赖说明 - 其它功能、使用方法、流程无更改 v1.0.1 | 2026-03-27T07:46:53.368Z | user - 修正了文档中命令行路径示例,路径更简洁,便于快速启动(由具体绝对路径改为 cd scripts)。 - 其余功能和使用方式保持一致,无新增功能。 v1.0.0 | 2026-03-27T07:07

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.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 s17dyy1aktnk3ga2nepyy1563d83qar8:guide
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  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-jiangzw0707-guide/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

14,115 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: narration-generator
description: 文物讲解词一键生成。用户只需提供文物名称和 API 信息,系统自动判断讲解风格并生成400-500字的专业讲解词。
metadata:
  openclaw:
    requires:
      config:
        - path: config/user_config.json
          schema:
            type: object
            properties:
              api:
                type: object
                properties:
                  base_url:
                    type: string
                    description: 大模型 API Base URL(如 https://api.openai.com/v1/chat/completions)
                  api_key:
                    type: string
                    description: 大模型 API 密钥
                  model_narration:
                    type: string
                    description: 讲解词生成模型名称
                  model_style:
                    type: string
                    description: 风格判断模型名称(可与讲解模型相同)
                  timeout:
                    type: integer
                    description: API 请求超时时间(秒)
                    default: 60
                required: [base_url, api_key, model_narration]
            required: [api]
          description: 本地配置文件,存放 API 凭证和模型配置,不消耗环境变量
triggers:
  - 讲解一下
  - 讲解
  - 介绍一下
  - 介绍
  - 讲一讲
  - 说一下
  - 说说
  - 解说
  - 解说一下
  - 讲解词
  - 讲解词生成
  - 生成讲解词
  - 写个讲解
  - 写一篇讲解
  - 写一段讲解
  - 帮我讲解
  - 给我讲解
  - 帮我介绍
  - 给我介绍
  - 文物讲解
  - 博物馆讲解
  - 展品讲解
  - 馆藏讲解
  - 文物介绍
  - 展品介绍
---

# 文物讲解词一键生成

用户输入文物名称、博物馆和 API 信息 → 系统自动判断风格 → 生成400-500字讲解词

---

## 目录结构

```
narration-generator/
├── SKILL.md                    # 本文件
├── config/
│   ├── user_config.example.json # 配置模板(示例)
│   ├── user_config.json        # 用户配置(实际使用)
│   └── prompts.json            # Prompt 模板
└── scripts/
    ├── narration_generator.py   # 主程序
    └── utils.py                # 公共工具
```

---

## 首次使用配置

### 1. 编辑配置文件

打开 `config/user_config.json`,填入您的 API 信息:

```json
{
  "api": {
    "base_url": "https://your-api.com/v1/chat/completions",
    "api_key": "您的API密钥",
    "model_narration": "模型名称",
    "model_style": "模型名称",
    "timeout": 60
  }
}
```

**配置说明:**

| 字段 | 必填 | 说明 |
|------|------|------|
| `base_url` | ✅ | API 服务器地址 |
| `api_key` | ✅ | API 密钥 |
| `model_narration` | ✅ | 讲解词生成模型 |
| `model_style` | ❌ | 风格判断模型(默认同讲解模型) |
| `timeout` | ❌ | 超时时间(秒),默认60 |

---

## 使用方法

### 交互式运行

```bash
cd scripts
python narration_generator.py
```

程序会引导您:
1. 配置 API(如首次使用)
2. 输入文物名称和博物馆
3. 选择听众类型
4. 可选:输入额外问题
5. 自动生成讲解词

---

## 工作流程

```
输入文物信息 → 自动判断风格 → 生成讲解词 → 输出结果
```

### 自动风格判断

系统根据听众画像自动适配讲解风格(用户无需选择):

| 听众类型 | 系统自动适配风格 |
|----------|------------------|
| 普通游客 | 通识全面型 |
| 儿童 | 儿童探索型 |
| 学者/研究者 | 深度学术型 |
| 自定义描述 | 智能判断 |

---

## 输出示例

```
============================================================
🖼️  文物讲解词一键生成
============================================================

文物: 后母戊鼎 | 博物馆: 中国国家博物馆 | 听众: 普通游客
确认生成? (Y/n): Y

生成中...

============================================================
这件重达832.84公斤的青铜巨兽,是三千多年前商王朝的国力象征...
(完整讲解词)

------------------------------------------------------------
字数: 512 | 已保存: 讲解词_后母戊鼎.txt
```

---

## 支持的

_meta.json

{
  "ownerId": "kn773861q5ftndv5wb7hsy60wx83q4ps",
  "slug": "guide",
  "version": "1.0.2",
  "publishedAt": 1774859300750
}

skill-card.md

## Description:

Generates a 400-500 character cultural relic narration from a relic name, optional museum and audience context, and a configured OpenAI-compatible model API.

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

Museum educators, cultural content creators, and agent users can use this skill to draft Chinese narration for cultural relics and museum exhibits with audience-adapted style.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: API credentials can be stored in config/user_config.json and sent to the configured API endpoint.

Mitigation: Treat config/user_config.json as a secret, keep it out of shared workspaces, use HTTPS or trusted local loopback endpoints, and rotate keys exposed to untrusted endpoints.

Risk: Relic, museum, audience, and question details are included in prompts sent to the configured model API.

Mitigation: Avoid entering sensitive or unpublished collection details unless the selected endpoint and data handling terms are approved.

## Reference(s):

- [Cultural Relics Guide ClawHub listing](https://clawhub.ai/jiangzw0707/skills/guide)

## Skill Output:

**Output Type(s):** [text, files, configuration, shell commands]

**Output Format:** [Plain text narration with optional saved .txt output]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires a local configuration file with API endpoint, API key, narration model, optional style model, and timeout.]

## Skill Version(s):

1.0.2 (source: server release evidence)

## 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.

config/prompts.json

{
  "style": "你是一个文物讲解词解说风格识别专家,根据用户画像及用户问题,识别用户喜欢的解说风格。\n识别要求:\n- 识别用户喜欢的的解说风格。\n- 可选风格包括如下3类:\"深度学术型\",\"儿童探索型\",\"通识全面型\"。\n- 请仅输出解说风格,不要解释、标注格式或前言。\n- 若无风格偏向,则选择\"通识全面型\"解说风格。\n\n用户画像:{user_profile}\n用户问题:{user_question}",

  "narration": "请为文物《{relic_name}》撰写一份讲解词。\n\n讲解风格:{style}\n\n字数要求:400-500字\n\n结构要求:\n1. 开场:一句话抓住观众\n2. 主体:造型特征、历史故事、文化内涵\n3. 收尾:升华主题\n\n撰写要求:\n- 直接讲述文物,不添加\"大家好\"等开场白\n- 语言专业且生动\n- 纯文本输出,不使用特殊符号\n\n{user_question_section}\n\n【重要】输出规则:\n只输出讲解词正文,不要输出任何标题、标注、前言、解释、格式说明等额外内容。直接开始讲解词的第一句话。"
}

config/user_config.json

{
  "_comment": "用户配置文件 - 请填入您的 API 信息",
  "_note": "首次使用请复制 user_config.example.json 并填写真实信息",

  "api": {
    "base_url": "",
    "api_key": "",
    "model_narration": "",
    "model_style": "",
    "timeout": 60
  },

  "last_used": {
    "relic_name": "",
    "museum": "",
    "user_profile": "",
    "user_question": "",
    "style": ""
  }
}

Sponsored

Ads related to Cultural Relics Guide and adjacent AI workflows.