CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

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

72

Quality

90%

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

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 delivers outstanding actionability and workflow clarity — executable code, fixed preflight ordering, explicit hit/miss criteria, feedback loops, and a self-verification checklist. Its weaknesses are redundancy (the same warnings repeated across four-plus sections) and a monolithic single-file layout where type definitions, comparison tables, and catalogs belong in separate reference files.

Suggestions

Consolidate the repeated createModel anti-pattern warnings into the single STOP section and replace the duplicated instances (the '⚠️ Common Mini Program mistake' block and Best Practice #2) with one-line back-references like 'see the createModel STOP section above', cutting ~60-80 lines of repetition.

Move the Type Definitions, the JS/Node vs Mini Program API comparison table, and the provider/model catalog details (sections A/B and the Custom Onboarding console path) into reference files (e.g. references/types.md, references/providers.md) linked one level deep from a leaner SKILL.md overview.

Trim the identical 'Prerequisite: the Mandatory Two-Step Preflight has been completed' blockquotes that precede the generateText, streamText, and error-handling examples down to a single reminder at the first code section.

DimensionReasoningScore

Conciseness

The content is domain-specific rather than explaining known concepts, but the same guardrails repeat extensively: the createModel anti-pattern list appears in the STOP section, the '⚠️ Common Mini Program mistake' block, and Best Practice #2; 'no model is enabled by default' recurs roughly six times; and an identical prerequisite blockquote precedes three code sections. This fits anchor 3 ('could be tightened') — not 2 because the length is guardrail repetition rather than unnecessary concept explanation, and not 4 because the duplication plus dated model ids scattered outside any deprecated section exceed 'minor instances'.

3 / 5

Actionability

Fully executable, copy-paste-ready guidance for every path: callCloudApi preflight calls with exact params, generateText/streamText examples, the CreateAIModel registration payload, concrete hit criteria ('attendRecords contains at least one entry where activityName === "ai_miniprogram_inspire_plan"'), and miss-handling with real URLs and placeholder- replacement warnings. Matches the anchor-5 'fully executable, specific examples cover the common cases' example.

5 / 5

Workflow Clarity

The two-step preflight has a fixed, explicit order ('① eligibility → ② group readiness. Do not swap the two'), explicit hit/miss validation for each branch, feedback loops ('if you hit InvalidParameter, switch casing and retry'; re-run DescribeAIModels after CreateAIModel; the UpdateAIModel full-replacement merge warning), and a self-verify checklist in Best Practice #13 (build, open in DevTools, confirm onText chunks, [DONE] termination, no new console errors). Matches anchor 5.

5 / 5

Progressive Disclosure

The single ~450-line SKILL.md inlines everything — type definitions, the JS/Node vs Mini Program comparison table, provider/model catalogs, and custom-onboarding details — that would fit one-level-deep reference files, and no reference files exist. Anchor 3 fits ('content that should be separate is inline' with good internal section structure); anchor 2's 'minimal structure / no section headers' does not, and the under-50-lines exception for scoring 5 does not apply.

3 / 5

Total

16

/

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.

The description is exemplary: it states concrete capabilities with API-level specifics, gives explicit positive and negative triggers in both English and Chinese, and cleanly disambiguates sibling skills. All four dimensions sit at the top anchor.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions with comprehensive coverage: 'generateText and streamText with callbacks (onText, onEvent, onFinish)', 'streamText needs a data wrapper, generateText returns the raw response', and 'createModel with groups hunyuan-exp (小程序成长计划), cloudbase (main managed), or custom-*'. Every clause names a concrete API behavior; voice is imperative/third-person, so no person-penalty applies.

5 / 5

Completeness

Explicitly answers both what ('Covers generateText and streamText with callbacks... Models via wx.cloud.extend.AI.createModel...') and when ('Use this skill for WeChat Mini Program AI via wx.cloud.extend.AI'), plus explicit when-not guidance with sibling-skill redirects. Matches the anchor-5 example pattern of concrete trigger phrases for both what and when.

5 / 5

Trigger Term Quality

Comprehensive natural-term coverage with synonyms across two languages: 'WeChat Mini Program AI', '小程序', 'wx.cloud apps', 'generateText', 'streamText', 'hunyuan-exp', 'cloudbase', plus exclusion triggers like 'browser/Web', 'Node.js backend', 'image generation'. A user needing this skill would naturally say these phrases; anchor 4 ('a few natural terms missing') does not fit.

5 / 5

Distinctiveness Conflict Risk

Clear niche (wx.cloud.extend.AI in WeChat Mini Program) with explicit exclusions — 'NOT for browser/Web (use ai-model-web), Node.js backend (use ai-model-nodejs), or image generation (use ai-model-nodejs)' — routing adjacent cases to sibling skills, so wrong-skill triggering risk is minimal.

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

config/source/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.