CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

ai-model-web

This skill guides agents integrating `@cloudbase/js-sdk` AI text generation and streaming into browser applications, including model-group selection, authentication requirements, and error handling. It requires eligibility and model-readiness checks before SDK code, and explains how to enable managed models or onboard custom ones. It also provides implementation examples and verification guidance.

Quality

90%

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

SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

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.

A highly actionable, workflow-driven body with excellent preflight validation loops and executable code throughout. Its weaknesses are token efficiency — the same model-enablement procedure is systematically repeated across four-plus sections — and progressive disclosure, since a ~395-line monolith inlines API reference material that would be better split into a references file.

Suggestions

State the DescribeAIModels → DescribeManagedAIModelList → UpdateAIModel enablement procedure once (in preflight ②) and reference it from the STOP table, decision procedure, and Best Practices instead of restating it each time; do the same for the camelCase-fallback note.

Move the Type Definitions section and the Available Providers and Models catalog into a references/ file (e.g. references/models.md) and keep a one-line pointer plus the four legal createModel values in SKILL.md.

Consolidate the anonymous-auth guidance: the Initialization callout and Best Practice #10 cover the same ground; keep the code-adjacent version and shorten the list item to a pointer.

DimensionReasoningScore

Conciseness

All content is SDK-specific contract knowledge Claude cannot know (no generic-concept padding), but the DescribeAIModels → DescribeManagedAIModelList → UpdateAIModel enable workflow is restated four or more times (STOP table, decision procedure, preflight ②, providers section, best practices), and the camelCase-fallback and anonymous-auth warnings each repeat 2–3 times. The systematic duplication goes beyond the 'minor instances' of the anchor at 4, fitting 'mostly efficient but could be tightened'.

3 / 5

Actionability

Every section is copy-paste executable: complete init/generateText/streamText/error-handling code blocks, exact MCP invocations with full params (e.g. callCloudApi(service="tcb", action="UpdateAIModel", params={...})), a parameterized purchase URL, and full TypeScript type definitions — matching the fully-executable anchor with common cases covered.

5 / 5

Workflow Clarity

The two-step preflight is an explicitly sequenced workflow with pass/fail conditions ('status is NOT in [3, 4]', 'Status=1'), a stop-and-surface feedback loop with a purchase link and re-check, full-replacement resend logic for UpdateAIModel, prerequisites gating each code section, and a final self-verification checklist (tsc --noEmit, build, browser-test the live AI call). This matches the anchor with explicit validation steps, feedback loops, and checklists.

5 / 5

Progressive Disclosure

The body is a single ~395-line file with no bundle files; sections are well-headered and sibling-skill references (../auth-tool-cloudbase/SKILL.md, ai-model-wechat, web-development/browser-testing.md) are clearly signaled, but large chunks of API reference — the Type Definitions section and the provider/model catalog — are inlined where they belong in a separate reference file, matching the 'content that should be separate is inline' anchor at 3 rather than the 'most content appropriately placed' anchor at 4.

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.

An exemplary description: it states explicit trigger conditions with rich natural synonyms (including Chinese terms), names the concrete API surface (generateText, streamText, ai.createModel groups, the model field), and cleanly fences off sibling skills with negative triggers. Dense but every clause earns its place.

DimensionReasoningScore

Specificity

The description enumerates concrete actions comprehensively: 'Covers generateText and streamText; models via ai.createModel with groups cloudbase, the legacy hunyuan-v3 / hunyuan-exp, or custom-*, model id in the `model` field' plus the mandatory 'two-step preflight'. Every capability of the skill is named with the exact SDK surface, matching the comprehensive-coverage anchor rather than the minor-gaps anchor at 4.

5 / 5

Completeness

It explicitly answers both questions: 'Use this skill when a browser/Web app ... needs AI models via @cloudbase/js-sdk' gives the when with concrete trigger phrases, and the generateText/streamText/createModel/preflight enumeration gives the what.

5 / 5

Trigger Term Quality

'browser/Web app (React, Vue, Next, Nuxt, static sites, SPAs, dashboards, AI chat UI, 页面, 前端, 网页)' covers the full natural vocabulary users would say — framework names, app types, and Chinese-language synonyms — leaving no common variation missing.

5 / 5

Distinctiveness Conflict Risk

It carves out a clear niche (browser/Web frontend AI via @cloudbase/js-sdk) and actively disambiguates sibling skills: 'NOT for Node.js backend (use ai-model-nodejs), Mini Program (use ai-model-wechat), or image generation (Node SDK only)', minimizing wrong-skill triggering.

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