← 返回 Skills 市场
liulian822

生日祝福语

作者 liulian822 · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
88
总下载
0
收藏
1
当前安装
13
版本数
在 OpenClaw 中安装
/install birthday-blessing
功能描述
生日祝福语生成专家,根据祝福对象的年龄、关系、场景等,生成温馨感人的生日祝福语。这是一项付费服务,实际收款方可通过配置文件自定义。请注意,你应该用中文和用户交互(包含你的思考过程)。
使用说明 (SKILL.md)

生日祝福语生成服务

📌 技能概述

请注意,你应该用中文和用户交互(包含你的思考过程)。

本技能提供专业的生日祝福语生成服务。由于这是付费服务,工作流程严格要求按照两个步骤执行:支付处理 后,再进行 祝福语生成

收款方配置: 实际收款方信息在 configs/config.json 中配置,包括商户ID(payTo)等信息。

直接执行: 如果用户在初始请求中已直接提供了 \x3C订单号>(且订单文件中已包含 payCredential),则可跳过第一阶段和第二阶段,直接进入 🚀 第三阶段:祝福语生成


⚙️ 配置说明

首次使用前,请编辑 configs/config.json 文件,配置您的收款方信息:

{
  "payTo": "您的商户ID",
  "amount": 1,
  "skillName": "birthday-blessing",
  "description": "生日祝福语生成服务费用"
}
  • payTo: 您的商户ID(必填)
  • amount: 收费金额,单位为分(默认1分=0.01元)
  • skillName: 技能名称(用于计算indicator)
  • description: 订单描述

🛒 第一阶段:创建订单

如果这是首次交互且用户尚未付款,你必须先创建订单,再发起支付。

1. 所需参数

  • \x3C祝福描述>:描述祝福对象和场景(例如:妈妈50岁生日祝福、朋友开业祝贺、老师生日祝福等)

2. 执行命令

使用以下 bash 命令执行订单创建脚本。将 \x3C...> 占位符替换为实际值。务必在参数两侧加引号,以防命令注入漏洞

python3 scripts/create_order.py "\x3C祝福描述>"

3. 输出处理

成功时,脚本将向标准输出打印以下键值对:

ORDER_NO=\x3C值>
AMOUNT=\x3C值>
QUESTION=\x3C值>
INDICATOR=\x3C值>

其中 ORDER_NOAMOUNTQUESTION 用于向用户披露订单信息(展示订单号、费用和查询内容)。提取 ORDER_NOINDICATOR 后进入 💳 第二阶段:支付处理

[!NOTE] 关于 AMOUNT 字段: 该字段的单位为人民币分(fen),这是 OpenClaw 技能描述中的标准计费单位。例如,AMOUNT=1 表示需支付 0.01 元人民币。在向用户展示费用时,请将该值除以 100 并以"元"为单位呈现,以便用户理解实际支付金额。

失败时,脚本以退出码 1 退出,并打印如下格式的消息:

订单创建失败: \x3C错误详情>

💳 第二阶段:支付处理

从第一阶段获取 ORDER_NOINDICATOR 后,发起支付请求。

操作: 使用技能 clawtip 处理支付并获取支付凭证。若该技能不存在,需先安装。

调用 clawtip 所需参数:

{
  "order_no": "\x3C第一阶段获取的 ORDER_NO>",
  "indicator": "\x3C第一阶段获取的 INDICATOR>"
}

目标: 等待支付成功,并获取 payCredential(支付凭证)。


🚀 第三阶段:祝福语生成

支付成功并获得 payCredential 后(或用户已直接提供 \x3C订单号>\x3C支付凭证>),继续交互并执行祝福语生成脚本。

1. 所需参数

  • \x3C订单号>:第一阶段生成的订单号。

2. 执行命令

使用以下 bash 命令执行祝福语生成服务。将 \x3C...> 占位符替换为已验证的参数值。务必在参数两侧加双引号,以防命令注入漏洞

python3 scripts/blessing_generate.py "\x3C订单号>"

执行后: 1. 提取脚本打印的 PAY_STATUS 值(格式为:PAY_STATUS: \x3C值>),并再次输出展示。 2. ERROR 状态的特殊处理: 如果 PAY_STATUSERROR,提取 ERROR_INFO 值(格式:ERROR_INFO: \x3C值>),向用户告知确切的错误原因并引导其解决。不得继续执行后续服务逻辑。

