anbeime/skill / skills/data-flow-skill/data-flow-skill
data-flow-skill
Verified面向数据分析任务的一站式 Agent Skill,覆盖数据类型检测、数据理解、预处理、统计分析、可视化图表生成、正式报告和幻灯片输出。适用于课程作业、论文实验、业务分析、SEO/GEO 数据报告和可追溯数据分析工作流。
scripts/analysis/analyzer_time_series_analysis.py
View on GitHub"""Time-series profiling helpers."""
from __future__ import annotations
from dataclasses import asdict, dataclass
from statistics import mean
from typing import Any
@dataclass(slots=True)
class TimeSeriesSummary:
time_field: str
metric_field: str
sample_size: int
earliest_time: str | None
latest_time: str | None
gap_count: int
candidate_frequency: str
is_univariate: bool
def build_time_series_profile(
time_field: str,
metric_field: str,
time_values: list[str],
metric_values: list[float | int],
) -> dict[str, Any]:
non_empty_time_values = [str(value) for value in time_values if value not in (None, "")]
non_empty_metric_values = [float(value) for value in metric_values if value not in (None, "")]
sample_size = min(len(non_empty_time_values), len(non_empty_metric_values))
summary = TimeSeriesSummary(
time_field=time_field,
metric_field=metric_field,
sample_size=sample_size,
earliest_time=min(non_empty_time_values) if non_empty_time_values else None,
latest_time=max(non_empty_time_values) if non_empty_time_values else None,
gap_count=max(len(time_values) - len(non_empty_time_values), 0),
candidate_frequency="unknown",
is_univariate=True,
)
return {
"time_series_profile": asdict(summary),
"summary_statistics": {
"mean": round(mean(non_empty_metric_values), 4) if non_empty_metric_values else None,
"minimum": min(non_empty_metric_values) if non_empty_metric_values else None,
"maximum": max(non_empty_metric_values) if non_empty_metric_values else None,
},
"recommended_checks": [
"Check whether the time index is continuous.",
"Check whether daily, weekly, or monthly aggregation is needed.",
"Check anomaly spikes and missing intervals.",
"Add rolling, period-over-period, or seasonal views when appropriate.",
],
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |