About eliteforge-qingtui-cli
eliteforge-qingtui-cli is a skill for user lookup and text messaging through the QingTui CLI, for users who operate QingTui from the command line. It prescribes dependency and environment checks, installation or upgrades, and consulting command help before use.
Key features
- 01Check Python, pipx, and jq dependencies
- 02Validate required environment variables
- 03Install or upgrade QingTui CLI
- 04List users and resolve user IDs
- 05Send text messages to selected users
Use cases
- 01Resolve a user's OpenID from a phone number
- 02Send a text to a specific QingTui user
- 03Review command options before executing tasks
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ cloudsen/ eliteforge-skills --skill eliteforge-qingtui-cliAfter installing, type/eliteforge-qingtui-cliin Claude Code to confirm it loaded.
Bundled filesagents/openai.yaml
Details
From the project READMEEliteForge QingTui CLI
依赖准备
以下工具不存在,先尝试自动安装:
- python3
- pipx
- jq 上下文或环境变量中的内部变量缺失,终止运行,提示用户补全相关变量。
工作流
- 先确认依赖和变量可用。
- 每次使用前都检查
eliteforge-qingtui-cli是否已安装。- 未安装时执行:
pipx install eliteforge-qingtui-cli
- 未安装时执行:
- 每次使用前都执行:
pipx upgrade eliteforge-qingtui-cli - 先看帮助再执行具体命令,避免硬编码能力说明。
- 总帮助:
qingtui -h - 用户列表:
qingtui list-users -h - 用户解析:
qingtui resolve-users -h - 文本发送:
qingtui send-text -h
- 总帮助:
- 按用户目标执行命令,可编写脚本自行编排接口。
- 涉及发送时,优先确认收件人来源,避免混淆
--user-name、--user-login、--open-id。
使用案例
向特定用户发送文本消息:
# 先通过用户手机号获取openid
openid=$(qingtui resolve-users --user-login '13800138000' | jq -r '.open_ids[0]')
# 发送文本消息
qingtui send-text --open-id $openid --content "Hello Alice!"
Environment Variables
ELITEFORGE_SKILL_QINGTUI_APPID[required] QingTui light app ID.ELITEFORGE_SKILL_QINGTUI_SECRET[required] QingTui light app secret.ELITEFORGE_SKILL_QINGTUI_API_BASE[optional] API base URL; defaults tohttps://open.qingtui.com.ELITEFORGE_SKILL_QINGTUI_USER_LIST_MAX_PAGES[optional] Maximum pages to fetch when listing users; defaults to5.ELITEFORGE_SKILL_QINGTUI_USER_LIST_PAGE_SIZE[optional] Page size when listing users; defaults to1000.ELITEFORGE_SKILL_QINGTUI_MESSAGE_MAX_LENGTH[optional] Maximum text message length; defaults to500.
Output Rules
- 输出保持简洁,必要时可配合
jq等Linux管道工具,处理接口JSON响应。 - 失败时返回实际执行的命令和关键报错。
- 需要更多命令说明时,继续引导查看对应
-h。
Comments
Markdown supported