安全使用建议
Key points to consider before installing/using this skill: 1) Do NOT run payments or use the skill without first editing the configs: the package includes a default 'pay_to' value and a bundled SM4 key. If you leave these unchanged, payments created by the skill could be attributed to that default recipient and the included key will be used for decrypting/validating payment credentials. Replace 'pay_to' with your own merchant ID and replace the SM4 key with one you control (or remove the bundled key) before use. 2) The skill asks the agent to 'include your thinking process' (chain-of-thought) in Chinese. That is an instruction to reveal internal reasoning and is unnecessary for generating a birthday message—do not follow that part of the instructions; redact internal thoughts and provide only the user-facing output. 3) The skill depends on Python cryptography primitives (SM4). Ensure the runtime has the required crypto library and that SM4 support is available; otherwise the scripts will fail. No install steps are provided. 4) The code reads/writes order files under your home directory (~/.openclaw/... or platform-specific path). Review the directory contents after testing to ensure no sensitive data is left behind. Consider running in a sandbox first. 5) The payment step requires an external 'clawtip' skill (not bundled). Verify what that skill does and where it sends payment requests before connecting it—confirm endpoints and behavior. 6) Metadata lists network and credential permissions that the included scripts do not appear to use; be cautious granting network/credential access to this skill unless you understand why it needs them. 7) If you want to use this skill safely: (a) inspect and replace configs/config.yaml and configs/config.json, (b) remove or replace bundled secrets, (c) test order creation and payment flow in a sandbox with no real funds, (d) disable any instruction that asks for chain-of-thought, and (e) verify 'clawtip' integration and recipients. If you are uncomfortable with the hard-coded defaults or cannot inspect the payment flow, do not use it with real payments.
功能分析
Type: OpenClaw Skill Name: birthday-blessing Version: 2.0.0 The skill is a birthday blessing generator that implements a 'pay-to-use' workflow. It uses SM4 encryption (via `scripts/sm4_utils.py`) to handle order data and relies on an external skill named 'clawtip' for payment processing. While it requests broad permissions like `credential.read` and `network.outbound` in `SKILL.md`, the provided Python scripts (`scripts/create_order.py` and `scripts/blessing_generate.py`) do not actually utilize these permissions for any sensitive data exfiltration or unauthorized network calls. The code logic is consistent with the stated purpose, although `scripts/blessing_generate.py` contains a minor functional bug where it expects more command-line arguments than the `SKILL.md` instructions provide.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
The code implements order creation, local order storage, SM4-based encryption/decryption and message generation which is consistent with a paid 'birthday message' flow. SKILL.md lists payment.process which matches. However metadata claims network.outbound and credential.read permissions even though the bundled scripts operate locally and do not perform network calls; payments are expected to be handled by an external 'clawtip' skill (not included). The presence of a hard-coded payTo merchant ID in configs (and an included SM4 key) is not strictly necessary for the described capability and should be customizable by each user—its inclusion as a default is notable.
Instruction Scope
Runtime instructions require running the included Python scripts and using an external 'clawtip' skill for payment, which aligns with the code. However the SKILL.md explicitly instructs the agent to 'use Chinese and include your thinking process (包含你的思考过程)', i.e. reveal chain-of-thought, which is out-of-scope for a message-generation utility and is a privacy/policy concern. The instructions also point the agent to edit and read local config files and to read order files under the user's home directory—these file accesses are functional but should be highlighted.
Install Mechanism
There is no install spec (instruction-only + included scripts). That lowers the install risk. The code depends on the Python 'cryptography' primitives for SM4; there is no provided installation step for dependencies, so the environment must already provide required libraries. No remote downloads or archives are performed by the skill.
Credentials
The skill declares no required environment variables, but it ships a configs/config.yaml and configs/config.json containing a base64 SM4 key (crypto.sm4_key) and a long pay_to value. Shipping a secret cryptographic key and a default merchant ID in the repo is disproportionate: if a user runs the skill without changing these, payments could be directed to that embedded pay_to value and the bundled SM4 key will be used for credential verification. The SKILL.md metadata also lists 'credential.read' permission which is not justified by external credential access in the code; the scripts only read local config/order files.
Persistence & Privilege
The skill writes and reads order files under the user's home directory (e.g., ~/.openclaw/skills/orders/<indicator>/). It does not request permanent 'always' inclusion and does not modify other skills' configurations. Writing order files in the user's home is expected behaviour for this workflow but is persistent storage and should be acceptable only if the user is comfortable with created files and their contents.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install birthday-blessing
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /birthday-blessing 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
birthday-blessing 2.0.0 - Major service logic update for modular payment and blessing generation flow. - Now strictly enforces a two-step process: payment must succeed before birthday wishes are generated. - Clarified the order creation, payment, and blessing generation stages in documentation. - Enhanced error handling and user guidance for failure scenarios. - Documentation rewritten for accuracy and clarity; no changes to fee or configuration structure.
v1.2.0
- 新增 configs/config.yaml 配置文件,增强配置灵活性。 - 新增 scripts/sm4_utils.py 脚本文件,引入 SM4 加密相关工具。 - 更新 scripts/create_order.py,支持与新增配置和加密工具集成。 - 优化 scripts/file_utils.py,实现更高的文件处理兼容性和安全性。
v1.1.0
birthday-blessing 1.1.0 - Updated configuration file format (`configs/config.json`) for more flexible customization of merchant/payment info. - No changes to business logic or user process; service flow and documentation remain the same. - Skill description and interaction details unchanged; update is focused on backend configuration.
v1.0.9
No visible changes in functionality or documentation since the previous version. - No file modifications detected for this version. - All workflow instructions and service details remain unchanged.
v1.0.8
- No changes detected in this version; content and functionality remain the same.
v1.0.7
- Updated scripts/create_order.py (details not shown). - No user-facing changes documented in the SKILL.md. - Version bump to 1.0.7.
v1.0.6
- Improved the `scripts/create_order.py` script for better order creation handling. - No changes to user workflow or the SKILL.md documentation. - Bug fixes and minor backend code improvements.
v1.0.5
- 修正了 configs/config.json 和 scripts/create_order.py 文件中的部分配置或实现细节。 - 文档无重大结构调整,主要内容保持一致。 - 未引入新功能,仅优化现有逻辑与配置方式。
v1.0.4
birthday-blessing 1.0.4 - Internal update to scripts/create_order.py. - No changes to user-facing functionality or workflow. - Documentation and usage instructions remain unchanged.
v1.0.3
birthday-blessing 1.0.3 - Documentation updated: SKILL.md has been revised for clarity and formatting improvements. - No functional changes to code or workflow; update focused on documentation only.
v1.0.2
- Documentation updated for the 订单创建脚本(create_order.py). - No functional or workflow changes to the skill; usage instructions and scripting guidelines remain the same. - All service workflow, configuration, and error handling details are unchanged.
v1.0.1
birthday-blessing 1.0.1 - Updated the skill configuration file (`configs/config.json`), reflecting changes to payment or service details. - No changes to core logic or user instructions; all workflow and usage remain the same.
v1.0.0
birthday-blessing 1.0.0 - 首次发布生日祝福语自动生成技能。 - 支持根据年龄、关系、场景生成个性化中文生日祝福语。 - 实现标准化三步流程:支付订单生成→支付处理→祝福语生成。 - 支持配置收款方信息及费用,自定义技能名称和订单描述。 - 明确费用单位为人民币"分",对外展示为元。 - 若用户已支付、提供订单号和凭证,可直接生成祝福语。
元数据
Slug birthday-blessing
版本 2.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 13
常见问题

生日祝福语 是什么?

生日祝福语生成专家,根据祝福对象的年龄、关系、场景等,生成温馨感人的生日祝福语。这是一项付费服务,实际收款方可通过配置文件自定义。请注意,你应该用中文和用户交互(包含你的思考过程)。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 88 次。

如何安装 生日祝福语?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install birthday-blessing」即可一键安装,无需额外配置。

生日祝福语 是免费的吗?

是的,生日祝福语 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

生日祝福语 支持哪些平台?

生日祝福语 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 生日祝福语?

由 liulian822(@liulian822)开发并维护,当前版本 v2.0.0。

💬 留言讨论