Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

jpeng-predictive-scalerjpeng 预测定标器

Agent Skill

jpeng-predictive-scaler 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,294

周安装

178

GitHub Stars

公开资料未说明

下载量

1,381
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:jpeng-predictive-scaler(jpeng 预测定标器)
来源仓库:https://github.com/jpengcheng523-netizen/jpeng-predictive-scaler
安装命令:
openclaw skills install jpeng-predictive-scaler
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install jpeng-predictive-scaler

简介

使用容量规划和自动扩展决策的趋势分析和预测方法来分析资源使用模式并预测未来的扩展需求。

SKILL.md

name
predictive-scaler
description
Analyze resource usage patterns and predict future scaling needs using trend analysis and forecasting methods for capacity planning and auto-scaling decisions.

Predictive Scaler

Analyze resource usage patterns and predict future scaling needs.

When to Use

  • Capacity planning and resource forecasting
  • Auto-scaling decision support
  • Predicting CPU, memory, or request load
  • Analyzing bursty traffic patterns
  • Generating scaling recommendations

Usage

const scaler = require('./skills/predictive-scaler');

// Basic prediction
const prediction = scaler.predict(cpuHistory, {
  horizon: 60,  // Predict 60 minutes ahead
  scaleUpThreshold: 0.8,
  scaleDownThreshold: 0.3
});

console.log(prediction.recommendation);
// { action: 'scale_up', reason: 'Predicted peak 0.85 exceeds threshold 0.8' }

API

predict(data, options)

Predict future resource usage and generate scaling recommendation.

const result = scaler.predict(usageData, {
  horizon: 60,              // Prediction horizon in minutes
  minDataPoints: 5,         // Minimum data points needed
  scaleUpThreshold: 0.8,    // Threshold to recommend scale-up
  scaleDownThreshold: 0.3,  // Threshold to recommend scale-down
  confidenceThreshold: 0.7, // Minimum confidence for recommendations
  smoothingFactor: 0.3,     // Exponential smoothing factor
  windowSize: 10            // Moving average window
});

predictMulti(resources, options)

Predict for multiple resources at once.

const result = scaler.predictMulti({
  cpu: cpuHistory,
  memory: memoryHistory,
  requests: requestHistory
});

console.log(result.combinedRecommendation);
// { action: 'scale_up', scaleUpCount: 1, scaleDownCount: 0 }

predictLinear(data, steps)

Predict using linear regression.

const { predictions, confidence } = scaler.predictLinear(data, 10);

predictExponential(data, steps, factor)

Predict using exponential smoothing.

const { predictions, confidence } = scaler.predictExponential(data, 10, 0.3);

detectTrend(data)

Detect trend direction in data.

const trend = scaler.detectTrend(data);
// 'increasing' | 'decreasing' | 'stable' | 'volatile'

detectBurstyPattern(data)

Detect bursty traffic patterns.

const bursty = scaler.detectBurstyPattern(data);
// { isBursty: true, burstFactor: 0.6, spikeRatio: 0.15 }

calculateCapacityNeeded(current, predicted, targetUtilization)

Calculate capacity needed to handle predicted load.

const capacity = scaler.calculateCapacityNeeded(10, 8.5, 0.7);
// { current: 10, needed: 13, change: 3, changePercent: 30 }

analyzeScalingHistory(events)

Analyze historical scaling events.

const analysis = scaler.analyzeScalingHistory(scalingEvents);
// { scaleUpFrequency: 0.3, averageInterval: 3600000 }

Output Structure

{
  predictions: [0.65, 0.68, 0.72, ...],  // Predicted values
  confidence: 0.85,                       // Prediction confidence
  trend: 'increasing',                    // Trend direction
  bursty: {
    isBursty: false,
    burstFactor: 0.2
  },
  recommendation: {
    action: 'scale_up',                   // 'scale_up' | 'scale_down' | 'maintain'
    reason: 'Predicted peak 0.85 exceeds threshold 0.8',
    current: 0.72,
    predicted: { average: 0.78, max: 0.85, min: 0.70 }
  },
  statistics: {
    mean: 0.65,
    stdDev: 0.1,
    min: 0.45,
    max: 0.82,
    dataPoints: 30
  }
}

