text-gen-skill

text-gen-skill is a skill for Claude Code, Codex from TencentCloudBase/awesome-miniprogram-skills. It costs 52 tokens per session (542 once invoked), scanned A, original, MIT.

An AI text-generation skill for writing and transforming text, including articles, advertising copy, code, translations, summaries, and answers.

In plain words
What is it for?
It helps users write content or code, translate and summarize text, answer questions, choose among supported models, and retry or copy generated results.
Why use it?
It gives different text tasks a single route while keeping image requests, live web searches, and business actions outside its scope.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tencentcloudbase/awesome-miniprogram-skills/text-gen-skill
Any agent
npx skills add TencentCloudBase/awesome-miniprogram-skills --skill text-gen-skill
Clone the repo
git clone --depth 1 https://github.com/TencentCloudBase/awesome-miniprogram-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for text-gen-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/tencentcloudbase/awesome-miniprogram-skills/text-gen-skill.svg)](https://agentmods.dev/skills/tencentcloudbase/awesome-miniprogram-skills/text-gen-skill)
Your own site
<a href="https://agentmods.dev/skills/tencentcloudbase/awesome-miniprogram-skills/text-gen-skill"><img src="https://agentmods.dev/badge/skills/tencentcloudbase/awesome-miniprogram-skills/text-gen-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 542 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00542
Opus 5 $0.00026 $0.00271
Sonnet 5 $0.00010 $0.00108
Haiku 4.5 $0.00005 $0.00054

Measured 6d ago against content hash b08c3b49af95, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

text-gen-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (apis/generateText.js, cloudfunctions/text-gen-handler/index.js, components/text-result-card/index.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/text-gen-skill/SKILL.md · 44 lines

What it actually says

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(中文优化)
  • 系统提示词根据场景自动构造,用户不传时默认为通用助手角色
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 44 lines · 52 tokens per session scan A b08c3b49af95

Subscribe to this mod's changes

text-gen-skill is a skill published in the GitHub repository TencentCloudBase/awesome-miniprogram-skills (35 stars, last pushed 2mo ago), licensed MIT. It adds 52 tokens to every session and 542 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gzh_article

公众号图文创作 / 推文 / 官方号文章 (official account article) — 端到端:选题→搜集→成文→配图→去AI化→公众号内联样式排版→交付/草稿箱。honors user persona & style memory.

mateaix/mateclaw · 66 tokens

weapp-vite-best-practices

面向采用 weapp-vite 项目布局仓库或已安装 weapp-vite 依赖项目的工程化实践手册,覆盖 vite.config.ts 的 weapp 配置、内置 i18n、自动路由、routeRules/layout、buildScope、自动导入组件、分包、npm、六平台单目标构建、受管 TypeScript、HMR、sourcemap、prepare、MCP、Web runtime、lib mode、worker、AI skills,以及与 weapp-ide-cli 的命令治理边界。.

weapp-vite/weapp-vite · 134 tokens

native-to-weapp-vite-wevu-migration

面向原生微信、支付宝、抖音等小程序渐进迁移到 weapp-vite + 原生 或继续升级到 weapp-vite + wevu + Vue SFC 的结构化工作流,覆盖六平台单目标构建、原生扩展名保留、Web 联调边界、路线选择、工具链接入、SFC 试点、响应式升级与可回滚验证。.

weapp-vite/weapp-vite · 106 tokens

weapp-vite-vue-sfc-best-practices

面向使用 weapp-vite 的小程序项目的 Vue SFC 实践手册,覆盖 script setup、纯模板 SFC、JSON 宏、definePageMeta/layout、defineModel、usingComponents、内置 i18n Behavior、JSX/TSX script block、模板指令兼容、多平台 SFC、.weapp-vite 类型支持文件与受管 prepare 工作流。.

weapp-vite/weapp-vite · 107 tokens

docs-and-website-sync

面向 weapp-vite monorepo 的文档、website 与公开 skills 同步工作流。适用于源码能力变化后同步配置、CLI、React/Wevu/Vue SFC、多平台、mpcore、README、packaged docs、脚手架 AGENTS.md、AI skills 元数据和触发回归入口。.

weapp-vite/weapp-vite · 79 tokens

weapp-devtools-e2e-best-practices

面向 weapp-vite 仓库的 WeChat DevTools 与 mpcore headless runtime e2e 工作流。适用于 e2e/ide/、miniprogram-automator、WEAPPVITEE2ERUNTIMEPROVIDER、全局串行、共享 automator、miniProgram.reLaunch(...)、DevTools/headless parity、跨平台 launcher,以及 screenshot/compare/logs 验收。.

weapp-vite/weapp-vite · 107 tokens