Install
openclaw skills install daming-core自动接收微信指令,校验意图并审核政令,调度执行文生图视频任务,管理预算和链路,保障流程安全稳定运行。
openclaw skills install daming-core基于完整三省六部架构的Skill市场后台预警系统,实现完整的朝廷运作记录、监控预警和反查审计能力。系统巧妙融合古代中国官僚体系与现代软件架构,提供完整的任务管理、资源调度和监控审计功能。
# 查看 requirements.txt
# 1. 中书省创建任务
from skill1.zhongshu.main import create_task_archive
task_id, task_dir = create_task_archive(
emperor_order="生成山水画",
token_budget=500
)
# 2. 户部创建Token账本
from skill1.bu.hu.main import create_token_ledger
ledger = create_token_ledger(task_id, initial_budget=500)
# 3. 门下省审核任务
from skill1.menxia.main import audit_task_draft
audit_result = audit_task_draft(task_id, "审核通过")
# 4. 工部调度执行
from skill1.bu.gong.scheduler import GongBuScheduler
scheduler = GongBuScheduler()
dispatch_result = scheduler.dispatch_with_budget_check(
task_id,
{"action": "generate_image", "estimated_tokens": 100}
)
# 5. 民夫团队执行
from skill2.main import MinFuTeam
team = MinFuTeam(task_id, dispatch_result['execution_id'])
result = team.execute_comfyui({
"action": "generate_image",
"params": {"prompt": "山水画"},
"estimated_tokens": 80
})
# 创建任务
python3 main.py create --order "任务描述" --budget 500
# 审核任务
python3 main.py audit --task-id T20260325-xxxx --notes "审核意见"
# 调度执行
python3 main.py dispatch --task-id T20260325-xxxx --action generate_image --tokens 100
# 查看任务列表
python3 main.py list
# 检查系统状态
python3 main.py status
{
"skill_name": "skill1_daming_court",
"display_name": "大明朝廷-三省六部中枢(完整档案系统)",
"description": "基于完整三省六部架构的Skill市场后台预警系统",
"version": "2.0.0",
"entry_function": "main.execute",
"support_type": ["text"],
"tags": ["daming", "court", "monitoring", "audit", "archive", "chinese-history"],
"author": "Daming",
"license": "MIT"
}
skill1/config.py - 系统全局配置ACTIVE_TASKS_DIR - 活动任务目录{
"task_id": "T20260325-xxxx",
"emperor_order": "任务描述",
"created_at": "2026-03-25T00:00:00",
"token_budget": 500,
"status": "draft"
}
{
"task_id": "T20260325-xxxx",
"initial_budget": 500,
"current_balance": 420,
"transactions": [...]
}
{
"task_id": "T20260325-xxxx",
"total_executions": 3,
"successful_executions": 3,
"failed_executions": 0,
"total_tokens_used": 80,
"average_tokens_per_execution": 26.67
}
系统包含多层错误处理机制:
skill1/ 下创建新目录main.py 入口文件MinFuTeam 类# 完整流程测试
python3 test_full_flow.py
# 系统健康检查
python3 system_status.py
MIT License - 详见 LICENSE 文件
大明永昌! 🏛️
系统设计灵感来源于明代官僚体系,巧妙融合传统智慧与现代技术。