power-spectral-density

power-spectral-density is a skill for Claude Code, Codex from spedas/spedas_agent_kit. It costs 87 tokens per session (1,764 once invoked), scanned A, original, MIT.

A method for calculating a one-dimensional power spectral density, a graph showing how a signal's strength is distributed across frequencies, for one steady time interval.

In plain words
What is it for?
Use it to analyze one scalar measurement such as magnetic-field strength, density, or velocity and obtain a frequency-power dataset and log-scale spectrum plot.
Why use it?
It provides a quick frequency view for finding a dominant frequency or estimating how signal power changes across frequencies, without showing how the spectrum changes over time.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to analyze one scalar measurement such as magnetic-field strength, density, or velocity and obtain a frequency-power dataset and log-scale spectrum plot.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spedas/spedas_agent_kit/power-spectral-density
Install

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.

Any agent
npx skills add spedas/spedas_agent_kit --skill power-spectral-density
Clone the repo
git clone --depth 1 https://github.com/spedas/spedas_agent_kit

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for power-spectral-density

README.md
[![agentmods](https://agentmods.dev/badge/skills/spedas/spedas_agent_kit/power-spectral-density/github.svg)](https://agentmods.dev/skills/spedas/spedas_agent_kit/power-spectral-density)
Your own site
<a href="https://agentmods.dev/skills/spedas/spedas_agent_kit/power-spectral-density"><img src="https://agentmods.dev/badge/skills/spedas/spedas_agent_kit/power-spectral-density/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.

agentmods 80×15 button for power-spectral-density

Your own site · 80×15
<a href="https://agentmods.dev/skills/spedas/spedas_agent_kit/power-spectral-density"><img src="https://agentmods.dev/badge/skills/spedas/spedas_agent_kit/power-spectral-density.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,764 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.01764
Opus 5.5 $0.00035 $0.00706
Sonnet 5.5 $0.00017 $0.00353
Haiku 4.5 $0.00009 $0.00176

Measured 3mo ago against content hash 58ce3efdb0b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

power-spectral-density 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.

.agents/plugins/spedas-codex/skills/power-spectral-density/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Single-interval power spectral density (1-D PSD)

A guided version of the IDL SPEDAS pwrspc crib sheet: take one scalar channel over a stationary interval and produce the classic log–log PSD so you can read off the inertial-range slope (e.g. Kolmogorov ~f^-5/3) or a spectral peak. This is the single-interval spectrum — collapsed over time, no dynamic axis. For the time-evolving picture use the dynamic-power-spectrum / wavelet tools instead.

When to use

  • "What's the PSD slope of |B| (or B_R, density, V) over this interval?"
  • "Where's the spectral peak / break frequency for this window?"
  • "Give me the quick-look FFT spectrum, I don't need the time evolution."

Tool chain (all already exist)

load_data_source → browse_data_parameters → fetch_data_product → a small local pwrspc(time, values) call → write {freq, power} to one .npz → render_tplot (single line panel, log–log), wrapped in create_spedas_analysis_bundle.

There is deliberately no MCP "PSD" tool: pwrspc returns plain arrays, so the spectrum is computed locally and only the resulting two columns are written to disk.

Backend (VERIFIED contract)

pyspedas.tplot_tools.tplot_math.pwrspc.pwrspc(time, quantity, noline=False, nohanning=False, bin=3, notperhz=False) returns a (freq, power) tuple of ndarrays DIRECTLY — it does not create or store a tplot variable, and it does not write a file. You call it in-process and capture the two arrays.

  • time must be numeric Unix-second timestamps (a 1-D float array), not ISO strings / datetime64.
  • quantity is the 1-D scalar values array, same length as time.
  • noline=False removes a linear trend; nohanning=False applies a Hanning window; bin sets log-frequency bin smoothing; notperhz=False returns power per Hz.
  • freq is in Hz (derived from the sampling interval implied by time), so irregular/non-monotonic timestamps corrupt the frequency axis — resample to a uniform grid first if cadence is irregular.

Read the full file on GitHub · 67 lines

Changes

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.

  1. 3mo ago First seen · 67 lines · 87 tokens per session scan A 58ce3efdb0b4

Subscribe to this mod's changes

power-spectral-density 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 1,764 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.

Related

power-spectral-density compared with skills from other repositories

power-spectral-density next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
power-spectral-densityspedas/spedas_agent_kitSkill34mo agoMITA87Claude Code, Codex
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill38kyesterdayApache-2.0A123Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill60k6d agoMITA44Claude Code
exploratory-data-analysisK-Dense-AI/scientific-agent-skillsSkill60k6d agoMITA83Claude Code
phylogeneticsK-Dense-AI/scientific-agent-skillsSkill60k6d agoMITA71Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill35ktodayMITA43Claude Code, Codex
mapping-to-snomedmaziyarpanahi/openmedSkill5.9k6d agoApache-2.0A205Claude Code