Slim Assistant: Multi-User Slimming Deployment & O&M Skill for WeChat Chat Scenarios

Introduction

A common approach to productizing a weight-loss plan is to build a form-and-button flow in an app or mini-program. If, however, you want users to simply report their weight and meals in natural language through WeChat chat, with the backend running on Tencent Cloud CloudBase, the ops side requires a simultaneous understanding of webhook integration, cloud functions, database collections, and the scheduled-reminder pipeline. Relying solely on generic documentation makes it hard for a coding agent to stay consistent when modifying configs, checking logs, or adding administrators.

Below is an introduction to the Slimming Assistant skill on SkillHub (identifier @user_1450e2eb/slimming-assistant, version 1.0.2). It documents the project’s architecture, API conventions, and operational steps in SKILL.md, so that an Agent can reference it during deployment and day-to-day operations. The tag requires_api_key=false indicates that enabling the Skill itself does not mandate an additional API Key (the DeepSeek and Official Account keys within the project still follow your own cloud development configuration).

What Is This

Slimming Assistant is a community-sourced Agent Skill categorized under life-service, maintained by publisher user_1450e2eb. Official API page: https://api.skillhub.cn/user_1450e2eb/slimming-assistant; SkillHub showcase page: https://www.skillhub.cn/skills/user_1450e2eb/slimming-assistant.

The Skill’s positioning is: Slimming Assistant Deployment & Operations—targeting a multi-user weight-loss management tool with a pure WeChat-chat AI interaction model. It connects to the WeChat AI agent (Crayfish) via webhook and supports scheduled reminders and data tracking. Once installed, the Agent will act as the ops expert for this WeChat AI chatbot project per the documentation, rather than guessing the directory structure from scratch.

Core Capabilities

Based on SKILL.md, the capabilities covered by the Skill can be grouped into the following categories (all explicitly documented behaviors; features not mentioned in the docs are excluded).

Business Layer (User Interactions via WeChat Chat)

  1. User Registration: The user sends “I want to join the slimming plan” and enters a multi-step registration flow.
  2. Weight Logging: Natural-language reporting, e.g., “Today I weigh 75 kg,” which is parsed and written to storage.
  3. Meal Logging: E.g., “Breakfast was porridge and an egg,” identifying the meal type and content.
  4. Report Viewing: Sending “Show this week’s report” returns a text-based statistical report.
  5. Scheduled Reminders: The scheduler cloud function checks every 5 minutes and pushes reminders via Official Account customer-service messages when the time arrives.
  6. Admin Operations: Administrators manage users directly in chat, e.g., “Set Zhang San’s weigh-in time to 08:00.”

Technical Architecture

The data flow described in the documentation is as follows:

WeChat User → WeChat AI Agent → Webhook → chat Cloud Function → DeepSeek API
                              ↓
                          Cloud Database
                              ↓
                      scheduler Cloud Function → Official Account CS Messages (Scheduled Reminders)

The project is deployed on Tencent Cloud CloudBase; the chat cloud function serves as the webhook endpoint for the WeChat AI agent.

Webhook Conventions

  • Request: { user_id: "openid", message: "user message" }
  • Response: { reply: "AI response content" }

In the WeChat Conversation Open Platform, point the skill webhook URL to the HTTP access address of the chat cloud function.

Operations & Data Model

The Skill also documents common operational actions: cloud function upload/deployment, creation of 5 database collections, log-viewing paths, the location of ADMINS and MP_CONFIG settings, and the field definitions for each collection (users, weight_records, meal_records, sent_messages, session_flows, admin_messages). Administrators can quickly register via “Admin Register Nickname” and use the admin command list in the documentation for user and platform management.

Installation & Activation

On the SkillHub side, the currently public information is: version 1.0.2, rating 100000, downloads 852, installations 0 (as shown on the fetched page). The exact one-click install commands for Cursor, Codex CLI, or Claude Code are not provided step-by-step in the available materials, so I will not fabricate CLI commands here. You can install it on the SkillHub page using the import method for your specific product with the following identifier:

@user_1450e2eb/slimming-assistant

After activation, simply guide the Agent into the “Slimming Assistant WeChat AI Chatbot Operations” context. If your environment supports automatic Skill matching by description, the front matter description reads:

name: slimming-assistant
description: Slimming Assistant deployment and operations. A multi-user weight-loss management tool with pure WeChat-chat AI interaction, connecting to the WeChat AI agent (Crayfish) via webhook, supporting scheduled reminders and data tracking.

Typical Usage

The following examples are all drawn from the Skill body text, making it easy to reproduce against the repository or the cloud development console.

1. Connecting to the WeChat AI Agent

Start with the webhook configuration: in the WeChat Conversation Open Platform, point the skill URL to the chat cloud function’s HTTP address, and ensure the request body carries user_id (openid) and message.

2. Initial Deployment & Data Layer

  1. In WeChat DevTools, right-click the cloud function and select “Upload and Deploy.”
  2. In the cloud development console, create 5 collections: users, weight_records, meal_records, sent_messages, session_flows (the documentation also lists admin_messages field definitions—create it alongside the others per the project code during deployment).

3. Admin & Official Account Reminders

Add the administrator’s WeChat openid to the ADMINS array in cloudfunctions/chat/index.js.

Fill in the Official Account AppID and AppSecret in MP_CONFIG within cloudfunctions/scheduler/index.js so that scheduled reminders can be delivered through the Official Account customer-service message channel.

4. Troubleshooting & Operations

Viewing logs: Cloud Development Console → Cloud Functions → chat / scheduler → Logs.

Example admin commands in chat (excerpt):

  • View all users
  • Set XX's weigh-in time to 08:00
  • Platform data
  • Notify XX: message content

Applicable Scenarios & Cautions

Who it suits:

  • Teams already using or planning to use Tencent Cloud CloudBase + WeChat Conversation Open Platform (Crayfish webhook) for multi-user weight-loss/coaching chatbots.
  • Maintainers who want a coding agent to help modify cloud functions, verify collection structures, and explain admin commands, rather than hand-writing an ops checklist every time.

Limitations & Cautions:

  1. The Skill focuses on deployment and operations knowledge; it does not include the full business source code. Actual code modifications still require access to the corresponding project repository and cloud development permissions.
  2. The pipeline depends on the WeChat AI agent, CloudBase cloud functions, the DeepSeek API, and Official Account customer-service messages. If any component is not configured, chat or reminders will fail—verify each item against the configuration list in SKILL.md.
  3. Multi-user behavior and natural-language parsing follow the project implementation. What the Skill lists are product-level commands and data-field conventions; after a version upgrade (currently 1.0.2), refer to the latest SKILL.md fetched from SkillHub.

Closing

As shown in the steps above, the Slimming Assistant skill distills WeChat-chat-based weight-loss management—from architecture and webhook to database tables and admin commands—into a single operations reference that an Agent can cite. It is well suited for repeated deployment and troubleshooting in life-service scenarios. To view metadata or check for updated versions, visit the official page: https://api.skillhub.cn/user_1450e2eb/slimming-assistant (showcase page: https://www.skillhub.cn/skills/user_1450e2eb/slimming-assistant).

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye