Astrophotography Processing
Purpose
Help users produce technically sound astrophotography results while preserving original data, metadata, and reproducibility.
Invocation Boundary
Use this skill only when context clearly indicates astrophotography or night-sky imaging workflows.
Trigger examples:
- Telescope/lens star fields, deep-sky objects, Milky Way, comet, lunar/planetary/solar data
- Calibration frames, stacking, registration, gradient removal, color calibration
- FITS/XISF/RAW subs, linear masters, rejection maps, dithering, deconvolution
- PixInsight, Siril, Astro Pixel Processor, DeepSkyStacker, StarNet, StarXTerminator, WinJUPOS, Python astro pipelines
When not to use:
- General photo editing requests without astronomy context
- Fashion, portrait, product, wedding, travel edits not involving night-sky capture workflows
Operating Mode
Choose one primary mode and label it in the response:
- Diagnosis: inspect visible or file-based issues and identify likely causes.
- Workflow: provide ordered processing steps for available data and software.
- Recovery: repair a specific artifact or failed stage with minimal rework.
- Automation: provide scripts, batch commands, or repeatable organization.
- Scientific preservation: preserve measurement integrity and metadata over cosmetic output.
Evidence Rules
- Separate observed issues from likely causes.
- If only JPEG/PNG/screenshot is available, do not make firm claims about calibration quality, original bit depth, Bayer pattern correctness, clipping in source linear data, or linear behavior.
- Prefer original linear masters, calibrated subs, FITS/XISF headers, and processing history before recommending irreversible fixes.
- If files are unavailable, provide a cautious diagnosis and the smallest next test that can confirm/refute the hypothesis.
Minimal Questions Policy
Keep intake lightweight.
- Ask at most 3 high-value questions first when critical context is missing.
- If the user wants immediate guidance, proceed with reasonable assumptions and label assumptions explicitly.
- Do not dump the full intake checklist unless requested.
High-value intake checklist (internal use):
- Image type: deep-sky, planetary/lunar/solar, comet, Milky Way landscape, mosaic.
- Input stage: raw subs, calibrated/registered subs, linear master, stretched image.
- Data/software: FITS/XISF/RAW/TIFF/SER and PixInsight/Siril/APP/DSS/Photoshop/Lightroom/GIMP/Affinity/Python.
- Capture and calibration basics: camera/optics/filter, exposure/gain/ISO/temp, darks/flats/bias/dark-flats.
- Desired output: aesthetic presentation, troubleshooting, or scientific/photometric integrity.
Local File Inspection Protocol
When local files are available:
- Inspect directory layout before proposing exact steps.
- Identify file types and separate lights, calibration frames, masters, and exports.
- Read metadata where possible: exposure, gain/ISO, temperature, filter, Bayer pattern, dimensions, bit depth, date/session, object.
- Summarize findings before recommending processing.
- Never modify source files.
- Write previews, audits, and generated outputs to process/ or exports/.
- If tooling is unavailable, fall back to filenames, folder structure, image dimensions, and user notes.
Helper scripts:
- scripts/fits_audit.py
- scripts/image_stats_preview.py
Core Workflow Router
Default deep-sky sequence unless software requires a variant:
- Organize data by session/filter/exposure/gain-temp.
- Calibrate with matched darks/flats/bias-or-dark-flats.
- Quality control and reject poor subframes.
- Register with stable reference geometry.
- Normalize/integrate with robust rejection.
- Linear stage: crop, gradient removal, color calibration, linear denoise, optional decon/sharpen.
- Stretch while protecting black point and star cores.
- Nonlinear finishing with restrained contrast/saturation/star handling.
Detailed decision guides:
- Calibration details: references/calibration.md
- PixInsight: references/pixinsight.md
- Siril: references/siril.md
- APP, DSS, Photoshop, Lightroom, GIMP, Affinity: references/app-dss-photoshop.md
- Planetary/lunar/solar: references/planetary-lunar-solar.md
- Milky Way landscape: references/milky-way-landscape.md
- Comets, mosaics, OSC dual-narrowband: references/comets-mosaics-dualband.md
- Artifact recovery: references/troubleshooting.md
Tool-Specific Guardrails
- Do not use SCNR as a substitute for proper color calibration.
- Apply green cast/noise suppression only after color calibration and only when appropriate.
- Do not use Lightroom/ACR as the raw converter for calibration subframes unless this is a landscape workflow.
- Optional WinJUPOS/de-rotation may help Jupiter/Saturn/Mars workflows.
- Avoid presenting fixed numeric settings as universal; use adjustable starting ranges with visual/statistical checks.
Scientific or Photometric Mode
When the goal is analysis/measurement:
- Preserve linear calibrated data.
- Avoid cosmetic star removal, generative edits, aggressive denoising, star reduction, local contrast boosts, or nonlinear color manipulation in the measurement version.
- Preserve FITS headers, WCS/plate-solve info, exposure metadata, and processing logs.
- Export a presentation copy separately from the analysis master.
Solar Safety
For solar data, do not provide capture advice that implies viewing or imaging the Sun without a proper front-mounted solar filter or a purpose-built solar telescope. Processing guidance is allowed; unsafe capture assumptions must be corrected briefly.
Export and File Safety
- Never overwrite RAW/FITS/XISF/SER/AVI/MOV/original TIFF sources.
- Preserve linear masters in 32-bit FITS/TIFF or equivalent.
- Use 16-bit TIFF for nonlinear finishing.
- Use JPEG/PNG only for sharing.
- Encourage use of templates/processing-log.md for reproducibility.
Default Response Structure
For normal requests, respond in this order:
- Likely issue or recommended path
- Assumptions based on available data
- Ordered workflow
- Checks after each major stage
- What not to do
- Suggested filenames/outputs
For shared images, respond in this order:
- Visible issues
- Likely causes
- Tests to confirm
- Smallest next edit
- Longer reprocessing recommendation (if needed)
1---2name: astrophotography-processing3description: Router for astrophotography processing, troubleshooting, and safe workflow guidance across deep-sky, narrowband, planetary/lunar/solar, Milky Way landscape, comet, and mosaic data.4---56# Astrophotography Processing78## Purpose910Help users produce technically sound astrophotography results while preserving original data, metadata, and reproducibility.1112## Invocation Boundary1314Use this skill only when context clearly indicates astrophotography or night-sky imaging workflows.1516Trigger examples:1718- Telescope/lens star fields, deep-sky objects, Milky Way, comet, lunar/planetary/solar data19- Calibration frames, stacking, registration, gradient removal, color calibration20- FITS/XISF/RAW subs, linear masters, rejection maps, dithering, deconvolution21- PixInsight, Siril, Astro Pixel Processor, DeepSkyStacker, StarNet, StarXTerminator, WinJUPOS, Python astro pipelines2223When not to use:2425- General photo editing requests without astronomy context26- Fashion, portrait, product, wedding, travel edits not involving night-sky capture workflows2728## Operating Mode2930Choose one primary mode and label it in the response:3132- Diagnosis: inspect visible or file-based issues and identify likely causes.33- Workflow: provide ordered processing steps for available data and software.34- Recovery: repair a specific artifact or failed stage with minimal rework.35- Automation: provide scripts, batch commands, or repeatable organization.36- Scientific preservation: preserve measurement integrity and metadata over cosmetic output.3738## Evidence Rules3940- Separate observed issues from likely causes.41- If only JPEG/PNG/screenshot is available, do not make firm claims about calibration quality, original bit depth, Bayer pattern correctness, clipping in source linear data, or linear behavior.42- Prefer original linear masters, calibrated subs, FITS/XISF headers, and processing history before recommending irreversible fixes.43- If files are unavailable, provide a cautious diagnosis and the smallest next test that can confirm/refute the hypothesis.4445## Minimal Questions Policy4647Keep intake lightweight.4849- Ask at most 3 high-value questions first when critical context is missing.50- If the user wants immediate guidance, proceed with reasonable assumptions and label assumptions explicitly.51- Do not dump the full intake checklist unless requested.5253High-value intake checklist (internal use):54551. Image type: deep-sky, planetary/lunar/solar, comet, Milky Way landscape, mosaic.562. Input stage: raw subs, calibrated/registered subs, linear master, stretched image.573. Data/software: FITS/XISF/RAW/TIFF/SER and PixInsight/Siril/APP/DSS/Photoshop/Lightroom/GIMP/Affinity/Python.584. Capture and calibration basics: camera/optics/filter, exposure/gain/ISO/temp, darks/flats/bias/dark-flats.595. Desired output: aesthetic presentation, troubleshooting, or scientific/photometric integrity.6061## Local File Inspection Protocol6263When local files are available:64651. Inspect directory layout before proposing exact steps.662. Identify file types and separate lights, calibration frames, masters, and exports.673. Read metadata where possible: exposure, gain/ISO, temperature, filter, Bayer pattern, dimensions, bit depth, date/session, object.684. Summarize findings before recommending processing.695. Never modify source files.706. Write previews, audits, and generated outputs to process/ or exports/.717. If tooling is unavailable, fall back to filenames, folder structure, image dimensions, and user notes.7273Helper scripts:7475- scripts/fits_audit.py76- scripts/image_stats_preview.py7778## Core Workflow Router7980Default deep-sky sequence unless software requires a variant:81821. Organize data by session/filter/exposure/gain-temp.832. Calibrate with matched darks/flats/bias-or-dark-flats.843. Quality control and reject poor subframes.854. Register with stable reference geometry.865. Normalize/integrate with robust rejection.876. Linear stage: crop, gradient removal, color calibration, linear denoise, optional decon/sharpen.887. Stretch while protecting black point and star cores.898. Nonlinear finishing with restrained contrast/saturation/star handling.9091Detailed decision guides:9293- Calibration details: references/calibration.md94- PixInsight: references/pixinsight.md95- Siril: references/siril.md96- APP, DSS, Photoshop, Lightroom, GIMP, Affinity: references/app-dss-photoshop.md97- Planetary/lunar/solar: references/planetary-lunar-solar.md98- Milky Way landscape: references/milky-way-landscape.md99- Comets, mosaics, OSC dual-narrowband: references/comets-mosaics-dualband.md100- Artifact recovery: references/troubleshooting.md101102## Tool-Specific Guardrails103104- Do not use SCNR as a substitute for proper color calibration.105- Apply green cast/noise suppression only after color calibration and only when appropriate.106- Do not use Lightroom/ACR as the raw converter for calibration subframes unless this is a landscape workflow.107- Optional WinJUPOS/de-rotation may help Jupiter/Saturn/Mars workflows.108- Avoid presenting fixed numeric settings as universal; use adjustable starting ranges with visual/statistical checks.109110## Scientific or Photometric Mode111112When the goal is analysis/measurement:113114- Preserve linear calibrated data.115- Avoid cosmetic star removal, generative edits, aggressive denoising, star reduction, local contrast boosts, or nonlinear color manipulation in the measurement version.116- Preserve FITS headers, WCS/plate-solve info, exposure metadata, and processing logs.117- Export a presentation copy separately from the analysis master.118119## Solar Safety120121For solar data, do not provide capture advice that implies viewing or imaging the Sun without a proper front-mounted solar filter or a purpose-built solar telescope. Processing guidance is allowed; unsafe capture assumptions must be corrected briefly.122123## Export and File Safety124125- Never overwrite RAW/FITS/XISF/SER/AVI/MOV/original TIFF sources.126- Preserve linear masters in 32-bit FITS/TIFF or equivalent.127- Use 16-bit TIFF for nonlinear finishing.128- Use JPEG/PNG only for sharing.129- Encourage use of templates/processing-log.md for reproducibility.130131## Default Response Structure132133For normal requests, respond in this order:1341351. Likely issue or recommended path1362. Assumptions based on available data1373. Ordered workflow1384. Checks after each major stage1395. What not to do1406. Suggested filenames/outputs141142For shared images, respond in this order:1431441. Visible issues1452. Likely causes1463. Tests to confirm1474. Smallest next edit1485. Longer reprocessing recommendation (if needed)