refactor: clean up skills directory structure - move non-skill files to appropriate locations
Skills Directory Cleanup: ✅ NON-SKILL FILES MOVED: Proper directory organization - .windsurf/meta/: Moved REFACTORING_SUMMARY.md and SKILL_ANALYSIS.md from skills/ - .windsurf/templates/: Moved agent-templates.md and workflow-templates.md from skills/openclaw-aitbc/ - .windsurf/references/: Moved ai-operations-reference.md from skills/openclaw-aitbc/ - scripts/: Moved setup.sh from skills/openclaw-aitbc/ ✅ DEPRECATED SKILLS ARCHIVED: Clean skills directory structure - .windsurf/skills/archive/: Moved aitbc-blockchain.md, openclaw-aitbc.md, openclaw-management.md - These were legacy monolithic skills replaced by atomic skills - Archive preserves history while keeping skills directory clean ✅ SKILLS DIRECTORY NOW CONTAINS: Only atomic, production-ready skills - aitbc-ai-operator.md: AI job submission and monitoring - aitbc-marketplace-participant.md: Marketplace operations and pricing - aitbc-transaction-processor.md: Transaction execution and tracking - aitbc-wallet-manager.md: Wallet creation, listing, balance checking - openclaw-agent-communicator.md: Agent message handling and responses - openclaw-session-manager.md: Session creation and context management - archive/: Deprecated legacy skills (3 files) DIRECTORY STRUCTURE IMPROVEMENT: 🎯 Skills Directory: Contains only 6 atomic skills + archive 📋 Meta Directory: Contains refactoring analysis and summaries 📝 Templates Directory: Contains agent and workflow templates 📖 References Directory: Contains reference documentation and guides 🗂️ Archive Directory: Contains deprecated legacy skills BENEFITS: ✅ Clean Skills Directory: Only contains actual atomic skills ✅ Proper Organization: Non-skill files in appropriate directories ✅ Archive Preservation: Legacy skills preserved for reference ✅ Maintainability: Clear separation of concerns ✅ Navigation: Easier to find and use actual skills Result: Skills directory now properly organized with only atomic skills, non-skill files moved to appropriate locations, and deprecated skills archived for reference.
This commit is contained in:
163
.windsurf/templates/agent-templates.md
Normal file
163
.windsurf/templates/agent-templates.md
Normal file
@@ -0,0 +1,163 @@
|
||||
# OpenClaw AITBC Agent Templates
|
||||
|
||||
## Blockchain Monitor Agent
|
||||
```json
|
||||
{
|
||||
"name": "blockchain-monitor",
|
||||
"type": "monitoring",
|
||||
"description": "Monitors AITBC blockchain across multiple nodes",
|
||||
"version": "1.0.0",
|
||||
"config": {
|
||||
"nodes": ["aitbc", "aitbc1"],
|
||||
"check_interval": 30,
|
||||
"metrics": ["height", "transactions", "balance", "sync_status"],
|
||||
"alerts": {
|
||||
"height_diff": 5,
|
||||
"tx_failures": 3,
|
||||
"sync_timeout": 60
|
||||
}
|
||||
},
|
||||
"blockchain_integration": {
|
||||
"rpc_endpoints": {
|
||||
"aitbc": "http://localhost:8006",
|
||||
"aitbc1": "http://aitbc1:8006"
|
||||
},
|
||||
"wallet": "aitbc-user",
|
||||
"auto_transaction": true
|
||||
},
|
||||
"openclaw_config": {
|
||||
"model": "ollama/nemotron-3-super:cloud",
|
||||
"workspace": "blockchain-monitor",
|
||||
"routing": {
|
||||
"channels": ["blockchain", "monitoring"],
|
||||
"auto_respond": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Marketplace Trader Agent
|
||||
```json
|
||||
{
|
||||
"name": "marketplace-trader",
|
||||
"type": "trading",
|
||||
"description": "Automated agent marketplace trading bot",
|
||||
"version": "1.0.0",
|
||||
"config": {
|
||||
"budget": 1000,
|
||||
"max_price": 500,
|
||||
"preferred_agents": ["blockchain-analyzer", "data-processor"],
|
||||
"trading_strategy": "value_based",
|
||||
"risk_tolerance": 0.15
|
||||
},
|
||||
"blockchain_integration": {
|
||||
"payment_wallet": "aitbc-user",
|
||||
"auto_purchase": true,
|
||||
"profit_margin": 0.15,
|
||||
"max_positions": 5
|
||||
},
|
||||
"openclaw_config": {
|
||||
"model": "ollama/nemotron-3-super:cloud",
|
||||
"workspace": "marketplace-trader",
|
||||
"routing": {
|
||||
"channels": ["marketplace", "trading"],
|
||||
"auto_execute": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Blockchain Analyzer Agent
|
||||
```json
|
||||
{
|
||||
"name": "blockchain-analyzer",
|
||||
"type": "analysis",
|
||||
"description": "Advanced blockchain data analysis and insights",
|
||||
"version": "1.0.0",
|
||||
"config": {
|
||||
"analysis_depth": "deep",
|
||||
"metrics": ["transaction_patterns", "network_health", "token_flows"],
|
||||
"reporting_interval": 3600,
|
||||
"alert_thresholds": {
|
||||
"anomaly_detection": 0.95,
|
||||
"performance_degradation": 0.8
|
||||
}
|
||||
},
|
||||
"blockchain_integration": {
|
||||
"rpc_endpoints": ["http://localhost:8006", "http://aitbc1:8006"],
|
||||
"data_retention": 86400,
|
||||
"batch_processing": true
|
||||
},
|
||||
"openclaw_config": {
|
||||
"model": "ollama/nemotron-3-super:cloud",
|
||||
"workspace": "blockchain-analyzer",
|
||||
"routing": {
|
||||
"channels": ["analysis", "reporting"],
|
||||
"auto_generate_reports": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Multi-Node Coordinator Agent
|
||||
```json
|
||||
{
|
||||
"name": "multi-node-coordinator",
|
||||
"type": "coordination",
|
||||
"description": "Coordinates operations across multiple AITBC nodes",
|
||||
"version": "1.0.0",
|
||||
"config": {
|
||||
"nodes": ["aitbc", "aitbc1"],
|
||||
"coordination_strategy": "leader_follower",
|
||||
"sync_interval": 10,
|
||||
"failover_enabled": true
|
||||
},
|
||||
"blockchain_integration": {
|
||||
"primary_node": "aitbc",
|
||||
"backup_nodes": ["aitbc1"],
|
||||
"auto_failover": true,
|
||||
"health_checks": ["rpc", "sync", "transactions"]
|
||||
},
|
||||
"openclaw_config": {
|
||||
"model": "ollama/nemotron-3-super:cloud",
|
||||
"workspace": "multi-node-coordinator",
|
||||
"routing": {
|
||||
"channels": ["coordination", "health"],
|
||||
"auto_coordination": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Blockchain Messaging Agent
|
||||
```json
|
||||
{
|
||||
"name": "blockchain-messaging-agent",
|
||||
"type": "communication",
|
||||
"description": "Uses AITBC AgentMessagingContract for cross-node forum-style communication",
|
||||
"version": "1.0.0",
|
||||
"config": {
|
||||
"smart_contract": "AgentMessagingContract",
|
||||
"message_types": ["post", "reply", "announcement", "question", "answer"],
|
||||
"topics": ["coordination", "status-updates", "collaboration"],
|
||||
"reputation_target": 5,
|
||||
"auto_heartbeat_interval": 30
|
||||
},
|
||||
"blockchain_integration": {
|
||||
"rpc_endpoints": {
|
||||
"aitbc": "http://localhost:8006",
|
||||
"aitbc1": "http://aitbc1:8006"
|
||||
},
|
||||
"chain_id": "ait-mainnet",
|
||||
"cross_node_routing": true
|
||||
},
|
||||
"openclaw_config": {
|
||||
"model": "ollama/nemotron-3-super:cloud",
|
||||
"workspace": "blockchain-messaging",
|
||||
"routing": {
|
||||
"channels": ["messaging", "forum", "coordination"],
|
||||
"auto_respond": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
321
.windsurf/templates/workflow-templates.md
Normal file
321
.windsurf/templates/workflow-templates.md
Normal file
@@ -0,0 +1,321 @@
|
||||
# OpenClaw AITBC Workflow Templates
|
||||
|
||||
## Multi-Node Health Check Workflow
|
||||
```yaml
|
||||
name: multi-node-health-check
|
||||
description: Comprehensive health check across all AITBC nodes
|
||||
version: 1.0.0
|
||||
schedule: "*/5 * * * *" # Every 5 minutes
|
||||
steps:
|
||||
- name: check-node-sync
|
||||
agent: blockchain-monitor
|
||||
action: verify_block_height_consistency
|
||||
timeout: 30
|
||||
retry_count: 3
|
||||
parameters:
|
||||
max_height_diff: 5
|
||||
timeout_seconds: 10
|
||||
|
||||
- name: analyze-transactions
|
||||
agent: blockchain-analyzer
|
||||
action: transaction_pattern_analysis
|
||||
timeout: 60
|
||||
parameters:
|
||||
time_window: 300
|
||||
anomaly_threshold: 0.95
|
||||
|
||||
- name: check-wallet-balances
|
||||
agent: blockchain-monitor
|
||||
action: balance_verification
|
||||
timeout: 30
|
||||
parameters:
|
||||
critical_wallets: ["genesis", "treasury"]
|
||||
min_balance_threshold: 1000000
|
||||
|
||||
- name: verify-connectivity
|
||||
agent: multi-node-coordinator
|
||||
action: node_connectivity_check
|
||||
timeout: 45
|
||||
parameters:
|
||||
nodes: ["aitbc", "aitbc1"]
|
||||
test_endpoints: ["/rpc/head", "/rpc/accounts", "/rpc/mempool"]
|
||||
|
||||
- name: generate-report
|
||||
agent: blockchain-analyzer
|
||||
action: create_health_report
|
||||
timeout: 120
|
||||
parameters:
|
||||
include_recommendations: true
|
||||
format: "json"
|
||||
output_location: "/var/log/aitbc/health-reports/"
|
||||
|
||||
- name: send-alerts
|
||||
agent: blockchain-monitor
|
||||
action: send_health_alerts
|
||||
timeout: 30
|
||||
parameters:
|
||||
channels: ["email", "slack"]
|
||||
severity_threshold: "warning"
|
||||
|
||||
on_failure:
|
||||
- name: emergency-alert
|
||||
agent: blockchain-monitor
|
||||
action: send_emergency_alert
|
||||
parameters:
|
||||
message: "Multi-node health check failed"
|
||||
severity: "critical"
|
||||
|
||||
success_criteria:
|
||||
- all_steps_completed: true
|
||||
- node_sync_healthy: true
|
||||
- no_critical_alerts: true
|
||||
```
|
||||
|
||||
## Agent Marketplace Automation Workflow
|
||||
```yaml
|
||||
name: marketplace-automation
|
||||
description: Automated agent marketplace operations and trading
|
||||
version: 1.0.0
|
||||
schedule: "0 */2 * * *" # Every 2 hours
|
||||
steps:
|
||||
- name: scan-marketplace
|
||||
agent: marketplace-trader
|
||||
action: find_valuable_agents
|
||||
timeout: 300
|
||||
parameters:
|
||||
max_price: 500
|
||||
min_rating: 4.0
|
||||
categories: ["blockchain", "analysis", "monitoring"]
|
||||
|
||||
- name: evaluate-agents
|
||||
agent: blockchain-analyzer
|
||||
action: assess_agent_value
|
||||
timeout: 180
|
||||
parameters:
|
||||
evaluation_criteria: ["performance", "cost_efficiency", "reliability"]
|
||||
weight_factors: {"performance": 0.4, "cost_efficiency": 0.3, "reliability": 0.3}
|
||||
|
||||
- name: check-budget
|
||||
agent: marketplace-trader
|
||||
action: verify_budget_availability
|
||||
timeout: 30
|
||||
parameters:
|
||||
min_budget: 100
|
||||
max_single_purchase: 250
|
||||
|
||||
- name: execute-purchase
|
||||
agent: marketplace-trader
|
||||
action: purchase_best_agents
|
||||
timeout: 120
|
||||
parameters:
|
||||
max_purchases: 2
|
||||
auto_confirm: true
|
||||
payment_wallet: "aitbc-user"
|
||||
|
||||
- name: deploy-agents
|
||||
agent: deployment-manager
|
||||
action: deploy_purchased_agents
|
||||
timeout: 300
|
||||
parameters:
|
||||
environment: "production"
|
||||
auto_configure: true
|
||||
health_check: true
|
||||
|
||||
- name: update-portfolio
|
||||
agent: marketplace-trader
|
||||
action: update_portfolio
|
||||
timeout: 60
|
||||
parameters:
|
||||
record_purchases: true
|
||||
calculate_roi: true
|
||||
update_performance_metrics: true
|
||||
|
||||
success_criteria:
|
||||
- profitable_purchases: true
|
||||
- successful_deployments: true
|
||||
- portfolio_updated: true
|
||||
```
|
||||
|
||||
## Blockchain Performance Optimization Workflow
|
||||
```yaml
|
||||
name: blockchain-optimization
|
||||
description: Automated blockchain performance monitoring and optimization
|
||||
version: 1.0.0
|
||||
schedule: "0 0 * * *" # Daily at midnight
|
||||
steps:
|
||||
- name: collect-metrics
|
||||
agent: blockchain-monitor
|
||||
action: gather_performance_metrics
|
||||
timeout: 300
|
||||
parameters:
|
||||
metrics_period: 86400 # 24 hours
|
||||
include_nodes: ["aitbc", "aitbc1"]
|
||||
|
||||
- name: analyze-performance
|
||||
agent: blockchain-analyzer
|
||||
action: performance_analysis
|
||||
timeout: 600
|
||||
parameters:
|
||||
baseline_comparison: true
|
||||
identify_bottlenecks: true
|
||||
optimization_suggestions: true
|
||||
|
||||
- name: check-resource-utilization
|
||||
agent: resource-monitor
|
||||
action: analyze_resource_usage
|
||||
timeout: 180
|
||||
parameters:
|
||||
resources: ["cpu", "memory", "storage", "network"]
|
||||
threshold_alerts: {"cpu": 80, "memory": 85, "storage": 90}
|
||||
|
||||
- name: optimize-configuration
|
||||
agent: blockchain-optimizer
|
||||
action: apply_optimizations
|
||||
timeout: 300
|
||||
parameters:
|
||||
auto_apply_safe: true
|
||||
require_confirmation: false
|
||||
backup_config: true
|
||||
|
||||
- name: verify-improvements
|
||||
agent: blockchain-monitor
|
||||
action: measure_improvements
|
||||
timeout: 600
|
||||
parameters:
|
||||
measurement_period: 1800 # 30 minutes
|
||||
compare_baseline: true
|
||||
|
||||
- name: generate-optimization-report
|
||||
agent: blockchain-analyzer
|
||||
action: create_optimization_report
|
||||
timeout: 180
|
||||
parameters:
|
||||
include_before_after: true
|
||||
recommendations: true
|
||||
cost_analysis: true
|
||||
|
||||
success_criteria:
|
||||
- performance_improved: true
|
||||
- no_regressions: true
|
||||
- report_generated: true
|
||||
```
|
||||
|
||||
## Cross-Node Agent Coordination Workflow
|
||||
```yaml
|
||||
name: cross-node-coordination
|
||||
description: Coordinates agent operations across multiple AITBC nodes
|
||||
version: 1.0.0
|
||||
trigger: "node_event"
|
||||
steps:
|
||||
- name: detect-node-event
|
||||
agent: multi-node-coordinator
|
||||
action: identify_event_type
|
||||
timeout: 30
|
||||
parameters:
|
||||
event_types: ["node_down", "sync_issue", "high_load", "maintenance"]
|
||||
|
||||
- name: assess-impact
|
||||
agent: blockchain-analyzer
|
||||
action: impact_assessment
|
||||
timeout: 120
|
||||
parameters:
|
||||
impact_scope: ["network", "transactions", "agents", "marketplace"]
|
||||
|
||||
- name: coordinate-response
|
||||
agent: multi-node-coordinator
|
||||
action: coordinate_node_response
|
||||
timeout: 300
|
||||
parameters:
|
||||
response_strategies: ["failover", "load_balance", "graceful_degradation"]
|
||||
|
||||
- name: update-agent-routing
|
||||
agent: routing-manager
|
||||
action: update_agent_routing
|
||||
timeout: 180
|
||||
parameters:
|
||||
redistribute_agents: true
|
||||
maintain_services: true
|
||||
|
||||
- name: notify-stakeholders
|
||||
agent: notification-agent
|
||||
action: send_coordination_updates
|
||||
timeout: 60
|
||||
parameters:
|
||||
channels: ["email", "slack", "blockchain_events"]
|
||||
|
||||
- name: monitor-resolution
|
||||
agent: blockchain-monitor
|
||||
action: monitor_event_resolution
|
||||
timeout: 1800 # 30 minutes
|
||||
parameters:
|
||||
auto_escalate: true
|
||||
resolution_criteria: ["service_restored", "performance_normal"]
|
||||
|
||||
success_criteria:
|
||||
- event_resolved: true
|
||||
- services_maintained: true
|
||||
- stakeholders_notified: true
|
||||
```
|
||||
|
||||
## Agent Training and Learning Workflow
|
||||
```yaml
|
||||
name: agent-learning
|
||||
description: Continuous learning and improvement for OpenClaw agents
|
||||
version: 1.0.0
|
||||
schedule: "0 2 * * *" # Daily at 2 AM
|
||||
steps:
|
||||
- name: collect-performance-data
|
||||
agent: learning-collector
|
||||
action: gather_agent_performance
|
||||
timeout: 300
|
||||
parameters:
|
||||
learning_period: 86400
|
||||
include_all_agents: true
|
||||
|
||||
- name: analyze-performance-patterns
|
||||
agent: learning-analyzer
|
||||
action: identify_improvement_areas
|
||||
timeout: 600
|
||||
parameters:
|
||||
pattern_recognition: true
|
||||
success_metrics: ["accuracy", "efficiency", "cost"]
|
||||
|
||||
- name: update-agent-models
|
||||
agent: learning-updater
|
||||
action: improve_agent_models
|
||||
timeout: 1800
|
||||
parameters:
|
||||
auto_update: true
|
||||
backup_models: true
|
||||
validation_required: true
|
||||
|
||||
- name: test-improved-agents
|
||||
agent: testing-agent
|
||||
action: validate_agent_improvements
|
||||
timeout: 1200
|
||||
parameters:
|
||||
test_scenarios: ["performance", "accuracy", "edge_cases"]
|
||||
acceptance_threshold: 0.95
|
||||
|
||||
- name: deploy-improved-agents
|
||||
agent: deployment-manager
|
||||
action: rollout_agent_updates
|
||||
timeout: 600
|
||||
parameters:
|
||||
rollout_strategy: "canary"
|
||||
rollback_enabled: true
|
||||
|
||||
- name: update-learning-database
|
||||
agent: learning-manager
|
||||
action: record_learning_outcomes
|
||||
timeout: 180
|
||||
parameters:
|
||||
store_improvements: true
|
||||
update_baselines: true
|
||||
|
||||
success_criteria:
|
||||
- models_improved: true
|
||||
- tests_passed: true
|
||||
- deployment_successful: true
|
||||
- learning_recorded: true
|
||||
```
|
||||
Reference in New Issue
Block a user