Analyze ERP system integration for construction data flows. Map and optimize data flows between ERP modules
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install erp-integration-analysis或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install erp-integration-analysis⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/erp-integration-analysis/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: "erp-integration-analysis" description: "Analyze ERP system integration for construction data flows. Map and optimize data flows between ERP modules" homepage: "https://datadrivenconstruction.io" metadata: {"openclaw": {"emoji": "🔗", "os": ["win32"], "homepage": "https://datadrivenconstruction.io", "requires": {"bins": ["python3"]}}} ---
Based on DDC methodology (Chapter 1.2), this skill analyzes ERP system integration patterns in construction organizations, mapping data flows between modules and identifying optimization opportunities.
Book Reference: "Технологии и системы управления в современном строительстве" / "Technologies and Management Systems in Modern Construction"
from dataclasses import dataclass, field
from enum import Enum
from typing import List, Dict, Optional, Set, Tuple
from datetime import datetime
import json
class ERPModule(Enum):
"""Common ERP modules in construction"""
FINANCE = "finance"
PROJECT_MANAGEMENT = "project_management"
PROCUREMENT = "procurement"
INVENTORY = "inventory"
HR = "human_resources"
PAYROLL = "payroll"
EQUIPMENT = "equipment"
SUBCONTRACTS = "subcontracts"
BILLING = "billing"
COST_CONTROL = "cost_control"
DOCUMENT_MANAGEMENT = "document_management"
REPORTING = "reporting"
class IntegrationMethod(Enum):
"""Types of integration methods"""
API = "api"
DATABASE = "database"
FILE_EXPORT = "file_export"
MANUAL = "manual"
WEBHOOK = "webhook"
MESSAGE_QUEUE = "message_queue"
ETL = "etl"
class DataFlowDirection(Enum):
"""Direction of data flow"""
INBOUND = "inbound"
OUTBOUND = "outbound"
BIDIRECTIONAL = "bidirectional"
@dataclass
class DataFlow:
"""Represents a data flow between systems/modules"""
source_module: str
target_module: str
data_type: str
frequency: str # real-time, hourly, daily, weekly, manual
method: IntegrationMethod
direction: DataFlowDirection
volume: str # low, medium, high
critical: bool = False
issues: List[str] = field(default_factory=list)
@dataclass
class ERPSystem:
"""ERP system definition"""
name: str
vendor: str
version: str
modules: List[ERPModule]
database: str
has_api: bool
api_type: Optional[str] = None # REST, SOAP, GraphQL
custom_modules: List[str] = field(default_factory=list)
@dataclass
class IntegrationPoint:
"""Integration point between systems"""
id: str
source_system: str
target_system: str
method: IntegrationMethod
endpoint: Optional[str] = None
authentication: Optional[str] = None
data_format: str = "json"
status: str = "active"
reliability_score: float = 1.0
last_sync: Optional[datetime] = None
@dataclass
class IntegrationAnalysis:
"""Complete integration analysis results"""
erp_system: ERPSystem
external_systems: List[str]
data_flows: List[DataFlow]
integration_points: List[IntegrationPoint]
integration_score: float
bottlenecks: List[str]
recommendations: List[str]
data_flow_diagram: Dict
class ERPIntegrationAnalyzer:
"""
Analyze ERP system integration for construction data flows.
Based on DDC methodology Chapter 1.2.
"""
def __init__(self):
self.module_dependencies = self._define_module_dependencies()
self.critical_flows = self._define_critical_flows()
def _define_module_dependencies(self) -> Dict[ERPModule, List[ERPModule]]:
"""Define typical module dependencies"""
return {
ERPModule.PROJECT_MANAGEMENT: [
ERPModule.COST_CONTROL,
ERPModule.PROCUREMENT,
ERPModule.HR,
ERPModule.DOCUMENT_MANAGEMENT
],
ERPModule.COST_CONTROL: [
ERPModule.FINANCE,
ERPModule.PROJECT_MANAGEMENT,
ERPModule.BILLING
],
ERPModule.PROCUREMENT: [
ERPModule.INVENTORY,
ERPModule.FINANCE,
ERPModule.SUBCONTRACTS
],
ERPModule.BILLING: [
ERPModule.FINANCE,
ERPModule.PROJECT_MANAGEMENT,
ERPModule.COST_CONTROL
],
ERPModule.PAYROLL: [
ERPModule.HR,
ERPModule.FINANCE,
ERPModule.PROJECT_MANAGEMENT
],
ERPModule.INVENTORY: [
ERPModule.PROCUREMENT,
ERPModule.PROJECT_MANAGEMENT,
ERPModule.FINANCE
],
ERPModule.EQUIPMENT: [
ERPModule.PROJECT_MANAGEMENT,
ERPModule.FINANCE,
ERPModule.INVENTORY
],
ERPModule.SUBCONTRACTS: [
ERPModule.PROCUREMENT,
ERPModule.FINANCE,
ERPModule.PROJECT_MANAGEMENT
]
}
def _define_critical_flows(self) -> List[Tuple[str, str]]:
"""Define business-critical data flows"""
return [
("project_management", "cost_control"),
("cost_control", "finance"),
("procurement", "inventory"),
("billing", "finance"),
("hr", "payroll"),
("project_management", "billing")
]
def analyze_erp_integration(
self,
erp_system: ERPSystem,
external_systems: List[Dict],
integration_points: List[IntegrationPoint],
transaction_logs: Optional[List[Dict]] = None
) -> IntegrationAnalysis:
"""
Perform comprehensive ERP integration analysis.
Args:
erp_system: The ERP system to analyze
external_systems: List of external systems
integration_points: Defined integration points
transaction_logs: Optional transaction logs for analysis
Returns:
Complete integration analysis
"""
# Map all data flows
data_flows = self._map_data_flows(
erp_system, integration_points, transaction_logs
)
# Calculate integration score
integration_score = self._calculate_integration_score(
erp_system, data_flows, integration_points
)
# Identify bottlenecks
bottlenecks = self._identify_bottlenecks(
data_flows, integration_points
)
# Generate recommendations
recommendations = self._generate_recommendations(
erp_system, data_flows, bottlenecks
)
# Create data flow diagram
diagram = self._create_flow_diagram(
erp_system, external_systems, data_flows
)
return IntegrationAnalysis(
erp_system=erp_system,
external_systems=[s["name"] for s in external_systems],
data_flows=data_flows,
integration_points=integration_points,
integration_score=integration_score,
bottlenecks=bottlenecks,
recommendations=recommendations,
data_flow_diagram=diagram
)
def _map_data_flows(
self,
erp: ERPSystem,
integration_points: List[IntegrationPoint],
logs: Optional[List[Dict]]
) -> List[DataFlow]:
"""Map all data flows in the system"""
flows = []
# Internal module flows
for module in erp.modules:
dependencies = self.module_dependencies.get(module, [])
for dep in dependencies:
if dep in erp.modules:
is_critical = (module.value, dep.value) in self.critical_flows
...安装 Erp Integration Analysis 后,可以对 AI 说这些话来触发它
Help me get started with Erp Integration Analysis
Explains what Erp Integration Analysis does, walks through the setup, and runs a quick demo based on your current project
Use Erp Integration Analysis to analyze ERP system integration for construction data flows
Invokes Erp Integration Analysis with the right parameters and returns the result directly in the conversation
What can I do with Erp Integration Analysis in my data & analytics workflow?
Lists the top use cases for Erp Integration Analysis, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/erp-integration-analysis/ 目录(个人级,所有项目可用),或 .claude/skills/erp-integration-analysis/(项目级)。重启 AI 客户端后,用 /erp-integration-analysis 主动调用,或让 AI 根据上下文自动发现并使用。
Erp Integration Analysis 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Erp Integration Analysis 可免费安装使用。请查阅仓库了解许可证信息。
Analyze ERP system integration for construction data flows. Map and optimize data flows between ERP modules
Erp Integration Analysis 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Erp Integration Analysis
Identifies repetitive steps in your workflow and sets up Erp Integration Analysis to handle them automatically