by zj-unicom-ai
企业数字员工构建与运行平台,覆盖 Web 与桌面工作台、多平台 IM、OAuth/MCP 连接器与第三方 MCP 网关;支持知识检索、业务流程、数据分析、审批护栏和全链路观测。
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
# Add to your Claude Code skills
git clone https://github.com/zj-unicom-ai/UniEmployeeGuides for using ai agents skills like UniEmployee.
Last scanned: 9/7/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-09-07T08:57:47.073Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how UniEmployee compares with popular alternatives.
中文 | English
UniEmployee 是一套面向企业的数字员工构建与运行平台:把专业员工的工作经验、业务流程和判断标准,固化为可随时上岗、可配置、可审批、可观测的 AI 数字员工。通过 Employee → Workflow/SOP → Skill → Connector → Tool 五层能力模型,把大模型编排成能独立承担客服、销售、数据分析、HR、经营分析和网络运营等岗位工作的组织生产力,而不是零散的个人效率工具。
backend/employees/*.yaml 是种子源,已有 catalog 库不会因修改 YAML 自动全量重播种。SKILL.md 规程沉淀(含触发条件与执行步骤),播种进 Store 供模型按需查阅,不凭记忆跳过;关键业务流程可用 StateGraph 状态机固化(含人工审批节点),保证多步流程准确执行。xiaoshu)拥有独立的 /app/analyst 工作台,支持数据库、附件表格、知识库和连接器数据源;SQL 查询采用 AST 级只读校验、表白名单、行数上限和服务端超时。分析报告与市场简报可通过 REPORT_HTML_START/END 通道渲染为可下载、可新窗口打开的 HTML 看板。/mcp/agent 入站网关供已授权的第三方客户端调用。内置工单、搜索、知识库、文档生成、数据分析、本体查询等原子工具。(user_id, employee_id) 隔离,落盘 Store 数据库,重启不丢;数字员工记住客户偏好并持续迭代。SummarizationMiddleware,对话到达阈值(有模型上下文画像按 85% 窗口比例触发,否则按 17 万 token)时自动把旧消息折叠为摘要,完整历史落盘 /conversation_history/{thread_id}.md 可随时回读;消息一多先对旧工具参数瘦身、模型报超预算时自动压缩重试,长对话不爆上下文、不中断。state、local_shell、standard 或 sandbox 后端;net-ops 可按会话路由到 OpenSandbox 容器,未启用沙箱时按当前配置回退本地后端。desktop-workspace/ 提供本机工作区、任务会话、文件、模型、技能与本地权限管理。用户可登录 UniEmployee,将 Web 端分配并由本人授权的个人 MCP 连接器同步给本机 Agent;服务商凭据留在后端,桌面只通过受鉴权的 MCP 桥接调用。一分钟视频速览 UniEmployee:数字员工对话工作台(流式回答、思考与工具调用过程实时可见)、HITL 人工审批、全链路执行 Trace、员工与资源中心配置、企业知识本体。
https://github.com/user-attachments/assets/73de95eb-4b26-4ddb-9145-6e1e3c3ad2c2
| 我想要 | 去哪里 |
|---|---|
| 部署 / 备份 / 排障 | docs/guide/deployment.md |
| 全部环境变量说明 | docs/guide/configuration.md |
| 新增一个数字员工 | docs/guide/add-employee.md |
| 编写技能规程(SKILL.md) | docs/guide/skill-authoring.md |
| 开发自定义工具 | docs/guide/custom-tools.md |
| 桌面工作区及 Web 连接器协作 | docs/guide/desktop-app-capability-guide.md |
| 个人 OAuth 连接器与权限边界 | docs/guide/connector-module-logic.md |
| 把 UniEmployee 开放给第三方 MCP 客户端 | docs/guide/mcp-gateway.md |
| 配置远程 OAuth MCP 连接器 | docs/guide/oauth-mcp-connectors.md |
| 小网安全实操与记录导出 | docs/guide/netops-security-practical.md |
| 参与贡献 / 发布流程 | CONTRIBUTING.md |
| 平台原理深度解读(8 篇系列) | docs/articles |
| 当前版本与变更记录 | CHANGELOG.md |
| 开发约束与架构注意事项 | AGENTS.md |
git clone https://github.com/zj-unicom-ai/UniEmployee.git
cd UniEmployee
cp .env.example .env
编辑 .env,填入模型与安全密钥:
MODEL_NAME=openai:deepseek-chat
OPENAI_BASE_URL=https://api.deepseek.com
OPENAI_API_KEY=sk-your-key-here
JWT_SECRET=请替换为足够长的随机字符串 # 可用 openssl rand -hex 32 生成
python3 -m venv .venv
.venv/bin/pip install -r backend/requirements.lock.txt # 完全可复现
需要演示数据的员工依赖 workspace/data/ 或 workspace/datasets/ 下的模拟数据集。本地体验可按场景生成:
python3 scripts/generate_biz_data.py # 经营分析:workspace/data/
python3 scripts/generate_insurance_demo_data.py # 保险分析:workspace/data/
python3 scripts/generate_netops_data.py # 算网运营:workspace/datasets/
python3 scripts/generate_xiaoxiao_data.py # 客户经理续约扫描:workspace/datasets/
net-ops 的共享数据集在沙箱内以只读方式挂载到 /datasets/;使用 Playwright MCP 前还需执行 npx playwright install --with-deps chromium。
# 起 PostgreSQL(首次启动自动建 7 个业务库;表结构由应用启动时自动创建)
docker compose up -d db
# 已有 PG 实例可改用幂等建库脚本:./scripts/init_postgres.sh
# 启动服务(单进程即可全功能,内置前端静态文件)
PYTHONPATH=backend .venv/bin/uvicorn app.main:app --reload --port 8787
前后端分离开发模式(后端热重载 + 前端 HMR):
# 终端 1:后端
PYTHONPATH=backend .venv/bin/uvicorn app.main:app --reload --port 8787
# 终端 2:前端
cd frontend && npm install && npm run dev
Docker 一键部署:
docker compose up -d --build
curl http://localhost:8787/health
预期返回 {"status":"ok"}。打开 http://localhost:8787,默认管理员账号 admin / admin123,首次登录强制改密。
Employee ── 数字员工(人设 / 模型 / 技能 / 工具 / 知识库 / 连接器装配)
│
├── Workflow / SOP ── 状态机工作流(流程固化)与技能规程
├── Skill ── 技能(SKILL.md 规程 + frontmatter,播种进 Store)
├── Connector ── MCP 连接器(CRM / 新闻 / RAGFlow 知识库)
└── Tool ── 原子工具(工单 / 搜索 / 知识库 / 文档生成 / 数据分析)
编译期 compiler.compile_agent() 读取 catalog 中的员工配置,按需装配工具与连接器、拼接 system_prompt,最终经 create_deep_agent() 生成可运行 agent;运行时按 (employee, user, model) 缓存并隔离记忆,技能与记忆通过 CompositeBackend 路由到不同命名空间。资源中心修改人设、工具或连接器后,通常需要重启服务使已缓存的 agent 重新编译;技能正文和知识库内容则按运行时机制动态读取。
数字员工的能力上限,取决于它对业务世界的理解深度。UniEmployee 的知识体系正从"文档检索"演进为带业务语义的企业知识本体——不是"上传文档 + 向量检索",而是把企业知识组织为规则、流程、主题、来源与角色之间的结构化语义资产:
Source Document(源文档)、Topic(主题)、Playbook(操作手册 / 规程)、Business Rule(业务规则)、Query Analysis(查询分析)等类型组织,而非平铺的文本块。当前版本已内置产品 FAQ 知识库、markdown 产品 Wiki 检索、RAGFlow 深度知识库和结构化企业本体:知识按员工分配,检索结果标注来源;本体支持 schema、实体、关系、多跳路径和场景化查询。更完整的实体关系与演示问题见 企业业务本体演示问题清单。
| 员工 | 岗位 | 技能 | 连接器 |
|---|---|---|---|
unicom-presale |
售前客服(浙江联通) | 售前咨询规程(RAGFlow 业务知识库检索) | — |
xiaoshu |
数据分析专家 | 数据分析、SQL 归因、前端设计、报告生成 | — |
xiaoxiao |
客户经理(解决方案顾问) | 企业销售、方案文档、拜访纪要、客户 360、续约与商机扫描 | CRM |
hrbp |
HR 合作伙伴 | HR 助手、本体事实写回 | — |
biz-analyzer |
经营分析与决策顾问 | 经营全景、归因分析、决策分析、市场情报 | — |
net-ops |
算网运营专家 | 故障影响分析、运营指标分析、资源容量分析、SOP 路由执行 | — |
market-intel |
市场情报分析师(小察) | 市场简报、竞品深挖、市场预警分级 | newsnow、Playwright |
insurance-analyst |
保险经营分析数字员工(小保析) | 保费收入、赔付率、续保率、渠道贡献、机构异常分析 | — |
内置技能存于
backend/skills/(各含SKILL.md规程)。其中frontend-design技能基于 Matt Pocock 的开源技能库编写,按 Apache License 2.0 分发,其内独立附带原始许可证。
UniEmployee/
├── backend/ # FastAPI 接口、Agent 运行时、存储
│ ├── app/
│ │ ├── main.py # 网关:SSE 流 / 审批恢复 / 鉴权 / /health
│ │ ├── compiler.py # 编译层:EmployeeSpec → create_deep_agent()
│ │ ├── runtime.py # agent 缓存 + checkpointer + store + 预热/失效
│ │ ├── catalog/ # catalog.db CRUD(员工/技能/工具/知识库/SOP/连接器/用户)
│ │ ├── routes/ # REST 路由(auth / conversations / admin / user / im / analyst / guard / audit / automations)
│ │ ├── tools/ # 工具实现(工单/搜索/知识库/文档/数据/本体/发布)
│ │ ├── agent/analyst/ # 小数数据分析工作台(数据源 / SQL / 报告)
│ │ ├── guard/ # 敏感词、工具与内置文件/命令工具护栏
│ │ ├── audit/ # 管理操作与运行相关审计
│ │ ├── automations.py # cron / webhook 自动任务
│ │ ├── scheduler.py # 自动任务调度循环
│ │ ├── sandbox_mgr.py # OpenSandbox 会话级沙箱管理
│ │ ├── workflows/ # StateGraph 状态机工作流
│ │ ├── connectors/ # MCP 客户端连接器(stdio、远程 HTTP OAuth)
│ │ ├── mcp_gateway/ # 面向 Claude Code / Cursor 等客户端的入站 MCP 服务
│ │ ├── approvals.py # HITL 审批单(持久化 + 超时拒绝)
│ │ ├── traces.py # 执行追踪(traces 库)
│ │ ├── auth.py # bcrypt + JWT 鉴权
│ │ └── db.py # 数据库访问层(PG 连接池 + SQL 方言翻译)
│ ├── employees/*.yaml # 员工种子定义(首次空库启动写入 catalog 库)
│ └── skills/ # 内置技能(SKILL.md + frontmatter)
├── frontend/ # Vue 3 + Vite + Naive UI + Pinia 管理后台
├── desktop-workspace/ # Electron + React 本机 Agent 工作区与 UniEmployee MCP 桥接
├── tests/ # pytest(夹具强制 sqlite 临时库,不碰真实数据)
├── docs/ # 技术文档:guide/(实操手册)+ articles/(原理解读系列)
├── scripts/init_postgres.sql # 建库 SQL(docker 首次启动自动执行)
├── scripts/init_postgres.sh # 幂等建库脚本(已有 PG 实例用)
└── scripts/backup.sh # 数据库备份(pg_dump)
生产和本地开发默认使用 PostgreSQL(DB_BACKEND=postgres,连接参数见 .env 的 POSTGRES_*);测试夹具会强制使用临时 SQLite,不会碰真实数据。
本地快速起库:docker compose up -d db(首次启动自动建 7
UniEmployee is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by zj-unicom-ai. 企业数字员工构建与运行平台,覆盖 Web 与桌面工作台、多平台 IM、OAuth/MCP 连接器与第三方 MCP 网关;支持知识检索、业务流程、数据分析、审批护栏和全链路观测。. It has 955 GitHub stars.
Yes. UniEmployee passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/zj-unicom-ai/UniEmployee" and add it to your Claude Code skills directory (see the Installation section above).
UniEmployee is primarily written in TypeScript. It is open-source under zj-unicom-ai on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh UniEmployee against similar tools.
No comments yet. Be the first to share your thoughts!