Diagnose a variable-star light curve stored as a CSV by plotting it, assessing it with a vision model, and orchestrating follow-up period analysis.
Use this skill when the user asks to diagnose a variable source light curve and provides a CSV path (and optionally column names).
inspect_light_curve_schema: Read the file head, infer delimiter/header/columns, detect source metadata, and report whether the data is multi-band.lookup_source_context: Resolve source name/coordinates, search VSX first, and fetch Gaia astrometry if possible.plot_light_curve_csv: Loads CSV and produces a PNG plot.diagnose_plot_with_vlm: Sends the PNG to a vision model and returns a structured diagnosis text.obtain_GLS: Computes Generalized Lomb-Scargle periodogram and phase-folded plots.obtain_BLS: Computes Box-Least-Squares periodogram and phase-folded plots (for transits).obtain_zoom_in: Produces zoom-in plots for specified time ranges, return the path.analysis_LS: Analyzes the phase-folded results from GLS or BLS.analyze_zoomed_plots: Analyzes zoomed-in plots for detailed local features.Inspect the file first:
Call inspect_light_curve_schema with the CSV path before any other tool.
time_col, y_col, yerr_col, band_col, scale, and any source metadata it finds.Search catalogs before diagnosis:
If the file head, user request, or schema inspection provides a source name or coordinates, call lookup_source_context immediately.
Teff, logg, likely galaxy vs star, and likely binary/non-single-star status.Initial Plotting:
Call plot_light_curve_csv with the detected columns from step 1. Let the tool keep multi-band data together if a band/filter column exists.
out_path for the diagnosis plot../artifacts/{csv_stem}_diagnose_plot.png.Visual Assessment:
Call diagnose_plot_with_vlm on the image path returned by step 3.
CRITICAL DECISION STEP (Do not stop here!):
Read the text output from diagnose_plot_with_vlm carefully.
obtain_GLS immediately.obtain_BLS immediately.obtain_zoom_in immediately. With the time_ranges being the list of ranges suggested by the vision model.Note: Do not generate the final user response yet. You must run the recommended periodogram tools first.
Follow-up Analysis (If triggered):
obtain_GLS was called, take the result and feed it into analysis_LS together with
candidate_type : a complete GLS candidate list suggested by diagnose_plot_with_vlmP, 2P, or P/2 phase-folded panels.obtain_BLS was called, take the result and feed it into analysis_LS together with
candidate_type : a complete BLS candidate list suggested by diagnose_plot_with_vlmobtain_zoom_in was called, take zoomed-in plot result path together with candidate_type as a list of zoom-in candidates suggested by diagnose_plot_with_vlm results and feed it into analyze_zoomed_plots to get detailed local feature analysis.
analyze_zoomed_plots suggests further zoom-in, invoke (3) and (4) again recursively until no further zoom-in is suggested.Final Reporting: Aggregate all information (schema inspection + VSX/Gaia context + visual diagnosis + periodogram results + phase folding analysis) into the final diagnosis report. Your report must include:
Teff, logg, and galaxy/binary hints when Gaia provides them.Teff/logg constraints.