用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/qhkm/zeptoclaw-skills --skill make-invoice命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Give your agent a standalone on-chain wallet for gasless trades, funding, and autonomous x402 M2M payments.
Deploy ERC20 tokens on Base, Ethereum, Arbitrum, and other EVM chains using the Clanker SDK. Use when the user wants to deploy a new token, create a memecoin, set up token vesting, configure airdrops, manage token rewards, claim LP fees, or update token metadata. Supports V4 deployment with vaults, airdrops, dev buys, custom market caps, vanity addresses, and multi-chain deployment.
AI-powered crypto trading agent and LLM gateway via natural language. Use when the user wants to trade crypto, check portfolio balances, view token prices, transfer crypto, manage NFTs, use leverage, bet on Polymarket, deploy tokens, set up automated trading, sign and submit raw transactions, or access LLM models through the Bankr LLM gateway funded by your Bankr wallet. Supports Base, Ethereum, Polygon, Solana, and Unichain.
基于 SOC 职业分类
正在显示 SKILL.md
| name | make-invoice |
| version | 1.0.0 |
| description | Generate professional HTML/PDF invoices from order data and email them to customers. |
| author | ZeptoClaw |
| license | MIT |
| tags | ["invoice","billing","pdf","ecommerce"] |
| env_needed | [{"name":"INVOICE_COMPANY_NAME","description":"Your company name (e.g. Kedai Ahmad Sdn Bhd)","required":true},{"name":"INVOICE_COMPANY_ADDRESS","description":"Company address for invoice header","required":false},{"name":"INVOICE_CURRENCY","description":"Currency code: MYR, SGD, USD, THB, IDR","required":false}] |
| metadata | {"zeptoclaw":{"emoji":"🧾","requires":{"anyBins":["python3","wkhtmltopdf"]}}} |
Generate professional invoices as HTML or PDF. Works for any order — Lazada, Shopee, manual, or custom.
export INVOICE_COMPANY_NAME="Kedai Ahmad Sdn Bhd"
export INVOICE_COMPANY_ADDRESS="No 12, Jalan Usahawan, 47500 Subang Jaya, Selangor"
export INVOICE_CURRENCY="MYR"
Install wkhtmltopdf (for PDF output):
# macOS
brew install wkhtmltopdf
# Ubuntu/Debian
sudo apt install wkhtmltopdf
cat > /tmp/invoice.py << 'EOF'
import os, sys, json
from datetime import datetime
data = json.load(sys.stdin)
company = os.environ.get("INVOICE_COMPANY_NAME", "My Company")
address = os.environ.get("INVOICE_COMPANY_ADDRESS", "")
currency = os.environ.get("INVOICE_CURRENCY", "MYR")
inv_no = data.get("invoice_number", f"INV-{datetime.now().strftime('%Y%m%d%H%M')}")
customer = data.get("customer", {})
items = data.get("items", [])
total = sum(i["quantity"] * i["unit_price"] for i in items)
rows = "\n".join(f"""
<tr>
<td>{i['description']}</td>
<td style="text-align:right">{i['quantity']}</td>
<td style="text-align:right">{currency} {i['unit_price']:.2f}</td>
<td style="text-align:right">{currency} {i['quantity']*i['unit_price']:.2f}</td>
</tr>""" for i in items)
(futf-8metatext-align:rightmetametametatext-align:righttext-align:righttext-align:right3text-align:righttotaltext-align:righttotalmargin-top:40px;color:#666)
EOF
<< | python3 /tmp/invoice.py > /tmp/invoice-INV001.html
{
: ,
: {
: ,
: ,
:
},
: [
{: , : 2, : 49.90},
{: , : 1, : 8.00}
],
:
}
INVOICE_DATA
wkhtmltopdf --quiet /tmp/invoice-INV001.html /tmp/invoice-INV001.pdf
echo "PDF saved: /tmp/invoice-INV001.pdf"
ATTACHMENT=$(base64 -i /tmp/invoice-INV001.pdf)
curl -s -X POST "https://api.resend.com/emails" \
-H "Authorization: Bearer $RESEND_API_KEY" \
-H "Content-Type: application/json" \
-d "{
\"from\": \"$EMAIL_FROM\",
\"to\": [\"siti@example.com\"],
\"subject\": \"Invoice INV-2026-001 from $INVOICE_COMPANY_NAME\",
\"text\": \"Dear Siti,\n\nPlease find your invoice attached.\n\nTotal: MYR 107.80\n\nThank you!\",
\"attachments\": [{
\"filename\": \"invoice-INV001.pdf\",
\"content\": \"$ATTACHMENT\"
}]
}" | jq -r '.id'
# invoices.csv: invoice_number,customer_name,customer_email,description,quantity,unit_price
while IFS=, read -r inv_no name email desc qty price; do
cat << EOF | python3 /tmp/invoice.py > "/tmp/invoice-${inv_no}.html"
{"invoice_number":"$inv_no","customer":{"name":"$name","email":"$email"},"items":[{"description":"$desc","quantity":$qty,"unit_price":$price}]}
EOF
wkhtmltopdf --quiet "/tmp/invoice-${inv_no}.html" "/tmp/invoice-${inv_no}.pdf"
echo "Generated: invoice-${inv_no}.pdf"
done < invoices.csv
invoice_number as a unique ID — include year prefix (e.g. INV-2026-001){"description": "SST 8%", "quantity": 1, "unit_price": total * 0.08}~/.zeptoclaw/scripts/invoice.py) for reuse