Agent skill

Lomb Scargle Periodogram

by benchflow-ai in benchflow-ai/skillsbench

Lomb-Scargle periodogram for finding periodic signals in unevenly sampled time series data.

Apache-2.0Auto-check passedData & Analytics

Install Lomb Scargle Periodogram

skills CLI
$ npx skills add benchflow-ai/skillsbench --skill lomb-scargle-periodogram -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install benchflow-ai/skillsbench lomb-scargle-periodogram --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .claude/skills && cp -r skills-src/tasks/exoplanet-detection-period/environment/skills/lomb-scargle-periodogram .claude/skills/lomb-scargle-periodogram && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
lomb-scargle-periodogram
GitHub stars
1.8k
Token cost
~883 tokens
SKILL.md length
249 words
Files
1
Skills in repo
189
Repo updated
First seen
Licence
Apache-2.0

At a glance

Lomb-Scargle periodogram for finding periodic signals in unevenly sampled time series data.

  • Works in 3 steps: Single strong peak: Likely the true period → Harmonics: Peaks at period/2, period*2… → Aliases: Check if period*2 or period/2…
  • Analyzing light curves
  • SKILL.md covers Overview, Basic Usage with Lightkurve, Plotting Periodograms and Period Range Selection, plus 5 more sections
  • Calls pip

What it does

Lomb Scargle Periodogram is an agent skill from benchflow-ai/skillsbench. Lomb-Scargle periodogram for finding periodic signals in unevenly sampled time series data. Use when analyzing light curves, radial velocity data, or any astronomical time series to detect periodic variations. Works for stellar rotation, pulsation, eclipsing binaries, and general periodic phenomena. Based on lightkurve library.

Its SKILL.md is about 880 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Data & Analytics, covering Forecasting and time series. The repository describes itself as: SkillsBench evaluates how well skills work and how effective agents are at using them. The licence is Apache-2.0.

When your agent uses it

  • Analyzing light curves
  • Radial velocity data
  • Any astronomical time series to detect periodic variations

Example prompts

  • “/lomb-scargle-periodogram”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Single strong peak: Likely the true period
  2. Harmonics: Peaks at period/2, period*2 suggest the fundamental period
  3. Aliases: Check if period*2 or period/2 also show signals

What it can do on your machine

Read from SKILL.md and the folder at commit 9a1f4dd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • lightkurve.github.io
    • docs.lightkurve.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Lomb Scargle Periodogram loads about 883 tokens when it runs. Until then it costs about 89 tokens; SKILL.md has 249 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~89
When it runs · the whole SKILL.md, loaded when a task matches
~883

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from benchflow-ai/skillsbench at commit 9a1f4dd, republished under its Apache-2.0 licence (© benchflow-ai). 249 words, ~883 tokens.

