OpenParable
Skip to content
← Back to skills

Photo To Replan

Apps & Automation
photo-to-replan

Photo To Replan is an Agent Skill for apps & automation published in the Yu-Yang-Li/StarWhisper repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use this skill when the user wants to run the end-to-end all-sky photo pipeline from a raw all-sky image to a replanned observing sequence, using the packaged run_pipeline.py entrypoint in this shared directory.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Yu-Yang-Li/StarWhisper/blob/HEAD/AllSky-Camera-XL/skill/photo-to-replan/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/photo-to-replan, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Photo To Replan

Use this skill when the task is to go from a raw all-sky image to replanned observing outputs.

Workflow

  1. Locate the shared photo_to_replan_pipeline directory.

  2. Run the single-entry pipeline script from that directory:

python run_pipeline.py --image /abs/path/to/image.jpg

Optional:

  • Override parameter group with --position-name position_X
  • Save segmentation overlay with --save-overlay
  1. Read the generated report:
  • output/<image_stem>/pipeline_report.json
  1. From the report, inspect these outputs when needed:
  • scenario.json
  • replanned_schedule.json
  • deferred_targets.json
  • replanned_sequence.ninaTargetSet
  • sky_replan_plot.png

Input Requirements

  • The input must be a raw all-sky camera photo.
  • The filename should contain Beijing time, preferably in YYYY_MM_DD_HH_MM_SS.jpg form.

Notes

  • The mask stage uses the packaged Pic2mask/full_image_infer/infer_full_image.py.
  • The replan stage uses the packaged sequence_adjust_tool/scheme_horizon_to_image/replan.py.
  • The pipeline configuration is stored in configs/default.json.
  • The packaged configuration uses a single conda environment for the whole pipeline.

Validation

A run counts as pipeline-successful if these files exist and are readable:

  • pipeline_report.json
  • scenario.json
  • replanned_schedule.json
  • replanned_sequence.ninaTargetSet

Business success is separate. Check deferred_targets.json and replanned_schedule.json to see whether future slots were actually filled.