agent-resource-allocator
ما الذي تفعله
تُرشد هذه المهارة الوكيل إلى توزيع موارد الحاسوب على المهام المختلفة، والتنبؤ بموعد الحاجة إلى سعة إضافية. وهي موجهة لمن يديرون الخوادم أو التطبيقات أو فرق الوكلاء ويريدون استخداماً جيداً للموارد.
متى تستخدمها
- ✓عندما يعاني جزء من النظام نقصاً مستمراً في الذاكرة أو قدرة المعالجة.
- ✓عندما تريد التخطيط للسعة قبل موسم مزدحم أو إطلاق.
- ✓عندما يدفع النظام ثمن موارد لا يستخدمها تقريباً.
رابط المهارة
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/agent-resource-allocator/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“تحقق من طريقة استخدام خوادمنا للذاكرة وقدرة المعالجة، وأخبرني متى نحتاج إلى سعة إضافية.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يراجع وكيلك الاستخدام الحالي، ويتنبأ بالاحتياجات المستقبلية من الأنماط السابقة، ويقترح كيفية توزيع الموارد بين المهام.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
name: Resource Allocator type: agent category: optimization description: Adaptive resource allocation, predictive scaling and intelligent capacity planning
Resource Allocator Agent
Agent Profile
- Name: Resource Allocator
- Type: Performance Optimization Agent
- Specialization: Adaptive resource allocation and predictive scaling
- Performance Focus: Intelligent resource management and capacity planning
Core Capabilities
1. Adaptive Resource Allocation
// Advanced adaptive resource allocation system
class AdaptiveResourceAllocator {
constructor() {
this.allocators = {
cpu: new CPUAllocator(),
memory: new MemoryAllocator(),
storage: new StorageAllocator(),
network: new NetworkAllocator(),
agents: new AgentAllocator()
};
this.predictor = new ResourcePredictor();
this.optimizer = new AllocationOptimizer();
this.monitor = new ResourceMonitor();
}
// Dynamic resource allocation based on workload patterns
async allocateResources(swarmId, workloadProfile, constraints = {}) {
// Analyze current resource usage
const currentUsage = await this.analyzeCurrentUsage(swarmId);
// Predict future resource needs
const predictions = await this.predictor.predict(workloadProfile, currentUsage);
// Calculate optimal allocation
const allocation = await this.optimizer.optimize(predictions, constraints);
// Apply allocation with gradual rollout
const rolloutPlan = await this.planGradualRollout(allocation, currentUsage);
// Execute allocation
const result = await this.executeAllocation(rolloutPlan);
return {
allocation,
rolloutPlan,
result,
monitoring: await this.setupMonitoring(allocation)
};
}
// Workload pattern analysis
async analyzeWorkloadPatterns(historicalData, timeWindow = '7d') {
const patterns = {
// Temporal patterns
temporal: {
hourly: this.analyzeHourlyPatterns(historicalData),
daily: this.analyzeDailyPatterns(historicalData),
weekly: this.analyzeWeeklyPatterns(historicalData),
seasonal: this.analyzeSeasonalPatterns(historicalData)
},
// Load patterns
load: {
baseline: this.calculateBaselineLoad(historicalData),
peaks: this.identifyPeakPatterns(historicalData),
valleys: this.identifyValleyPatterns(historicalData),
spikes: this.detectAnomalousSpikes(historicalData)
},
// Resource correlation patterns
correlations: {
cpu_memory: this.analyzeCPUMemoryCorrelation(historicalData),
network_load: this.analyzeNetworkLoadCorrelation(historicalData),
agent_resource: this.analyzeAgentResourceCorrelation(historicalData)
},
// Predictive indicators
indicators: {
growth_rate: this.calculateGrowthRate(historicalData),
volatility: this.calculateVolatility(historicalData),
predictability: this.calculatePredictability(historicalData)
}
};
return patterns;
}
// Multi-objective resource optimization
async optimizeResourceAllocation(resources, demands, objectives) {
const optimizationProblem = {
variables: this.defineOptimizationVariables(resources),
constraints: this.defineConstraints(resources, demands),
objectives: this.defineObjectives(objectives)
};
// Use multi-objective genetic algorithm
const solver = new MultiObjectiveGeneticSolver({
populationSize: 100,
generations: 200,
mutationRate: 0.1,
crossoverRate: 0.8
});
const solutions = await solver.solve(optimizationProblem);
// Select solution from Pareto front
const selectedSolution = this.selectFromParetoFront(solutions, objectives);
return {
optimalAllocation: selectedSolution.allocation,
paretoFront: solutions.paretoFront,
tradeoffs: solutions.tradeoffs,
confidence: selectedSolution.confidence
};
}
}
2. Predictive Scaling with Machine Learning
// ML-powered predictive scaling system
class PredictiveScaler {
constructor() {
this.models = {
time_series: new LSTMTimeSeriesModel(),
regression: new RandomForestRegressor(),
anomaly: new IsolationForestModel(),
ensemble: new EnsemblePredictor()
};
this.featureEngineering = new FeatureEngineer();
this.dataP
الأسئلة الشائعة
ما هو التوسع التنبؤي؟
هو تقدير الطلب المستقبلي من الأنماط السابقة، فتُضاف سعة إضافية قبل الحاجة إليها.
هل تغيّر الخوادم بنفسها؟
تركز المهارة على التحليل والتخطيط، لذلك أنت من يقرر التعديلات.
ما الموارد التي تغطيها؟
تغطي المهارة قدرة المعالجة والذاكرة والتخزين والشبكة وعدد الوكلاء.
التفاصيل
الوصف الأصلي من المؤلف
Agent skill for resource-allocator - invoke with $agent-resource-allocator
repo: ruvnet/ruflo
الشعبية
- نجوم GitHub
- 81k
- الترتيب
- #1502
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
agent-adaptive-coordinator
81kيساعد وكيلك على تقسيم مجموعة من وكلاء الذكاء الاصطناعي وإعادة توزيعها مع تغير حجم العمل، واختيار تخطيط يناسب المهمة.
agent-agent
81kيعلّم وكيلك أن يحوّل هدفًا كبيرًا إلى خطة مرتبة من الإجراءات، وأن يعيد التخطيط عندما تتغير الظروف.
agent-agentic-payments
81kيساعد وكيلك على إدارة تفويضات الإنفاق للتسوق بالذكاء الاصطناعي، بحدود إنفاق وأطر زمنية وقواعد للتجار وموافقات موقعة.
agent-analyze-code-quality
81kيساعد وكيلك على مراجعة الشيفرة من حيث الجودة، فيجد روائح الشيفرة والديون التقنية واقتراحات إعادة الهيكلة دون تغيير الملفات.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.