Xpersona
M

military bidding email

CLAWHUB · Unverified

军工采购(军采)商机专用推报工具。汇总三大军采平台数据,生成 Excel 并通过 SMTP 发送邮件报告。与政府采购(政采)工具无关,仅处理军队采购渠道。当用户说"milb-email"、"军工商机邮件"、"推送军工商机"、"军工商机通报"时触发。注意:这不是通用邮件客户端,仅用于执行 milb 业务逻辑。 Skill: military bidding email Owner: zhangpengle Summary: 军工采购(军采)商机专用推报工具。汇总三大军采平台数据,生成 Excel 并通过 SMTP 发送邮件报告。与政府采购(政采)工具无关,仅处理军队采购渠道。当用户说"milb-email"、"军工商机邮件"、"推送军工商机"、"军工商机通报"时触发。注意:这不是通用邮件客户端,仅用于执行 milb 业务逻辑。 Tags: latest:0.2.8 Version history: v0.2.8 | 2026-04-05T13:36:23.610Z | auto - Updated logic in milb_email/fetcher.py (details not shown). - No user-facing feature or interface changes documented. - All usag

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s17f8zn362dqdvydaw7pkk45es83ghqw:military-bidding-email
  1. Python environment detected. Create a strict virtual environment (`python -m venv .venv`) before installing dependencies to prevent system-level package conflicts.
  2. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-zhangpengle-military-bidding-email/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

42,117 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: milb-email
description: 军工采购(军采)商机专用推报工具。汇总三大军采平台数据,生成 Excel 并通过 SMTP 发送邮件报告。与政府采购(政采)工具无关,仅处理军队采购渠道。当用户说"milb-email"、"军工商机邮件"、"推送军工商机"、"军工商机通报"时触发。注意:这不是通用邮件客户端,仅用于执行 milb 业务逻辑。
metadata: {"openclaw":{"emoji":"📧","requires":{"bins":["milb-email","milb-fetcher"]},"install":"pip install -e {baseDir}"}}
---

# Milb Email

自动抓取商机并发送邮件报告。

## 环境变量要求

该技能必须在 `.env` 中配置以下核心参数才能激活:

- `EMAIL_TO`, `EMAIL_CC`, `EMAIL_FROM`: 收发件地址
- `EMAIL_SMTP_HOST`, `EMAIL_SMTP_PORT`: SMTP 服务器信息
- `EMAIL_SMTP_USER`, `EMAIL_SMTP_PASSWORD`: 认证信息
- `EMAIL_SUBJECT_PREFIX`, `EMAIL_BODY_INTRO`: 邮件模板配置
- `EMAIL_RECIPIENT_NAME`, `EMAIL_SENDER_NAME`: 称呼和签名

## 快速使用

- `/milb-email` → 发送昨日报告(默认,解决军队采购网白天更新的问题)
- `/milb-email --help` → 显示帮助信息
- `/milb-email --today` → 发送今日报告(获取各渠道最新数据)
- `/milb-email --date 2026-03-23` → 发送指定日期报告
- `/milb-email --keywords "模型,仿真"` → 使用自定义关键词筛选
- `/milb-email --to test@example.com` → 测试发送至指定收件人

## 参数说明

| 参数 | 说明 | 默认值 |
|------|------|--------|
| 无参数 | 默认昨日 | 启用 |
| `--today` | 今日(获取各渠道最新数据) | - |
| `--date YYYY-MM-DD` | 指定日期 | - |
| `--keywords WORDS` | 关键词,逗号分隔 | 配置中的默认关键词 |
| `--to ADDRESS` | 测试发送至指定收件人 | .env 中的配置 |

## 数据源

- 全军武器装备采购信息网
- 军队采购网
- 国防科大采购信息网

## 触发词

发送邮件、推送报告、邮件通知、商机通报

## 配置文件

配置文件位于 `milb_email/.env`(独立配置),可配置以下参数:

| 环境变量 | 用途 |
|----------|------|
| `EMAIL_TO` | 收件人,逗号分隔 |
| `EMAIL_CC` | 抄送人,逗号分隔 |
| `EMAIL_FROM` | 发件人 |
| `EMAIL_RECIPIENT_NAME` | 收件人称呼 |
| `EMAIL_SENDER_NAME` | 发件人签名 |
| `EMAIL_SUBJECT_PREFIX` | 邮件主题前缀 |
| `EMAIL_BODY_INTRO` | 邮件正文开头 |
| `EMAIL_SMTP_HOST` | SMTP 服务器 |
| `EMAIL_SMTP_PORT` | SMTP 端口 |
| `EMAIL_SMTP_USER` | SMTP 用户名 |
| `EMAIL_SMTP_PASSWORD` | SMTP 密码 |

