# Text Gen Skill

> AI 文本生成：AI 写作、文案生成、代码生成、翻译、总结、问答，支持 cloudbase / deepseek / hunyuan 模型。仅处理纯文本生成需求，不处理图片相关需求

- **Type:** Skill
- **Install:** `agentstack add skill-tencentcloudbase-awesome-miniprogram-skills-text-gen-skill`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [TencentCloudBase](https://agentstack.voostack.com/s/tencentcloudbase)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [TencentCloudBase](https://github.com/TencentCloudBase)
- **Source:** https://github.com/TencentCloudBase/awesome-miniprogram-skills/tree/main/skills/text-gen-skill

## Install

```sh
agentstack add skill-tencentcloudbase-awesome-miniprogram-skills-text-gen-skill
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# AI 文本生成

## 触发场景

用户原话举例：

- **文章写作**："帮我写一篇关于咖啡文化的公众号文章"、"写一篇小红书笔记推荐春日饮品"
- **文案生成**："帮我写一句咖啡店的宣传语"、"生成一个新品发布的广告文案"
- **代码生成**："用 Python 写一个冒泡排序"、"帮我写一个云函数模板"
- **翻译**："把这段话翻译成英文"、"翻成中文"
- **总结归纳**："总结一下这篇文章的核心观点"
- **问答对话**："什么是云开发"、"解释一下小程序生命周期"

## 不适用范围

- 图片生成、图片编辑等视觉类诉求 → 不在本技能范围，由 image-gen-skill / image-edit-skill 处理
- 需要联网搜索的实时信息查询 → 不在本技能范围
- 需要调用具体业务 API 的操作（如点单、排队）→ 不在本技能范围

## 接口链路

- `generateText`：根据 prompt 生成文本内容，支持系统提示词、模型选择、温度参数

## 使用顺序

1. 用户表达文本生成意图时，直接调用 generateText
2. 若用户未指定模型，使用 cloudbase 默认模型
3. 若用户指定了场景（写文章/写代码/翻译），AI 自动选择合适的 systemPrompt 和 model
4. 返回结果后通过 `text-result-card` 卡片展示，用户可复制结果、重新生成或换模型重试

## 设计约束

- 文本生成不经过云函数，直接调用 `wx.cloud.extend.AI` 小程序端 API
- 支持三种模型：cloudbase（通用，默认）、deepseek-v4（深度推理）、hunyuan（中文优化）
- 系统提示词根据场景自动构造，用户不传时默认为通用助手角色

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [TencentCloudBase](https://github.com/TencentCloudBase)
- **Source:** [TencentCloudBase/awesome-miniprogram-skills](https://github.com/TencentCloudBase/awesome-miniprogram-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-tencentcloudbase-awesome-miniprogram-skills-text-gen-skill
- Seller: https://agentstack.voostack.com/s/tencentcloudbase
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
