Mining Rights Daily Agent — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mining Rights Daily Agent (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
一个面向矿业研究场景的 MCP(Model Context Protocol)作品:3 个独立 MCP Server 由 1 个 Agent Client 编排,生成带数据状态和引用源的中文矿权日报。
UNAVAILABLE;只有显式离线模式才使用 DEMO。Natural-language request
|
v
Agent Client
/ | \
v v v
News PDF Price
MCP MCP MCP
\ | /
cited Markdown brief| Server | Tool | 说明 |
|---|---|---|
mining-news-mcp | search(query, days) | 搜索近期公开矿业新闻 |
fetch_article(url) | 提取公开网页正文 | |
mineral-pdf-mcp | extract_resources(pdf_url) | 抽取 Indicated/Inferred 资源量及页码证据 |
lme-price-mcp | get_price(commodity, date) | 获取最近公开市场观测 |
get_trend(commodity, days) | 获取序列并计算涨跌趋势 |
每个工具统一返回:
{
"data": {},
"source_url": "https://...",
"retrieved_at": "ISO-8601 UTC",
"data_status": "live | demo | unavailable",
"error": null
}python -m pip install uv==0.11.23
uv sync --locked --extra devuv sync 会自动创建 .venv;CLI 会自动读取项目根目录中的 .env。
离线确定性演示:
MINING_AGENT_OFFLINE=1 uv run python -m agent "给我生成一份关于 Pilbara 锂矿的今日简报"Windows PowerShell:
$env:MINING_AGENT_OFFLINE="1"
uv run python -m agent "给我生成一份关于 Pilbara 锂矿的今日简报"完整说明见 RUN.md,样例见 examples/pilbara-brief.md。
| 文档 | 内容 |
|---|---|
| 运行指南 | Docker、本地 Python、模型配置和客户端接入 |
| 系统架构 | 组件关系、数据流、可靠性与扩展方向 |
| 数据契约 | MCP 通用响应及各领域字段定义 |
| 设计决策 | 技术取舍、原因和已知限制 |
| 面试演示脚本 | 五分钟演示顺序与常见追问 |
| 贡献指南 | 开发、测试和提交约束 |
pypdf 文本抽取与保守正则;支持从吨位和品位计算 Li2O、Cu 或 Au 金属量。DEMO 只由 MINING_AGENT_OFFLINE=1 或 demo:// 输入触发;线上异常不会自动替换成演示事实。lithium、copper、nickel 和 zinc;未知矿种会返回 UNAVAILABLE。uv run ruff check .
uv run ruff format --check .
uv run mypy agent common mining_news_mcp mineral_pdf_mcp lme_price_mcp
uv run pytest --cov20 项测试覆盖新闻/PDF/价格、SSRF 与响应限制、引用去重、MCP stdio 和离线端到端简报; 当前覆盖率门槛为 70%。 GitHub Actions 还会验证 Docker Compose、构建镜像、执行容器冒烟测试和 CodeQL 扫描。 依赖通过 uv.lock 固定,CI 与 Docker 均以 locked 模式安装,避免解析结果漂移。
.env 已被 Git 忽略。main 分支保护。MIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.