Skip to content
Back to skills

Pixinsight Target Intake

ASecurity

Use before processing a folder of integrated astrophotography masters (XISF or FITS) through the `pixinsight` MCP server, or when a processing skill says target info is missing. Scans the masters, maps each file to a channel, and resolves every input the processing needs from the headers: camera QE curve, filter curves, position, pixel scale. Checks MARS coverage at the target's position. Whatever the headers do not say is asked in ONE consolidated question, never guessed. Writes agentic/work...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
ai-agentsgo

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add mxcoppell/pixinsight-connector-skills --skill pixinsight-target-intake --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pixinsight Target Intake?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pixinsight Target Intake
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mxcoppell-pixinsight-target-intake/badge)](https://www.skillsdirectory.com/skills/mxcoppell-pixinsight-target-intake)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pixinsight-target-intake
description: >-
  Use before processing a folder of integrated astrophotography masters (XISF or FITS) through
  the `pixinsight` MCP server, or when a processing skill says target info is missing. Scans the
  masters, maps each file to a channel, and resolves every input the processing needs from the
  headers: camera QE curve, filter curves, position, pixel scale. Checks MARS coverage at the
  target's position. Whatever the headers do not say is asked in ONE consolidated question, never
  guessed. Writes agentic/work/target-info.md, which processing skills read. Also use for "set up
  this target", "what do you need to know about my data".
license: MIT
metadata:
  author: mxcoppell
---

# Target intake

Every processing flow needs the same facts about a dataset before it touches a pixel. This skill collects them once, records where each came from, and writes them to `<workspace>/agentic/work/target-info.md`. It processes nothing and never writes into the masters' folder.

**Rule:** a value comes from the data (a header, a `find_filters` match, a computation from headers) or from the user. Never from another target's records, never from a default the user did not accept. `null` in a header means "ask", not "use a default".

## 1. Workspace and scan

1. If `agentic/preflight.json` is missing or stale (see `pixinsight-preflight`), run preflight first.
2. If the user named the target folder, `set_workspace` to it; otherwise `workspace_info` shows the launch folder, which must be a real target folder (not a filesystem root or the home folder).
3. `scan_workspace`. It scans recursively (skipping `agentic/` and `output/`) and reports per file `filter`, geometry, exposure, `hasWCS`, and `keywords` (`INSTRUME`, `TELESCOP`, `FOCALLEN`, `XPIXSZ`, `YPIXSZ`, `XBINNING`, each verbatim or `null`).
4. If `agentic/work/target-info.md` already exists (a resumed session), read it: keep what it records, re-check each row against this scan, and ask only about rows that are missing or that a header now contradicts.

## 2. Resolve each row

| Key | How | When the data does not say |
|---|---|---|
| `target_name` | — | offer the workspace folder name |
| `master.<channel>` | Map each file to a channel from `FILTER`, then the file name. Record the exact `path` `scan_workspace` returned | Ask when a file is ambiguous or a channel the flow needs is missing |
| `qe_curve` | `INSTRUME` → `find_filters` (channel `Q`). Search the sensor number and shorter tokens: curves can carry a combined name such as `Sony IMX411/455/461/533/571` | Ask. A wrong curve is a categorical error. The user may choose PixInsight's `Ideal QE curve`: record it as their choice |
| `filter.<channel>` | `FILTER` when it names a brand or set that `find_filters` resolves (a bare `Red` does not) | Ask. A flat passband only if the user chooses it (record `flat <center> nm / <width> nm`); a generic luminance filter is `flat 550 / 300` |
| `position_ra_deg`, `position_dec_deg` | RA/DEC keywords if the scan shows them | Offer the catalogue position of the named target, stated for the user to confirm |
| `pixel_scale_arcsec` | 206.265 × `XPIXSZ` × `XBINNING` / `FOCALLEN` (µm, mm) | Ask for focal length and pixel size, or the scale, and whether the stacker resampled (a half-resolution integration doubles it) |
| `spcc_white_reference` | — | PixInsight's SPCC default (record `default`) |
| `mars_coverage` | Once the position is known: `inspect_environment` with `sections: ["mars"]`, `ra_deg`, `dec_deg`. `covered: true` → `covered`, with each file's `referenceImages` | `covered: false` → record `not covered` and tell the user MGC cannot run for this target. MGC stays the first choice; offer the fallback in `gradient_fallback` once (section 3) |
| `gradient_fallback` | Only when `mars_coverage` is `not covered`: AutomaticBackgroundExtractor (`run_abe`) on each master in MGC's place, with the flow's before/after gate, named as ABE in the report. ABE models the sky from the image itself, where MGC uses a reference, so in a field the target fills it can remove real signal | The user's answer: `abe` (accepted) or `none` (declined: the flow does not start). Never assumed |

## 3. Ask once

If any row is still open, stop and ask the user in **one** consolidated message:

- what came from the headers, so they can correct it,
- each open row, with the default to offer if the table above has one,
- when `mars_coverage` is `not covered`, the `gradient_fallback` offer, once.

Do not ask which denoiser to use: the flows denoise with NoiseXTerminator, and no alternative is offered.

Wait for the answer. In a run with nobody to answer, stop and report what is missing instead of continuing.

## 4. Write `agentic/work/target-info.md`

With your own file tool (the connector has no text writer):

```markdown
# Target info

schema: pixinsight-target-info/1

| Key | Value | Source |
|---|---|---|
| target_name | <name> | user <date> |
| master.L | <path from scan_workspace> | header FILTER=<value> of <file> |
| filter.L | flat 550 / 300 | default accepted by user <date> |
| qe_curve | <curve name from find_filters> | header INSTRUME=<value> via find_filters |
| position_ra_deg | <degrees> | catalogue position confirmed by user <date> |
| pixel_scale_arcsec | <arcsec/px> | computed from FOCALLEN, XPIXSZ, XBINNING |
| spcc_white_reference | default | default |
| mars_coverage | covered (<file>: <n> reference images) | inspect_environment <date> |
| gradient_fallback | abe | user <date> |
```

One row per key, one `master.*` and `filter.*` row per channel. `gradient_fallback` appears only when `mars_coverage` is `not covered`. Source is one of: `header <KEY> of <file>`, `computed from ...`, `find_filters`, `user <date>`, `default accepted by user <date>`, `skipped by user <date>`, `inspect_environment <date>`.

A processing flow may append its own rows (look preferences, a reference image) under a `## <flow name>` heading in the same file. Those rows belong to that flow; this skill leaves them alone when it updates the file.

Update the file whenever the user changes an answer.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.