CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

ai-model-wechat

This skill guides implementation of AI text generation and streaming, plus vision-based image and OCR workflows, in WeChat Mini Programs. It requires checking billing eligibility and model-group readiness before writing business code, and explains supported providers, model configuration, and integration practices. It also covers error distinctions, TypeScript guidance, and end-to-end verification.

Quality

91%

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.

A highly actionable, well-sequenced body: the preflight workflow has genuine validation checkpoints and recovery loops, and code examples are copy-paste ready. The main costs are redundancy (core guardrails repeated three times) and a broken index reference (./references.md is listed but missing).

Suggestions

State the four legal createModel(provider) values once — in the STOP section — and have 'Available Providers' and Best Practices #2–3 cross-reference it instead of restating it; the same applies to the 'Models is a full replacement' warning (currently stated three times).

Fix the 'Reference files' table: ./references.md is listed as the index of all references but does not exist in the bundle — either create it or remove the row.

Move the billing-eligibility mechanics (DescribeEnvPostpayPackage hit criteria, purchase-link construction, DescribeManagedAIModelList pricing detail) into a billing reference file and keep only the decision table and hit/miss outcomes in SKILL.md.

DimensionReasoningScore

Conciseness

The body is dense with environment-specific facts (no explaining of concepts Claude already knows), but the same guardrails are restated repeatedly: the four legal createModel values appear in the STOP section, again in 'Available Providers and Models', and again in Best Practices #2; the 'Models is a FULL REPLACEMENT' warning appears three times; the 成长计划 billing prose repeats across Preflight ①, the provider tables, and Best Practice #4. Anchor 3 ('mostly efficient but... could be tightened') fits; not 2 because there is no generic filler or known-concept explanation, only intentional-but-costly redundancy.

3 / 5

Actionability

Guidance is fully executable: copy-paste callCloudApi snippets for DescribeActivityInfo, DescribeEnvPostpayPackage, DescribeAIModels, and UpdateAIModel; annotated wrong-vs-right createModel examples ("wx.cloud.extend.AI.createModel(\"deepseek\") // wrong — vendor, not GroupName"); explicit hit criteria ("postpayPackageId starts with pkg_tcb_tokencredits_, status ∉ [3, 4]") and concrete on-miss actions including a templated purchase URL. Specific examples cover the common cases, matching the top anchor.

5 / 5

Workflow Clarity

The mandatory two-step preflight is a clearly sequenced workflow with a fixed order (① eligibility → ② group readiness), explicit validation checkpoints (hit criteria for each probe), feedback loops for error recovery ("if you hit InvalidParameter, switch casing and retry", "if missing, UpdateAIModel"), and a self-verification checklist in Best Practice #13 (run in DevTools, confirm onText chunks, [DONE] termination, no console errors). This matches the top anchor: sequence + validation + recovery loops + checklist.

5 / 5

Progressive Disclosure

Good structure overall: guardrails and preflight stay in SKILL.md while detailed examples live one level deep in ./references/ (api-usage.md, custom-onboarding.md, multimodal.md, type-definitions.md — all present), navigated by a task→file table. Two gaps keep it from 5: the table lists "./references.md" as the 'Index of all references' but that file does not exist in the bundle, and the billing-eligibility detail (purchase-link construction, pricing tiers) is inlined in SKILL.md where a reference file would keep the overview lean. Not 3: the real references are clearly signaled, shallow, and task-mapped.

4 / 5

Total

17

/

20

Passed

Description

100%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.

An excellent description: concrete API-level capabilities, explicit use/skip triggers in both English and Chinese, and clear negative boundaries against sibling skills. Every clause carries information — dense but not padded.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions with exact API surface — "Covers generateText and streamText with callbacks (onText, onEvent, onFinish)", "multimodal image input (image_url content blocks, OCR and form extraction)", "createModel with groups cloudbase... hunyuan-v3 / hunyuan-exp, or custom-*" — with no vague filler. Coverage is comprehensive for the skill's scope (text generation, streaming, multimodal, model selection), so it matches the top anchor rather than the 'minor gaps' anchor at 4.

5 / 5

Completeness

It explicitly answers 'what' (generateText/streamText with callbacks, data-wrapper caveat, multimodal image input, model group selection) and 'when' ("Use this skill for WeChat Mini Program AI via wx.cloud.extend.AI (小程序, wx.cloud apps)" plus a concrete NOT-for list redirecting to ai-model-web / ai-model-nodejs). Both halves are explicit with concrete trigger phrases, matching the top anchor.

5 / 5

Trigger Term Quality

Natural trigger terms include "WeChat Mini Program AI", "小程序", "wx.cloud apps", "OCR and form extraction", and concrete model names (deepseek-v4.1-flash, hy3, hunyuan), giving comprehensive coverage including Chinese-language synonyms a real user of this niche would say. Not 4: no meaningful natural phrasing for this domain is missing — the runtime names (wx.cloud.extend.AI, streamText) are exactly what users of Mini Program AI code copy into requests.

5 / 5

Distinctiveness Conflict Risk

The niche is sharply bounded — WeChat Mini Program client via wx.cloud.extend.AI — and the description actively disambiguates against the nearest siblings ("NOT for browser/Web (use ai-model-web), Node.js backend (use ai-model-nodejs), or image generation"), giving minimal conflict risk. Not 4: the exclusions leave no meaningful overlap with closely related skills.

5 / 5

Total

20

/

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

connectors/cloudbase-intl/skills/references/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.