CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

ai-model-wechat

This skill explains how to select a valid model group and model, verify billing eligibility and group readiness, and use `generateText` or `streamText` in a Mini Program. It also covers image input, streaming callbacks, error handling, and safeguards such as keeping API keys out of client code. Follow the ordered preflight before writing business code, and verify the flow in WeChat DevTools.

Quality

88%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

The canonical home for this skill is ai-model-wechat in TencentCloudBase/CloudBase-AI-Toolkit

SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

81%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is exceptionally actionable with a rigorously validated preflight workflow — most of what it teaches is non-obvious, environment-specific knowledge Claude cannot know. Its weaknesses are repetition of the createModel guardrail across four separate sections (inflating token cost), and one dangling reference ('./references.md') in the reference table.

Suggestions

State the four legal createModel(provider) values once in the STOP section and have the warning blockquote, section A/B, and Best Practice #2 reference it instead of restating it — this would cut meaningful tokens without losing the guardrail.

Remove the './references.md' row from the reference table (or create the file) — it is cited as the 'Index of all references' but does not exist in the bundle.

Consolidate the legacy hunyuan-v3 / hunyuan-exp material (including the 2026-05-31 offline date) into a single 'Deprecated / legacy groups' subsection so time-sensitive details are isolated from the current-path guidance.

DimensionReasoningScore

Conciseness

The content is mostly high-value, non-obvious domain knowledge (billing paths, GroupName rules, tcb actions), but the same guardrail is repeated at least four times — the STOP section, the warning blockquote after section B, and Best Practice #2 all restate the four legal createModel values, and the plan-model roster is repeated in three places. Time-sensitive details (the 2026-05-31 offline date, legacy hunyuan groups) are woven throughout rather than isolated in a deprecated section. This lands on the level-3 anchor ('mostly efficient but could be tightened') rather than 2, since nothing explains concepts Claude already knows and the length is largely justified.

3 / 5

Actionability

Fully executable, copy-paste-ready callCloudApi snippets for every preflight step (DescribeActivityInfo, DescribeEnvPostpayPackage, DescribeAIModels, UpdateAIModel), concrete correct/wrong createModel examples, explicit hit criteria, and a self-verification checklist ('open it in the WeChat DevTools simulator... confirm (a) the text chunks arrive via onText, (b) [DONE] terminates the stream'). This matches the level-5 anchor: specific examples cover the common cases.

5 / 5

Workflow Clarity

The two-step preflight is sequenced with a fixed, explicitly enforced order ('① eligibility → ② group readiness. Do not swap the two'), each step has an explicit validation checkpoint (hit criterion) and an on-miss recovery path, and there are feedback loops for error recovery (InvalidParameter → switch casing → retry → freeze the working form; ModelNotEnabled → UpdateAIModel). Best Practice #13 adds an end-to-end verification checklist. This matches the level-5 anchor.

5 / 5

Progressive Disclosure

Good structure overall: guardrails stay in SKILL.md, a task→file table points to one-level-deep reference files, and all four cited ./references/*.md files exist. However the table's last row cites './references.md' as 'Index of all references', and that file does not exist in the bundle — a dangling reference that breaks navigation. This is 'good structure with minor organization gaps' (level 4) rather than 5, where navigation must be fully clean.

4 / 5

Total

17

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: concrete capabilities, explicit use/non-use routing against sibling skills, and bilingual trigger terms. Its only weakness is mild keyword saturation — the billing/preflight details packed into the description add length without adding trigger value, and a few natural phrasings are missing.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions and API surfaces: 'generateText and streamText with callbacks (onText, onEvent, onFinish)', 'streamText needs a data wrapper', 'multimodal image input (image_url content blocks, OCR and form extraction)', plus model-group specifics. Coverage is comprehensive across the skill's capabilities, matching the level-5 anchor; it is not a level 4 because no meaningful capability gap is identifiable.

5 / 5

Completeness

It explicitly answers both questions: 'what' via the enumerated capabilities (generateText/streamText with callbacks, multimodal image input, model groups) and 'when' via 'Use this skill for WeChat Mini Program AI via wx.cloud.extend.AI' plus explicit negative triggers ('NOT for browser/Web... Node.js backend... image generation'). Both are concrete and explicit, matching the level-5 anchor; level 4 would require the 'when' to be less explicit than it is.

5 / 5

Trigger Term Quality

Good natural-keyword coverage including synonyms: 'WeChat Mini Program', '小程序', 'wx.cloud apps', 'OCR', 'form extraction', 'generateText', 'streamText'. It stops short of level 5 because a few natural phrasings users might say (e.g. 'mini program chat', 'streaming AI response', 'hunyuan' as a bare trigger word) are absent, though the terms present are the ones users would most naturally say.

4 / 5

Distinctiveness Conflict Risk

The description carves out a clear niche (WeChat Mini Program client-side AI via wx.cloud.extend.AI) and actively disambiguates sibling skills by name: 'NOT for browser/Web (use ai-model-web), Node.js backend (use ai-model-nodejs), or image generation (use ai-model-nodejs)'. Minimal conflict risk, matching the level-5 anchor.

5 / 5

Total

19

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

TencentCloudBase/CloudBase-AI-Toolkit

Path

config/.claude/skills/ai-model-wechat/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.