Agent skill

box-least-squares

Box Least Squares (BLS) periodogram for detecting transiting exoplanets and eclipsing binaries. Use when searching for periodic box-shaped dips in light curves. Alternative to Transit Least Squares, available in astropy.timeseries. Based on Kovács et al. (2002).

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill box-least-squares --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 10 KB
Bundled scripts: none
Path: skills/analysis/box-least-squares/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Box Least Squares (BLS) Periodogram The Box Least Squares (BLS) periodogram is a statistical tool for detecting transiting exoplanets and eclipsing binaries in photometric time series data. BLS models a transit as a periodic upside-down top hat (box shape) and finds the period, duration, depth, and reference time that best fit the data. ## Overview BLS is built into Astropy and provides an alternative to Transit Least Squares (TLS). Both search for transits, but with different implementations and performance characteristics. **Key parameters BLS searches for:** - Period (orbital period) - Duration (transit duration) - Depth (how much flux drops during transit) - Reference time (mid-transit time of first transit) ## Installation BLS is part of Astropy: ```bash pip install astropy ``` ## Basic Usage ```python import numpy as np import astropy.units as u from astropy.timeseries import BoxLeastSquares # Prepare data # time, flux, and flux_err should be numpy arrays or Quantities t = time * u.day # Add units if not already present y = flux dy = flux_err # Optional but recommended # Create BLS object model = BoxLeastSquares(t, y, dy=dy) # Automatic period search with specified duration

What's inside
Steps it walks through
  1. Overview
  2. Installation
  3. Basic Usage
  4. Using autopower vs power
  5. autopower: Automatic Period Grid
  6. power: Custom Period Grid
  7. Objective Functions
  8. 1. Log Likelihood (default)
  9. 2. Signal-to-Noise Ratio (SNR)
  10. Complete Example
  11. Peak Statistics for Validation
  12. Period Grid Sensitivity
  13. Comparing BLS Results
  14. Phase-Folded Light Curve
Ships with 1 file
  • metadata.json
Commands it runs
pip install astropy
pip install astropy numpy matplotlib
pip install lightkurve
More from claude-skill-registry
All skills →
About this skill
What does the box-least-squares skill do?

Box Least Squares (BLS) periodogram for detecting transiting exoplanets and eclipsing binaries. Use when searching for periodic box-shaped dips in light curves. Alternative to Transit Least Squares, available in astropy.timeseries. Based on Kovács et al. (2002).

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill box-least-squares --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going