CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

ai-model-wechat

This skill explains how to select a valid model group and model, verify billing eligibility and group readiness, and use `generateText` or `streamText` in a Mini Program. It also covers image input, streaming callbacks, error handling, and safeguards such as keeping API keys out of client code. Follow the ordered preflight before writing business code, and verify the flow in WeChat DevTools.

Quality

88%

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
Medium

E004: Prompt injection in skill

What this means

Detected a prompt injection in the skill instructions. The skill contains hidden or deceptive instructions that fall outside its stated purpose and attempt to override the agent’s safety guidelines or intended behavior.

Why it was flagged

The skill is a legitimate WeChat Mini Program AI integration guide, but its preflight has the agent call `UpdateAIModel` to enable billable models in the user's environment as a default step, which changes billing-relevant configuration beyond what the user asked for.

Report incorrect finding
Low

W007: Insecure credential handling in skill

What this means

The skill handles credentials insecurely by requiring the agent to include secret values verbatim in its generated output. This exposes credentials in the agent’s context and conversation history, creating a risk of data exfiltration.

Why it was flagged

The only credential-bearing flow is the `CreateAIModel` example, which writes an API key into a `callCloudApi` tool call as an alternative to the console path, so the value enters model context only on that optional branch.

Low

W011: Exposure to untrusted third-party content

What this means

The skill exposes the agent to untrusted, user-generated content from public third-party sources, creating a risk of indirect prompt injection. This includes browsing arbitrary URLs, reading social media posts or forum comments, and analyzing content from unknown websites.

Why it was flagged

The multimodal OCR path ingests user-selected images (via `wx.chooseMedia`, then sent to the model as `image_url` blocks), which may be third-party documents such as receipts or forms, so this is user-directed external content the agent does not select from an outsider-writable feed, making it low rather than medium.

Low

W013: System service modification

What this means

The skill prompts the agent to compromise the security or integrity of the user’s machine by modifying system-level services or configurations, such as obtaining elevated privileges, altering startup scripts, or changing system-wide settings.

Why it was flagged

The skill gives instructions to call tcb operations (UpdateAIModel, CreateAIModel, DeleteAIModel) that change model-group configuration in a remotely managed cloud environment, but no explicit text establishes unrecoverable operational loss, so the skill fails the irreversible-loss gate and is capped at low.

Repository

TencentCloudBase/CloudBase-AI-Toolkit

Path

config/.claude/skills/ai-model-wechat/SKILL.md

Audited
Security analysis
Snyk

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.