apohealth.de / apo-cli Skill
Search pharmacy products and manage cart on apohealth.de using apo-cli — a pure-Python CLI bundled in this skill at {baseDir}/apo_cli.py.
Setup
- 1. Python 3.9+ required (no external dependencies)
- No login needed — apohealth.de works without authentication
Critical Rules
- 1. NEVER complete a purchase — Only build cart. User must checkout themselves.
- Always provide the cart URL when interacting via chat:
https://www.apohealth.de/cart/<variant_id>:<qty>,<variant_id>:<qty>,... — the user cannot open a browser from the agent, so they need a clickable link. - Confirm before destructive actions (cart clear).
- Show prices when adding to cart so the user stays informed.
- PZN search — Users may provide a PZN (Pharmazentralnummer) directly; pass it as the search query.
CLI Usage
CODEBLOCK0
Core Workflows
Search Products
CODEBLOCK1
Product Details
CODEBLOCK2
Browse Categories
CODEBLOCK3
Cart
CODEBLOCK4
Status
CODEBLOCK5
Full Command Reference
For all commands, options, and flags see {baseDir}/references/commands.md.
apohealth.de / apo-cli 技能
使用 apo-cli 在 apohealth.de 上搜索药品并管理购物车——这是一个纯 Python 编写的 CLI 工具,包含在本技能中,位于 {baseDir}/apo_cli.py。
设置
- 1. 需要 Python 3.9+(无需外部依赖)
- 无需登录——apohealth.de 无需认证即可使用
关键规则
- 1. 切勿完成购买——仅构建购物车。用户必须自行结账。
- 在聊天交互时始终提供购物车链接:https://www.apohealth.de/cart/id>:,id>:,...——用户无法从代理打开浏览器,因此需要可点击的链接。
- 执行破坏性操作前需确认(清空购物车)。
- 添加商品到购物车时显示价格,以便用户了解信息。
- PZN 搜索——用户可能直接提供 PZN(药品中央编号);将其作为搜索查询传入。
CLI 使用方法
python3 {baseDir}/apo_cli.py <资源> <操作> [选项]
核心工作流程
搜索产品
bash
python3 {baseDir}/apo_cli.py search Ibuprofen 400 # 按名称搜索
python3 {baseDir}/apo_cli.py search 04114918 # 按 PZN 搜索
python3 {baseDir}/apo_cli.py search Nasenspray -n 20 # 更多结果
产品详情
bash
python3 {baseDir}/apo_cli.py product
# 价格、变体、描述
浏览分类
bash
python3 {baseDir}/apo_cli.py categories # 列出所有分类
python3 {baseDir}/apo_cli.py list --category bestseller # 浏览分类
python3 {baseDir}/apo_cli.py list --category schmerzen -n 10 # 限制数量
购物车
bash
python3 {baseDir}/apo_cli.py cart # 查看购物车
python3 {baseDir}/apocli.py cart add id> # 添加产品
python3 {baseDir}/apocli.py cart remove id> # 移除产品
python3 {baseDir}/apo_cli.py cart clear # 清空购物车 ⚠️
python3 {baseDir}/apo_cli.py cart checkout # 打开浏览器进行结账
状态
bash
python3 {baseDir}/apo_cli.py status # CLI 状态信息
完整命令参考
所有命令、选项和标志详见 {baseDir}/references/commands.md。