Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add spedas/spedas_agent_kit --skill timeseries-cleaninggit clone --depth 1 https://github.com/spedas/spedas_agent_kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/spedas/spedas_agent_kit/timeseries-cleaning)<a href="https://agentmods.dev/skills/spedas/spedas_agent_kit/timeseries-cleaning"><img src="https://agentmods.dev/badge/skills/spedas/spedas_agent_kit/timeseries-cleaning/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/spedas/spedas_agent_kit/timeseries-cleaning"><img src="https://agentmods.dev/badge/skills/spedas/spedas_agent_kit/timeseries-cleaning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00087 | $0.02135 |
| Opus 5.5 | $0.00035 | $0.00854 |
| Sonnet 5.5 | $0.00017 | $0.00427 |
| Haiku 4.5 | $0.00009 | $0.00214 |
Grade A, and why
timeseries-cleaning scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Time-series cleaning (the tplot-math hygiene crib)
The IDL-SPEDAS tplot_math pre-analysis ritual: take a raw, messy, possibly
irregular-cadence series and condition it into something the spectral / minimum-variance /
moment tools can trust. This is the first step in front of
solar-wind-turbulence-spectrum, boundary-minimum-variance / magnetopause-lmn-analysis,
and wave-polarization — never feed those raw fill-value-laden, gappy data. There is no
dedicated "clean" MCP tool; the value is the ordered chain and recording every step for
reproducibility.
When to use
- "Clean up this B/V series before I run a spectrum / MVA / polarization."
- "There are spikes / fill values / gaps / NaNs in the data — regularize it."
- "Put this irregular-cadence series on a uniform time grid."
- Any series with data dropouts, instrument spikes, sentinel fill values, or non-uniform cadence.
Do not over-clean: aggressive smoothing destroys the high-frequency power a spectrum needs, and background subtraction changes what MVA/moments see. Clean the minimum required.
Tool chain (all existing)
load_data_source → browse_data_parameters → fetch_data_product (raw series)
→ load the fetched array as a tplot variable → chain the pyspedas tplot_math ops
(time_clip → tdeflag → clean_spikes → tsmooth → subtract_average → tinterpol)
→ get_data the cleaned var → write a cleaned CSV/NPZ artifact → feed the downstream skill,
all wrapped in a create_spedas_analysis_bundle. Use render_tplot for a before/after look.
Backend (verified output contract)
All of these are pyspedas top-level functions that operate on tplot variable names,
store a new tplot variable (via newname= or a suffix), and return None — they
do NOT return arrays. Retrieve the result with pytplot.get_data(<name>).
pyspedas.tdeflag(names, flag=None, method='remove_nan', fillval=...)— replace/remove fill values and NaNs.method='remove_nan'drops flagged rows (changes the time base); other methods (e.g. interpolate/repeat) keep length. Setflag/fillvalto the dataset's sentinel (e.g.-1e31) when it isn't already NaN.pyspedas.clean_spikes(names, nsmooth=10, thresh=0.3, sub_avg=False, ...)— despike by comparing to annsmooth-point smooth; points deviating beyondthreshare removed.pyspedas.tsmooth(names, width=10, median=...)— boxcar (or median, ifmedianset) smooth overwidthpoints.pyspedas.subtract_average(names, median=...)— subtract the interval mean (or median) to remove a DC background.pyspedas.tinterpol(names, interp_to, ...)— interpolatenamesonto the time base of theinterp_tovariable; build a uniform-grid dummy var first to regularize cadence.pyspedas.avg_data(...)— downsample by time-bin averaging when you want a coarser uniform cadence.pyspedas.time_clip(names, trange)— trim to the analysis window.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 100 lines · 87 tokens per session scan A 03734e6c201d
timeseries-cleaning is a skill published in the GitHub repository spedas/spedas_agent_kit (3 stars, last pushed 4mo ago), licensed MIT. It adds 87 tokens to every session and 2,135 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
timeseries-cleaning compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| timeseries-cleaningspedas/spedas_agent_kit | Skill | 3 | 4mo ago | MIT | A | 87 | Claude Code, Codex |
| torchdrugK-Dense-AI/scientific-agent-skills | Skill | 60k | 6d ago | MIT | A | 64 | Claude Code |
| arboretoK-Dense-AI/scientific-agent-skills | Skill | 60k | 6d ago | MIT | A | 55 | Claude Code, Codex |
| deepspot-mK-Dense-AI/scientific-agent-skills | Skill | 60k | 6d ago | MIT | A | 70 | Claude Code |
| pyhealthK-Dense-AI/scientific-agent-skills | Skill | 60k | 6d ago | MIT | A | 84 | Claude Code, Codex |
| tao-validate-recipe-transferNVIDIA/skills | Skill | 4.4k | yesterday | Apache-2.0 | A | 179 | Claude Code |
| nemo-mbridge-perf-expert-parallel-overlapNVIDIA/skills | Skill | 4.4k | yesterday | Apache-2.0 | A | 56 | Claude Code |