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.
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Medium
Suggest reviewing before use
The canonical home for this skill is ai-model-wechat in TencentCloudBase/CloudBase-AI-Toolkit
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.
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.
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.
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.
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.
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.
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.
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.
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.