Download SKILL.mdSave it as .claude/skills/lomb-scargle-periodogram/SKILL.md (or your agent's skills folder).
name
lomb-scargle-periodogram
description
Lomb-Scargle periodogram for finding periodic signals in unevenly sampled time series data. Use when analyzing light curves, radial velocity data, or any astronomical time series to detect periodic variations. Works for stellar rotation, pulsation, eclipsing binaries, and general periodic phenomena. Based on lightkurve library.

Lomb-Scargle Periodogram

The Lomb-Scargle periodogram is the standard tool for finding periods in unevenly sampled astronomical time series data. It's particularly useful for detecting periodic signals in light curves from space missions like Kepler, K2, and TESS.

Overview

The Lomb-Scargle periodogram extends the classical periodogram to handle unevenly sampled data, which is common in astronomy due to observing constraints, data gaps, and variable cadences.

Basic Usage with Lightkurve

python
import lightkurve as lk
import numpy as np

# Create a light curve object
lc = lk.LightCurve(time=time, flux=flux, flux_err=error)

# Create periodogram (specify maximum period to search)
pg = lc.to_periodogram(maximum_period=15)  # Search up to 15 days

# Find strongest period
strongest_period = pg.period_at_max_power
max_power = pg.max_power

print(f"Strongest period: {strongest_period:.5f} days")
print(f"Power: {max_power:.5f}")

Plotting Periodograms

python
import matplotlib.pyplot as plt

pg.plot(view='period')  # View vs period (not frequency)
plt.xlabel('Period [days]')
plt.ylabel('Power')
plt.show()

Important: Use view='period' to see periods directly, not frequencies. The default view='frequency' shows frequency (1/period).

Period Range Selection

Choose appropriate period ranges based on your science case:

  • Stellar rotation: 0.1 - 100 days
  • Exoplanet transits: 0.5 - 50 days (most common)
  • Eclipsing binaries: 0.1 - 100 days
  • Stellar pulsations: 0.001 - 1 day
python
# Search specific period range
pg = lc.to_periodogram(minimum_period=2.0, maximum_period=7.0)

Interpreting Results

Power Significance

Higher power indicates stronger periodic signal, but be cautious:

  • High power: Likely real periodic signal
  • Multiple peaks: Could indicate harmonics (period/2, period*2)
  • Aliasing: Very short periods may be aliases of longer periods
Common Patterns
  1. Single strong peak: Likely the true period
  2. Harmonics: Peaks at period/2, period*2 suggest the fundamental period
  3. Aliases: Check if period*2 or period/2 also show signals

Model Fitting

Once you find a period, you can fit a model:

python
# Get the frequency at maximum power
frequency = pg.frequency_at_max_power

# Create a model light curve
model = pg.model(time=lc.time, frequency=frequency)

# Plot data and model
import matplotlib.pyplot as plt
lc.plot(label='Data')
model.plot(label='Model')
plt.legend()
plt.show()

Dependencies

bash
pip install lightkurve numpy matplotlib

References

When to Use This vs. Other Methods

  • Lomb-Scargle: General periodic signals (rotation, pulsation, eclipsing binaries)
  • Transit Least Squares (TLS): Specifically for exoplanet transits (more sensitive)
  • Box Least Squares (BLS): Alternative transit detection method

For exoplanet detection, consider using TLS after Lomb-Scargle for initial period search.

© benchflow-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in tasks/exoplanet-detection-period/environment/skills/lomb-scargle-periodogram of benchflow-ai/skillsbench.

Open the folder on GitHubat commit 9a1f4dd

Compare with similar skills

Lomb Scargle Periodogram next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Lomb Scargle Periodogram compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lomb Scargle Periodogram this skillbenchflow-ai/skillsbench1.8k—~883Automated safety check: PassApache-2.0
TimesFM Forecastinggoogle-research/timesfm34k—~4.7kAutomated safety check: PassApache-2.0
StatsmodelszLanqing/codex-claude-academic-skills4.7k15 repos~4.9kAutomated safety check: PassBSD-3-Clause
Timesfm ForecastingzLanqing/codex-claude-academic-skills4.7k3 repos~7.5kAutomated safety check: NotesApache-2.0
Find Hypertable Candidatestimescale/pg-aiguide1.9k1 repos~2.6kAutomated safety check: PassApache-2.0
Pensieve Searcharkohut/pensieve1.4k—~8.2kAutomated safety check: PassApache-2.0

Similar skills

  • TimesFM Forecasting

    google-research/timesfm

    Forecasts any univariate time series zero-shot with Google's TimesFM model, returning point forecasts and calibrated prediction intervals without training.

    34k GitHub stars~4.7k tokensUpdated 11 days ago
    Data & AnalyticsAuto-check passed
  • Statsmodels

    zLanqing/codex-claude-academic-skills

    Statistical models library for Python. An agent skill from zLanqing/codex-claude-academic-skills.

    4.7k GitHub starsUsed in 15 repos~4.9k tokens
    Data & AnalyticsAuto-check passed
  • Timesfm Forecasting

    zLanqing/codex-claude-academic-skills

    Zero-shot time series forecasting with Google's TimesFM foundation model.

    4.7k GitHub starsUsed in 3 repos~7.5k tokens
    Data & AnalyticsAuto-check: notes
  • Find Hypertable Candidates

    timescale/pg-aiguide

    A skill your agent uses to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables.

    1.9k GitHub starsUsed in 1 repo~2.6k tokens
    Data & AnalyticsAuto-check passed
  • Pensieve Search

    arkohut/pensieve

    Search the user's local Pensieve screenshot archive by text, app, or time range.

    1.4k GitHub stars~8.2k tokensUpdated 2 mo ago
    Data & AnalyticsAuto-check passed
  • Alphaear Predictor

    ninehills/skills

    Market prediction skill using Kronos. An agent skill from ninehills/skills.

    280 GitHub starsUsed in 1 repo~531 tokens
    Data & AnalyticsAuto-check passed

More from benchflow-ai/skillsbench

All 189 skills in this repo
  • Lean4 Memories

    benchflow-ai/skillsbench

    This skill should be used when working on Lean 4 formalization projects to maintain persistent memory of successful proof patterns, failed approaches, project conventions, and user preferences…

    1.8k GitHub stars~3.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Senior Data Engineer

    benchflow-ai/skillsbench

    World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, real-time streaming, and data infrastructure.

    1.8k GitHub stars~5.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Ac Branch Pi Model

    benchflow-ai/skillsbench

    AC branch pi-model power flow equations (P/Q and |S|) with transformer tap ratio and phase shift, matching acopf-math-model.md and MATPOWER branch fields.

    1.8k GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Civ6lib

    benchflow-ai/skillsbench

    Civilization 6 district mechanics library. An agent skill from benchflow-ai/skillsbench.

    1.8k GitHub stars~1.7k tokensUpdated 2 mo ago
    Auto-check passed
  • D3 Visualization

    benchflow-ai/skillsbench

    Build deterministic, verifiable data visualizations with D3.js (v6).

    1.8k GitHub stars~1.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Dc Power Flow

    benchflow-ai/skillsbench

    DC power flow analysis for power systems. An agent skill from benchflow-ai/skillsbench.

    1.8k GitHub stars~717 tokensUpdated 2 mo ago
    Auto-check passed

Questions about Lomb Scargle Periodogram

What does Lomb Scargle Periodogram do?

Lomb-Scargle periodogram for finding periodic signals in unevenly sampled time series data. Lomb Scargle Periodogram is an agent skill from benchflow-ai/skillsbench. Lomb-Scargle periodogram for finding periodic signals in unevenly sampled time series data.

When should I use Lomb Scargle Periodogram?

Lomb Scargle Periodogram fits situations like: analyzing light curves; radial velocity data; any astronomical time series to detect periodic variations.

How do I install Lomb Scargle Periodogram in Claude Code?

Run `npx skills add benchflow-ai/skillsbench --skill lomb-scargle-periodogram -a claude-code`. Or copy the skill folder (tasks/exoplanet-detection-period/environment/skills/lomb-scargle-periodogram in benchflow-ai/skillsbench) into .claude/skills/lomb-scargle-periodogram in your project. Claude Code loads it when a task matches its description.

How do I install Lomb Scargle Periodogram in Codex?

Run `npx skills add benchflow-ai/skillsbench --skill lomb-scargle-periodogram -a codex`. Or copy the skill folder (tasks/exoplanet-detection-period/environment/skills/lomb-scargle-periodogram in benchflow-ai/skillsbench) into .agents/skills/lomb-scargle-periodogram in your project. Codex loads it when a task matches its description.

Can I use Lomb Scargle Periodogram in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add benchflow-ai/skillsbench --skill lomb-scargle-periodogram -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lomb-scargle-periodogram, .gemini/skills/lomb-scargle-periodogram, .github/skills/lomb-scargle-periodogram and .opencode/skills/lomb-scargle-periodogram in your project.

What does Lomb Scargle Periodogram need to run?

Going by SKILL.md and its folder, Lomb Scargle Periodogram needs the command-line tools its instructions call (pip). Our summary lists: Python 3.

Does Lomb Scargle Periodogram access the network?

SKILL.md names 2 domains. As links in the text: lightkurve.github.io and docs.lightkurve.org. This is read from the text; nothing was executed.

Is Lomb Scargle Periodogram safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Lomb Scargle Periodogram use?

Lomb Scargle Periodogram is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Lomb Scargle Periodogram use?

About 883 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Lomb Scargle Periodogram?

Skills that share tags, products or a category with Lomb Scargle Periodogram: TimesFM Forecasting (google-research/timesfm, 34k stars), Statsmodels (zLanqing/codex-claude-academic-skills, 4.7k stars), Timesfm Forecasting (zLanqing/codex-claude-academic-skills, 4.7k stars) and Find Hypertable Candidates (timescale/pg-aiguide, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lomb Scargle Periodogram?

benchflow-ai (a GitHub organization) maintains it in benchflow-ai/skillsbench, which has 1,835 GitHub stars. The repository holds 189 skills in this directory. The repository was last updated on July 23, 2026.

Source: benchflow-ai/skillsbench on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.