创建配置文件可复制 `milb_email/.env.example` 为 `milb_email/.env` 后修改。

## 技术说明

- 数据来源:全军武器装备采购信息网、军队采购网、国防科大采购信息网(均为军采渠道,非政采)
- 使用 SMTP 直接发送邮件(配置 EMAIL_SMTP_* 环境变量)
- 使用文件锁防止并发执行

_meta.json

{
  "ownerId": "kn7egg3a3hx7nftrgxb1s3aj7s838fg5",
  "slug": "military-bidding-email",
  "version": "0.2.8",
  "publishedAt": 1775396183610
}

CLAUDE.md

# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

## Project Overview

`milb-email` is a Chinese military bidding opportunity email reporting tool. It fetches bidding information from three data sources, generates Excel reports, and sends them via email.

## Commands

```bash
# Install package
pip install -e .

# Run the tool (sends yesterday's report by default)
milb-email

# Send today's report (fetches latest data from all channels)
milb-email --today

# Send report for specific date
milb-email --date 2026-03-23

# Use custom keywords to filter opportunities
milb-email --keywords "模型,仿真,AI"

# Test send to specific recipient
milb-email --to test@example.com
```

## Architecture

**Core Modules:**
- `milb_email/fetcher.py` - Main entry point, handles CLI arguments, fetches data, sends emails
- `milb_email/config.py` - Configuration loader, reads from `.env` file

**Data Flow:**
1. CLI parses arguments (`--date`, `--today`, `--keywords`, `--to`)
2. Calls `milb_fetcher.fetcher.fetch_all_bidding()` to fetch data from three sources
3. Generates email body with high-recommendation items
4. Sends email via SMTP (smtplib)
5. Attaches Excel report from `/home/ubuntu/.openclaw/workspace/military-bidding/`

**Email Sending:**
- SMTP via smtplib (SMTP_SSL, port 465)
- File lock at `/tmp/bidding_email.lock` prevents concurrent execution

## Configuration

All config via `.env` file (see `.env.example`):
- Email addresses: `EMAIL_TO`, `EMAIL_CC`, `EMAIL_FROM`
- SMTP: `EMAIL_SMTP_HOST`, `EMAIL_SMTP_PORT`, `EMAIL_SMTP_USER`, `EMAIL_SMTP_PASSWORD`
- Templates: `EMAIL_SUBJECT_PREFIX`, `EMAIL_BODY_INTRO`, `EMAIL_RECIPIENT_NAME`, `EMAIL_SENDER_NAME`

skill-card.md

## Description:

A military procurement opportunity reporting skill that gathers data from three military procurement channels, generates an Excel report, and sends the report by SMTP email.

This skill is ready for commercial/non-commercial use.

## Publisher:

[zhangpengle](https://clawhub.ai/user/zhangpengle)

### License/Terms of Use:

MIT-0

## Use Case:

External users and operators use this skill to collect Chinese military procurement opportunities, filter them by date or keywords, and send a summarized email report with an Excel attachment.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can send outbound email without an interactive confirmation step, which may cause unintended reports to reach configured recipients.

Mitigation: Use a dedicated SMTP account or app password, keep EMAIL_TO and EMAIL_CC limited to intended recipients, and test with the --to option before routine use.

Risk: Broad trigger phrases may invoke the reporting workflow when the user intended a different email-related action.

Mitigation: Review the command and selected date, keywords, and recipient settings before execution, and prefer adding a preview or confirmation step in production workflows.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/zhangpengle/skills/military-bidding-email)
- [ClawHub publisher profile](https://clawhub.ai/user/zhangpengle)

## Skill Output:

**Output Type(s):** [Text, Files, Shell commands, Configuration]

**Output Format:** [Plain-text email summary with an Excel report attachment and CLI status output]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires SMTP and recipient configuration before sending reports.]

## Skill Version(s):

0.2.8 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

pyproject.toml

[project]
name = "milb-email"
version = "0.1.0"
description = "军工采购商机邮件发送工具"
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
    "requests",
    "pandas",
]

[project.scripts]
milb-email = "milb_email.fetcher:main"

[tool.setuptools.packages.find]
where = ["."]

Sponsored

Ads related to military bidding email and adjacent AI workflows.