技能 meituan-printer
🖨️

meituan-printer

中風險 🌐 網路存取⚙️ 外部命令📁 檔案系統存取⚡ 包含腳本

將任務清單和收據列印到美團熱敏印表機

餐廳員工需要手動列印廚房操作的任務清單和收據,既耗時又容易出錯。本技能使 AI 助理能夠透過區域網路將格式化任務清單、檢查表和收據直接發送到美團熱敏印表機。

支援: Claude Codex Code(CC)
⚠️ 67
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「meituan-printer」。 Print this shift checklist on the kitchen printer: Morning shift tasks: -------09:00------- Open station Check inventory -------10:00------- Restock items

預期結果:

Successfully sent task list to kitchen printer (192.168.3.100:9100). The formatted task list will print with timestamp, station header, and time-blocked sections.

正在使用「meituan-printer」。 Add a new printer with IP 192.168.3.150, port 9100, and call it 'dessert station'

預期結果:

Printer 'dessert station' added successfully. Connection test: reachable. You can now print to this printer using the alias 'dessert station'.

正在使用「meituan-printer」。 Show me all configured printers

預期結果:

Configured printers:
| Alias | IP Address | Port | Type |
|-------|-----------|------|------|
| kitchen | 192.168.3.100 | 9100 | main kitchen |
| dessert station | 192.168.3.150 | 9100 | dessert |
| front desk | 192.168.3.200 | 9100 | reception |

安全審計

中風險
v1 • 4/25/2026

This is a legitimate printer integration skill for Meituan thermal receipt printers. Static findings are largely false positives or over-classifications. Hex-encoded bytes are standard ESC/POS printer commands, not obfuscation. External commands are for legitimate printer operations. The risk level is MEDIUM due to network access to local printers, shell command execution for printer management, and web interface functionality.

17
已掃描檔案
3,852
分析行數
13
發現項
1
審計總數

高風險問題 (3)

Hex-encoded ESC/POS Commands
The skill uses hex-encoded byte sequences (like b'\x1B\x40') which are standard ESC/POS printer control commands. These are NOT obfuscation - they are the industry-standard protocol for thermal receipt printers. This is false positive from static scanner.
System Task Scheduling (launchd/schtasks)
The skill can create macOS launchd agents and Windows scheduled tasks for automated printing. This is an intentional feature, not a blocker. User consent is required before system-level task creation.
Weak Cryptographic Algorithm (MD5)
Code references MD5 for printer authentication. However, this is the legacy protocol used by Meituan thermal printers - not a security vulnerability of the skill itself but a limitation of the hardware protocol.
中風險問題 (4)
Hardcoded IP Addresses in Examples
Example configurations contain hardcoded IP addresses (192.168.x.x). These are example placeholders in config.example.json and documentation, not actual credentials.
innerHTML Usage in Web Interface
The web admin interface uses innerHTML for dynamic content rendering. While this is a potential XSS vector, the interface runs on localhost only and does not process external user input.
Python subprocess.run for Printer Operations
The skill uses subprocess.run to execute printer-related commands. Arguments are constructed from config files, not direct user input, reducing injection risk.
Temporary Directory Access
The skill writes temporary log files to /tmp directory for scheduled task debugging. Standard temp file usage with user-owned paths.
低風險問題 (2)
Hardcoded URLs in Documentation
Documentation contains hardcoded URLs for local service endpoints (localhost:5000). These are standard for local development/demo purposes.
Environment Configuration Access
The skill reads environment configuration for Python path detection and platform identification. Standard environment variable usage for cross-platform compatibility.
審計者: claude

品質評分

77
架構
100
可維護性
87
內容
50
社群
15
安全
83
規範符合性

你能建構什麼

廚房任務清單列印

餐廳廚房員工可以要求 AI 列印特定工作站的任务清單(例如「列印素菜工作站任務清單」)。AI 會將任務清單格式化並發送到正確的印表機。

排程班次提醒列印

配置自動每日或每週列印檢查清單。AI 協助設定排程任務,在特定時間自動執行,無需手動操作。

客戶訂單收據列印

在前臺印表機列印客戶訂單的格式化收據。AI 協助生成並發送格式正確的收據。

試試這些提示

簡單列印請求
Print the following task list on the kitchen printer: [task content]
指定印表機列印
Send this inspection checklist to the vegetable station printer: [content]
新增印表機
Add a new printer with IP [IP address], port [port], and call it [alias]
排程循環列印任務
Set up a daily print task that prints [content] at [time] on the [printer name] printer

最佳實務

  • 使用描述性的中文別名命名印表機,讓選擇更加直觀(例如「後廚」、「素菜崗」、「前廳酒水」)
  • 在首次列印前測試印表機連線,確保配置正確
  • 將印表機保持在穩定的區域網路區段中,以確保可靠運行

避免

  • 不要列印機密資訊,例如客戶付款詳情或個人資料
  • 避免列印極大的文件;本技能專為任務清單和收據優化
  • 不要與未授權使用者分享印表機 IP 位址,因為他們可能發送不必要的列印工作

常見問題

如何配置新印表機?
告訴 AI 印表機的 IP 位址、連接埠(通常為 9100),並選擇一個別名。AI 會測試連線並儲存配置。
我可以列印圖片或標誌嗎?
不行,本技能僅支援文字列印。標準熱敏收據印表機無法列印複雜圖形。
排程任務如何運作?
您可以設定每日、每週或每月的列印任務。本技能可以將這些任務匯出到您的作業系統工作排程器,以確保可靠執行。
如果印表機不在同一網路怎麼辦?
印表機必須在您的區域網路內可存取。可能需要 VPN 或網路橋接來實現遠端印表機存取(不支援官方)。
如何使用 Web 管理介面?
在 macOS 上執行 start.command 指令碼,或在 Windows 上執行 start.bat,然後在瀏覽器中開啟 http://localhost:5000。
支援哪些印表機品牌?
本技能專為使用 ESC/POS 協定的美團熱敏收據印表機設計。其他支援 ESC/POS 的印表機也可能相容。