Scaling Actions

ActionDescription
scale_upResource predicted to exceed scale-up threshold
scale_downResource predicted below scale-down threshold
maintainResource within normal range
unknownInsufficient data or error

Examples

Basic Scaling Prediction

const scaler = require('./skills/predictive-scaler');

// CPU usage history (0-1 normalized)
const cpuHistory = [0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.72, 0.75, 0.78];

const prediction = scaler.predict(cpuHistory, {
  horizon: 30,
  scaleUpThreshold: 0.8
});

if (prediction.recommendation.action === 'scale_up') {
  console.log('Scale up recommended:', prediction.recommendation.reason);
}

Multi-Resource Prediction

const scaler = require('./skills/predictive-scaler');

const resources = {
  cpu: [0.5, 0.55, 0.6, 0.65, 0.7],
  memory: [0.3, 0.32, 0.35, 0.38, 0.4],
  requests: [100, 120, 150, 180, 200]
};

const result = scaler.predictMulti(resources, { horizon: 60 });

console.log('CPU:', result.resources.cpu.recommendation.action);
console.log('Memory:', result.resources.memory.recommendation.action);
console.log('Combined:', result.combinedRecommendation.action);

Trend Analysis

const scaler = require('./skills/predictive-scaler');

const usageData = [0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6];

const trend = scaler.detectTrend(usageData);
console.log('Trend:', trend); // 'increasing'

const bursty = scaler.detectBurstyPattern(usageData);
console.log('Bursty:', bursty.isBursty); // false

Capacity Planning

const scaler = require('./skills/predictive-scaler');

const prediction = scaler.predict(cpuHistory, { horizon: 60 });
const predictedLoad = prediction.predictions[prediction.predictions.length - 1];

const capacity = scaler.calculateCapacityNeeded(
  10,              // Current capacity (instances)
  predictedLoad,   // Predicted load
  0.7              // Target utilization
);

console.log(`Need ${capacity.needed} instances (${capacity.changePercent}% change)`);

Scaling History Analysis

const scaler = require('./skills/predictive-scaler');

const scalingEvents = [
  { action: 'scale_up', timestamp: Date.now() - 3600000 },
  { action: 'scale_down', timestamp: Date.now() - 1800000 },
  { action: 'scale_up', timestamp: Date.now() }
];

const analysis = scaler.analyzeScalingHistory(scalingEvents);
console.log('Scale-up frequency:', analysis.scaleUpFrequency);
console.log('Average interval:', analysis.averageInterval, 'ms');

Prediction Methods

Linear Regression

  • Best for: Steady growth/decline patterns
  • Output: Trend line with confidence (R²)
  • Use when: Data shows clear linear trend

Exponential Smoothing

  • Best for: Recent data more important than old
  • Output: Smoothed predictions
  • Use when: Recent trends are more relevant

Combined Prediction

  • Default: Weighted average of both methods
  • Weights: Based on each method's confidence
  • More robust than single method

Best Practices

  1. Minimum data points: Use at least 10-15 data points for reliable predictions
  2. Normalize data: Input should be 0-1 range (CPU%, memory%, etc.)
  3. Set appropriate thresholds: Scale-up at 80%, scale-down at 30% is typical
  4. Consider bursty patterns: Lower confidence for highly variable data
  5. Combine with cooldown: Don't scale too frequently based on predictions
  6. Validate predictions: Compare predictions with actual values over time

Notes

  • Predictions are statistical estimates, not guarantees
  • Confidence decreases with prediction horizon
  • Bursty patterns reduce prediction reliability
  • Multiple resources can be analyzed together
  • Historical scaling events inform future decisions

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

94.3%
按下载量换算1,302

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills