Photo To Replan
Apps & Automationphoto-to-replanPhoto 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.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
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
-
Locate the shared
photo_to_replan_pipelinedirectory. -
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
- Read the generated report:
output/<image_stem>/pipeline_report.json
- From the report, inspect these outputs when needed:
scenario.jsonreplanned_schedule.jsondeferred_targets.jsonreplanned_sequence.ninaTargetSetsky_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.jpgform.
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.jsonscenario.jsonreplanned_schedule.jsonreplanned_sequence.ninaTargetSet
Business success is separate. Check deferred_targets.json and replanned_schedule.json to see whether future slots were actually filled.