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

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

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.

The body delivers exceptionally actionable, SDK-specific guidance with a rigorous preflight workflow and explicit validation checkpoints — top marks for actionability and workflow clarity. Its weaknesses are token efficiency (critical warnings repeated across three to four sections) and progressive disclosure (a monolithic ~395-line file with type definitions and catalog detail inlined that belong in reference files).

Suggestions

Consolidate the repeated guardrails — "never assume a model is enabled", "Models is a full replacement", and the createModel legal-argument rules each appear in 3-4 places (decision procedure, preflight, provider catalog, Best Practices) — into one authoritative section referenced from the others.

Move the TypeScript Type Definitions section and the detailed provider/model catalog into a references/ file (e.g. references/types.md, references/models.md), keeping SKILL.md as an overview with clearly signaled one-level-deep links.

Trim the routing enumerations (Node.js proxy / Mini Program / image generation exclusions) that appear nearly verbatim in the frontmatter description, the routing default callout, the Do NOT use list, and Best Practices, stating them fully once.

DimensionReasoningScore

Conciseness

The body is information-dense with non-obvious SDK facts (exact callCloudApi actions, casing fallbacks, offline dates), but critical warnings are repeated many times — "never assume the model is enabled" appears in the decision procedure, preflight step 2/3, the provider section, and Best Practices, and the createModel guardrail spans three separate sections. This matches "mostly efficient but could be tightened" (3): clearly above padded verbosity (2) since nearly all content is novel, but the duplicated guardrails exceed "minor instances" (4).

3 / 5

Actionability

Fully executable throughout: exact MCP invocations with complete params (e.g. callCloudApi(service="tcb", action="DescribeAIModels", params={ EnvId })), copy-paste-ready JS for init/generateText/streamText with all three stream-consumption options, try/catch error handling, TypeScript type definitions, and a templated purchase URL. Specific examples cover the common cases, matching the level-5 anchor.

5 / 5

Workflow Clarity

The mandatory two-step preflight is explicitly sequenced (Step 0 EnvId → ① eligibility pass conditions with a stop-and-surface branch → ② group readiness with numbered decision branches) and includes feedback loops (verify via DescribeAIModels, enable via UpdateAIModel, re-verify after onboarding) plus a self-verify checklist (tsc --noEmit, browser test, non-zero usage) and explicit failure-mode distinction. This matches the level-5 anchor with explicit validation steps and checklists.

5 / 5

Progressive Disclosure

No bundle files exist (references/, scripts/, assets/ are absent), so the skill is a monolithic ~395-line SKILL.md. Section headers are clear and sibling-skill pointers are well signaled, but reference material is inlined — the TypeScript Type Definitions section, the provider/model catalog, and the custom-onboarding API details would naturally live in one-level-deep reference files. This matches "some structure but content that should be separate is inline" (3), kept above 2 by the genuinely good header organization.

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.

This is an exemplary skill description: it names concrete API capabilities (generateText, streamText, ai.createModel groups, preflight), provides explicit positive and negative trigger guidance with extensive natural-language and multilingual keywords, and cleanly disambiguates against all sibling skills. It earns top marks on every dimension.

DimensionReasoningScore

Specificity

"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 "MUST run two-step preflight before code" lists multiple specific concrete actions with comprehensive coverage of the SDK surface, matching the level-5 anchor rather than level-4 (minor gaps) since every core capability is named. Voice is third-person/imperative with no first/second-person penalty.

5 / 5

Completeness

It explicitly answers "what" ("Covers generateText and streamText; models via ai.createModel with groups...") and "when" ("Use this skill when a browser/Web app ... needs AI models via @cloudbase/js-sdk") with concrete trigger phrases, plus explicit negative scope ("NOT for Node.js backend ..., Mini Program ..., or image generation") — the level-5 anchor fit, not 4 whose 'when' is less explicit.

5 / 5

Trigger Term Quality

"browser/Web app (React, Vue, Next, Nuxt, static sites, SPAs, dashboards, AI chat UI, 页面, 前端, 网页)" gives comprehensive natural-term coverage including multilingual synonyms users would actually say; only trivial gaps (e.g. "chatbot", "LLM") keep it from being perfect, but this clearly matches the comprehensive-synonyms anchor at 5 rather than "a few natural terms missing" at 4.

5 / 5

Distinctiveness Conflict Risk

It carves a clear browser-only niche ("@cloudbase/js-sdk ... call directly from the browser, do NOT propose a Node.js proxy") and explicitly disambiguates every adjacent skill (ai-model-nodejs, ai-model-wechat, http-api-cloudbase, image generation), giving minimal conflict risk per the level-5 anchor rather than level-4's "minor overlap risk".

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

plugin/cloudbase/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.