claude-for-legal
Reference agents, skills, and data connectors for legal teams, covering AI governance work such as EU AI Act system inventories, impact assessments, and matter workspaces that keep each client's context separate.
A Chinese-language bidding assistant for Claude Code that interprets tender documents, generates bid text, checks bids for compliance, and formats the final Word document.
Claude Code
$ npx -y skills add guangshu100/BidMaster-Pro --agent claude-code
Codex
$ npx skills add guangshu100/BidMaster-Pro -a codex
Cursor
$ npx skills add guangshu100/BidMaster-Pro -a cursor
Gemini CLI
$ npx skills add guangshu100/BidMaster-Pro -a gemini-cli
GitHub Copilot
$ npx skills add guangshu100/BidMaster-Pro -a github-copilot
OpenCode
$ npx skills add guangshu100/BidMaster-Pro -a opencode
Windsurf
$ npx skills add guangshu100/BidMaster-Pro -a windsurf


AI 智能招投标助手 · 标书生成 · 投标生成 · 投标检查 · 文档排版 全流程自动化
功能特性 • 界面预览 • 技术架构 • 快速开始 • 项目结构 • 联系作者
🚀 全流程智能招投标 Agent:4 阶段流水线(招标解读 / 投标生成 / 投标检查 / 文档排版),多 Agent 协同 + 可编排工作流,21 项专业合规检查规则、多 LLM 供应商灵活切换(DeepSeek / 硅基流动 / OpenAI / 通义等),轻量级 Skill 引擎 + 可插拔能力,RAG 知识库(支持语义重排与公司画像过滤),MinerU 扫描件 OCR 抽取,商机监控 + 今日热点聚合,桌面客户端 / 服务端 / Docker 一键部署。喜欢给个 ⭐ Star!
BidMaster Pro 是基于 AI Agent 架构的全流程智能招投标平台。通过 LLM(大语言模型)、RAG(检索增强生成)和 Skill Engine(技能引擎)三大核心引擎,实现从招标文件解读、投标书自动生成、合规性检查到文档排版输出的完整工作流自动化。
| 页面 | 预览 |
|---|---|
| 工作台 | |
| 招标解读 | |
| 投标生成 - 结构模板 | ![]() |
| 投标生成 - 正文生成 | ![]() |
| 投标检查 - 项目模式 | ![]() |
| 投标检查 - 上传文件模式 | ![]() |
| 文档输出 | ![]() |
| 文档输出(无正文) | ![]() |
| 咨询中心 | ![]() |
平台设置 → MinerU OCR Tab 统一管理(云端 / 自部署、API Key、endpoint、超时、轮询策略)POST /api/mineru/ocr 上传任意文档即可获得 markdown 结果,可被解读/检查流程复用┌─────────────────────────────────────────────────────┐
│ Desktop Client │
│ React + Electron + TypeScript │
└──────────────────┬──────────────────────────────────┘
│ REST API
┌──────────────────▼──────────────────────────────────┐
│ FastAPI Server │
│ (Python 3.12+) │
├─────────────────────────────────────────────────────┤
│ Router Layer │
│ ├── Projects ├── Interpret ├── Generate │
│ ├── Check ├── Format ├── Skills │
│ ├── News ├── Knowledge ├── RBAC │
│ └── AI-Image │
├─────────────────────────────────────────────────────┤
│ Core Engines │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐│
│ │ Agent Engine │ │ Skill Engine │ │ RAG Engine ││
│ │ LangGraph │ │ Plugin Sys │ │ ChromaDB ││
│ └──────────────┘ └──────────────┘ └──────────────┘│
│ ┌──────────────┐ ┌──────────────┐ │
│ │ LLM Gateway │ │ Doc Engine │ │
│ │ LiteLLM │ │ Multi-Parser │ │
│ └──────────────┘ └──────────────┘ │
├─────────────────────────────────────────────────────┤
│ Infrastructure │
│ ├── PostgreSQL (AsyncPG) │
│ ├── Redis (Celery Broker) │
│ ├── MinIO (Object Storage) │
│ └── Celery Worker (Async Tasks) │
└─────────────────────────────────────────────────────┘
| 技术 | 用途 | 版本 |
|---|---|---|
| FastAPI | Web 框架 | >=0.115 |
| Python | 编程语言 | >=3.12 |
| SQLAlchemy | ORM 框架 | >=2.0 |
| PostgreSQL | 关系数据库 | 16 |
| AsyncPG | 异步数据库驱动 | >=0.30 |
| Redis | 缓存/消息队列 | 7 |
| Celery | 异步任务队列 | >=5.3 |
| MinIO | 对象存储 | Latest |
| 技术 | 用途 | 版本 |
|---|---|---|
| LiteLLM | LLM 统一接口 | >=1.0 |
| LangGraph | Agent 工作流编排 | >=0.2 |
| LangChain-Core | LLM 基础组件 | >=0.3 |
| ChromaDB | 向量数据库 | >=0.5 |
| Sentence-Transformers | 文本嵌入 | >=3.0 |
| ONNX Runtime | 文档分类模型 | >=1.17 |
| 技术 | 用途 | 版本 |
|---|---|---|
| React | UI 框架 | ^19.0.0 |
| Electron | 桌面应用容器 | ^41.0.0 |
| TypeScript | 类型系统 | ^5.5.0 |
| Vite | 构建工具 | ^7.0.0 |
| Zustand | 状态管理 | ^5.0.0 |
| React Router | 路由管理 | ^7.0.0 |
| TanStack Query | 数据请求 | ^5.0.0 |
| Radix UI | 无头组件库 | ^1.1.0 |
| TailwindCSS | 样式框架 | ^4.0.0 |
| 技术 | 用途 | 版本 |
|---|---|---|
| python-docx | Word 文档处理 | >=1.1 |
| pdfplumber | PDF 文本提取 | >=0.11 |
| PyMuPDF | PDF 高级处理 | >=1.24 |
| Mammoth | DOCX 转 HTML | >=1.8 |
| WeasyPrint | HTML 转 PDF | >=61 |
| BeautifulSoup4 | HTML 解析 | >=4.12 |
# 1. 克隆项目
git clone <repository-url>
cd BidMaster-Pro
# 2. 配置环境变量
cp .env.example .env
# 编辑 .env 文件,填写 LLM API Key 等配置
# 3. 启动服务
docker-compose up -d
启动后自动运行:PostgreSQL (5432) / Redis (6379) / MinIO (9000) / FastAPI (8000) / Celery Worker
# 后端
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -e .
# 前端
cd packages/desktop
npm install
# 启动基础设施
docker-compose up -d postgres redis minio
# 配置环境变量
cp .env.example .env
# 编辑 .env,至少配置 BMP_LLM_API_KEY / BMP_DATABASE_URL / BMP_REDIS_URL
# 初始化数据库
alembic upgrade head
# 启动后端
uvicorn services.main:app --reload --host 0.0.0.0 --port 8000
# 启动 Celery Worker
celery -A services.celery_app worker --loglevel=info
# 启动前端桌面应用
cd packages/desktop
npm run electron:dev
| 变量名 | 说明 | 默认值 |
|---|---|---|
BMP_DEBUG | 调试模式 | true |
BMP_PORT | 服务端口 | 8000 |
BMP_DATABASE_URL | PostgreSQL 连接串 | postgresql+asyncpg://... |
BMP_REDIS_URL | Redis 连接串 | redis://localhost:6379/0 |
BMP_CHROMA_DIR | ChromaDB 存储路径 | ./chroma_db |
BMP_LLM_DEFAULT_MODEL | 默认 LLM 模型 | deepseek/deepseek-chat |
BMP_LLM_API_KEY | LLM API Key | - |
BMP_LLM_API_BASE | LLM API 地址 | https://api.deepseek.com |
BMP_LLM_FALLBACK_MODES | 降级模型列表 | ollama/qwen2.5 |
BMP_EMBEDDING_MODE | 嵌入模式 (api/local) | api |
BMP_EMBEDDING_MODEL | 嵌入模型 | text-embedding-v3 |
| 变量 | 说明 | 默认值 |
|---|---|---|
BMP_MINERU_MODE | cloud (云端) 或 self_hosted (自部署) | cloud |
BMP_MINERU_API_KEY | 云端 API Key / 自部署 Token | - |
BMP_MINERU_ENDPOINT | 服务端点 | https://mineru.net/api/v4 |
BMP_MINERU_TIMEOUT | 单次请求超时 (秒) | 180 |
也可在 平台设置 → MinerU OCR Tab 页面化配置(自动写入 .env)。
通过 LiteLLM 支持多种 LLM 提供商,可在平台设置中灵活切换:
deepseek/deepseek-chatsiliconflow/*gpt-4, gpt-3.5-turboqwen-max, qwen-plusollama/qwen2.5, ollama/llama3Skill 是核心扩展机制,每个 Skill 代表一个独立的业务能力单元:
from core.skill_engine.base import Skill, SkillContext, SkillResult
class MyCustomSkill(Skill):
name = "my_custom_skill"
description = "我的自定义技能"
category = "generate"
version = "1.0.0"
async def execute(self, ctx: SkillContext) -> SkillResult:
param1 = ctx.parameters.get("param1")
response = await ctx.llm.chat(messages=[...])
return SkillResult(success=True, data={"result": response}, tokens_consumed=100)
使用 LangGraph 编排多个 Skill 的执行流程:
pipeline_dsl = {
"entry": "parse_tender",
"nodes": [
{"id": "parse_tender", "skill": "tender_parser", "require_gate": True},
{"id": "extract_requirements", "skill": "requirement_extractor"},
{"id": "generate_outline", "skill": "outline_generator"},
],
"edges": [
{"from": "parse_tender", "to": "extract_requirements"},
{"from": "extract_requirements", "to": "generate_outline"},
]
}
确保工作流按顺序执行,前一阶段未完成则不能进入下一阶段:
gate_keeper.mark_passed(project_id, "interpret")
if not gate_keeper.is_passed(project_id, "interpret"):
raise GateNotPassedException("请先完成招标解读")
✨ Star 项目 扫码关注微信公众号,回复 bidmaster 即可获取:

💡 操作说明:star → 打开微信 → 扫一扫 → 关注公众号 → 发送消息
bidmaster→ 自动回复作者微信及相关信息。
本项目采用 MIT 许可证 - 详见 LICENSE 文件
Made with ❤️ by BidMaster Team
🚀 全流程智能招投标 Agent · 4 阶段流水线 · 21 项合规检查 · 多 LLM 切换 · Skill 引擎 · RAG 知识库 · MinerU OCR · 商机监控
⭐ 如果这个项目对你有帮助,请给我们一个 Star! ✨
Reference agents, skills, and data connectors for legal teams, covering AI governance work such as EU AI Act system inventories, impact assessments, and matter workspaces that keep each client's context separate.
Reviews contracts, generates NDAs and business agreements, flags missing clauses, compares contract versions, and audits websites for compliance gaps, with PDF reports for Claude Code users doing legal work.
Helps Chinese legal practitioners work through PRC statutory law, from finding the relevant articles and cases to weighing evidence and building an argument for a dispute or a judgment. Each aid is hand-written and checked by lawyers.
Gives lawyers case tracking and document tools: a local case dashboard with deadline alerts and weekly analysis, progress and task updates, scheduling of court and travel dates with reminders, and turning existing articles or notes into books or courses.
A Chinese-language bidding assistant for Claude Code that interprets tender documents, generates bid text, checks bids for compliance, and formats the final Word document. Install it with the command on its page. It includes compliance_check, content_gen, tender_interpret. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it