[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C1SFDP9W5N3P266E2A97FY":3,"skill-same:01M7C1SFDP9W5N3P266E2A97FY":43},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7C1SFDP9W5N3P266E2A97FY","light-curve-preprocessing",null,"linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fexoplanet-detection-period\u002Frepaired_run\u002Finputs\u002Fskills\u002Flight-curve-preprocessing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# transit-period-determination-from-lightcurves\n\n## Purpose\nDetermine an exoplanet orbital period from a photometric light curve by applying minimal, transit-preserving cleaning and detrending, running a transit-specific period search (TLS\u002FBLS), validating against common aliases (P\u002F2 and 2P), and writing a verifier-aligned period artifact.\n\n## When to Use\nUse when the task requires selecting a single best orbital period (in days) from time-series flux data that may contain outliers, gaps, quality flags, and stellar\u002Finstrument trends, and when you must justify the selected period against half\u002Fdouble-period aliases before writing it to a specified output path.\n\n## Procedure\n- 1) Discover inputs, tools, and task contract (no assumptions)\n- Identify: where the light curve comes from (file, table, API), which columns exist (time\u002Fflux\u002Fflux_err\u002Fquality), and the required output path and formatting (eg 5 decimals).\n- Check available libraries at runtime (prefer: lightkurve for LC handling; TLS if installed; otherwise astropy.timeseries.BoxLeastSquares for BLS).\n- Checkpoint evidence: you can print\u002Finspect a small schema summary (column names, dtypes, n_rows) and confirm the output path string from the task.\n- 2) Validate and standardize the light curve (before any filtering)\n- Ensure time is strictly increasing; if not, sort by time.\n- Mask invalid rows: finite(time, flux) and (if present) finite(flux_err) and flux_err > 0.\n- If a quality\u002Fflag column exists, discover its convention:\n- If documentation\u002Fmetadata states \"0 means good\", filter quality == 0.\n- If unknown, do not guess; instead compare basic diagnostics (fraction removed, RMS of remaining flux, and presence of obvious artifacts) for common conventions and choose the one that yields fewer obvious discontinuities without removing most data. If still ambiguous, keep all points and proceed with robust outlier handling.\n- Checkpoint evidence: report n_points before\u002Fafter masks and the inferred\u002Fused quality rule (or \"unknown, not applied\").\n- 3) Transit-preserving cleaning and detrending (avoid destroying the signal)\n- Outliers: apply robust clipping that minimizes transit suppression:\n- Prefer a running-median residual clip or library outlier removal that operates on detrended residuals (two-pass approach: light clip -> detrend -> clip).\n- Use conservative thresholds first; only tighten if diagnostics show clear non-astrophysical spikes.\n- Detrending: remove long-timescale variability while preserving short transits:\n- Choose a detrend scale based on discovered cadence and expected transit duration scale; enforce that detrend window >> expected transit duration and \u003C\u003C overall baseline.\n- If using lightkurve flatten\u002FSG or spline, avoid fixed window literals; derive window length from cadence and a target timescale.\n- If you already have candidate transit times from a search, re-detrend with transit masking around those events and re-run the search once (single refinement pass).\n- Checkpoint evidence: report detrend parameters (derived window\u002Ftimescale) and a before\u002Fafter robust scatter metric (eg MAD or RMS) to show cleaning did not collapse variability unrealistically.\n- 4) Run a transit-specific period search with environment-grounded bounds\n- Set search period bounds from data, not guesses:\n- max_period: at most ~1\u002F2 to 2\u002F3 of the time baseline (to ensure multiple transits), unless the task explicitly allows single-transit inference.\n- min_period: at least a few cadences and above the effective time resolution; avoid searching below what cadence can support.\n- Execute TLS if available; else run BLS (astropy) with an appropriate duration grid derived from cadence and typical transit fractions (do not hard-code a single duration).\n- Extract top candidate periods (at least the best and a few runners-up) for validation.\n- Checkpoint evidence: store\u002Fprint the best periods and their objective scores (TLS SDE or BLS power\u002FSNR) and confirm the search grid bounds used.\n- 5) Validate candidates and select the final orbital period (explicit decision rule)\n- For the top candidate period P0, evaluate alias\u002Fharmonic set: {P0\u002F2, P0, 2*P0} (and optionally nearby peaks if scores are close).\n- For each candidate Pc in the set:\n- Fold and bin the light curve; compute:\n- Odd-even transit depth difference (split transits by epoch parity). Prefer small odd-even differences relative to depth uncertainty.\n- Number of distinct transits observed across the baseline (prefer >= 2 when possible and consistent spacing).\n- Consistency of transit shape and depth across events (no single-event dominance unless baseline only allows it).\n- Search score at\u002Fnear Pc (compare TLS\u002FBLS metric across candidates, not just visual impression).\n- Decision rule:\n- Choose the Pc with (a) strong search score and (b) best odd-even consistency and (c) the most plausible transit count\u002Fspacing given the baseline.\n- If P and 2P are close in score, prefer the one where the folded curve shows a single distinct transit per orbit (2P) rather than alternating unequal depths at P (indicative of eclipsing-binary-like odd\u002Feven effects).\n- If ambiguity remains after metrics are computed, do not invent precision; report the ambiguity in logs and select the candidate with the most stable metrics across a small range of detrend windows (sensitivity check).\n- Checkpoint evidence (execution anchor): produce a small table for P\u002F2, P, 2P with (score, odd_even_diff, n_transits) and clearly state chosen_period and why.\n- 6) Write the required artifact and verify it (no silent path changes)\n- Write exactly one numeric value (days) to the task-specified output path. Apply 5-decimal formatting only if the task requests it; otherwise write full precision reasonably.\n- Immediately verify:\n- File exists at that exact path.\n- Reading the file yields exactly one parseable float and an optional trailing newline.\n- If writing fails, investigate permissions, working directory, and mount availability; do not redirect to a different path unless the task explicitly allows it.\n- Checkpoint evidence (execution anchor): existence\u002Fread-back checks pass and the parsed float equals the intended chosen_period within formatting tolerance.\n\n## Constraints \u002F Pitfalls\n- Do not use aggressive iterative sine fitting \u002F multi-iteration harmonic removal when searching for transits; it can remove the planetary signal and create false confidence. Only consider periodic stellar-variability modeling if it is strictly masked away from transits and validated by re-detecting the same period afterward.\n- Do not hard-code detrend window lengths, period bounds, durations, or output paths. Derive bounds from cadence and baseline; use the exact output path provided by the task\u002Fverifier and confirm by read-back before finishing.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fexoplanet-detection-period\u002Frepaired_run\u002Finputs\u002Fskills\u002Flight-curve-preprocessing",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill light-curve-preprocessing",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill light-curve-preprocessing",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill light-curve-preprocessing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fexoplanet-detection-period\u002Frepaired_run\u002Finputs\u002Fskills\u002Flight-curve-preprocessing\u002FSKILL.md",true,[],[44,51,58,65,70,75],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":66,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":71,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":76,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]