CtrlK
BlogDocsLog inGet started
Tessl Logo

ai-model-wechat

Use this skill for WeChat Mini Program AI via wx.cloud.extend.AI (小程序, wx.cloud apps). Covers generateText and streamText with callbacks (onText, onEvent, onFinish); streamText needs a data wrapper, generateText returns the raw response. Models via wx.cloud.extend.AI.createModel with groups hunyuan-exp (小程序成长计划), cloudbase (main managed), or custom-*; model id goes in the data wrapper `model` field. MUST run two-step preflight before code — see body. NOT for browser/Web (use ai-model-web), Node.js backend (use ai-model-nodejs), or image generation (use ai-model-nodejs).

69

Quality

85%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

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

SKILL.md
Quality
Evals
Security

Quality

Content

77%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 highly actionable and the two-step preflight workflow is a model of sequenced validation with feedback loops, but it is a monolithic ~440-line file that inlines material (type definitions, comparison tables, custom onboarding) better split into reference files, and it repeats the same createModel warning and prerequisite notes multiple times. Splitting reference material out and stating each warning once would cut substantial tokens without losing coverage.

Suggestions

Move the Type Definitions, the JS/Node SDK comparison table, and the Custom Onboarding walkthrough into a references/ file (e.g. references/api.md, references/custom-onboarding.md) linked from the body, shrinking SKILL.md to the overview, preflight, and core examples — this addresses the progressive_disclosure score of 3.

State the createModel provider-vs-model warning once (the ⛔ STOP section is the right home) and remove the duplicated versions in 'Available Providers and Models' and Best Practice #2; likewise consolidate the near-identical prerequisite blockquotes repeated before the generateText, streamText, and error-handling examples into a single note — this addresses the conciseness score of 3.

Trim the model roster enumeration in section B ('DeepSeek-V4-Pro, DeepSeek-V4-Flash, Deepseek-v3.2...') to a vendor-level summary, since the skill itself instructs to discover the roster at runtime and never hard-code it — the inline list is exactly the time-sensitive detail the skill warns against.

DimensionReasoningScore

Conciseness

The domain-specific content (GroupName rules, billing eligibility, data-wrapper semantics) is genuinely things Claude would not know, but the same createModel warning is repeated three times ('⛔ STOP' section, the ⚠️ note under Available Providers, Best Practice #2), and near-identical prerequisite blockquotes precede each of the three code examples. Mostly efficient with some unnecessary repetition that could be tightened — anchor 3, not 4, because the duplication is systematic rather than a minor instance.

3 / 5

Actionability

Every workflow ships executable code: concrete callCloudApi payloads with hit criteria ('envPostpayPackageInfoList contains an entry whose postpayPackageId starts with pkg_tcb_tokencredits_'), complete generateText/streamText examples with callbacks, a full CreateAIModel registration payload, and full TypeScript type definitions. Copy-paste ready and covering the common cases — anchor 5.

5 / 5

Workflow Clarity

The mandatory two-step preflight is explicitly sequenced ('① eligibility → ② group readiness. Do not swap the two'), each step defines explicit hit criteria and miss-handling feedback loops ('On miss: do NOT silently fall back... ask whether to enroll and retry'), the InvalidParameter casing tip gives a retry loop, the UpdateAIModel full-replacement hazard is flagged with a merge instruction, and Best Practice 13 is a self-verification checklist. Clear sequence with explicit validation, error-recovery feedback loops, and a checklist — anchor 5.

5 / 5

Progressive Disclosure

Section headers and internal navigation are good, but the skill is a ~440-line monolith with no reference files at all — the Type Definitions, the JS/Node comparison table, and the Custom Onboarding walkthrough are all inline content that naturally belongs in separate reference files. This matches anchor 3 (good structure, but content that should be separate is inline and no references exist), not 2 since the body is clearly headed and navigable, and not 4 since there are no one-level-deep references to signal.

3 / 5

Total

16

/

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: it names concrete capabilities and API specifics, gives explicit positive and negative triggers, and cleanly disambiguates sibling skills. The only gap is a handful of missing natural-language synonyms (e.g. 微信小程序, LLM, chat) users might use when requesting this skill.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions — 'Covers generateText and streamText with callbacks (onText, onEvent, onFinish)', 'Models via wx.cloud.extend.AI.createModel with groups hunyuan-exp... cloudbase... or custom-*' — covering the full API surface including the data-wrapper and raw-response semantics. This matches the anchor 'Lists multiple specific concrete actions; comprehensive coverage', not 4, since no meaningful capability gap remains.

5 / 5

Completeness

It explicitly answers both: what ('Covers generateText and streamText with callbacks... returns the raw response. Models via wx.cloud.extend.AI.createModel with groups...') and when ('Use this skill for WeChat Mini Program AI via wx.cloud.extend.AI'), plus concrete negative triggers ('NOT for browser/Web (use ai-model-web), Node.js backend (use ai-model-nodejs), or image generation'). This is the anchor-5 pattern — both what and when with concrete trigger phrases.

5 / 5

Trigger Term Quality

Natural keywords users would say are present in two languages — 'WeChat Mini Program AI', '小程序', 'Node.js backend', 'image generation', 'generateText', 'streamText' — giving good coverage. It falls short of 5 because common variations like '微信小程序', '大模型', 'LLM', or 'chat/streaming' phrasings are absent.

4 / 5

Distinctiveness Conflict Risk

The niche is unambiguous (WeChat Mini Program's wx.cloud.extend.AI specifically, in both English and Chinese) and it actively disambiguates against siblings — 'NOT for browser/Web (use ai-model-web), Node.js backend (use ai-model-nodejs), or image generation'. Clear niche with distinct triggers; minimal conflict risk, matching anchor 5 rather than 4 which implies residual overlap.

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