Catalog

Skills

Skills are instruction packages (SKILL.md) that teach an assistant a job. Found in public GitHub repositories; exact copies are merged.

14,845 listed · 0 meet our indexing rules · last sync 2026-11-29

PyAutoLabsautolens-assistant-init-slam

Initialize SLaM (Source, Light and Mass) modeling scripts for a new PyAutoLens project. Use this skill when starting a new strong-lens modeling project, when the scripts/ folder is empty and needs pipeline scripts, when a user says "set up scripts", "add a pipeline", "copy the slam script", or "initialize this project". Shows categorized options from autolens_workspace, copies chosen script(s) to scripts/, creates slam_claude.md with full SLaM context, and adds reference banners to each copied script.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-multi-dataset

Fit a strong lens to multiple datasets jointly — multi-band imaging (same target, different filters), joint imaging + interferometer, time-series, or any combination where one lens is observed by multiple instruments. Builds a PyAutoFit factor graph (`af.AnalysisFactor` per dataset, combined with `af.FactorGraphModel`). Supports wavelength-dependent source morphologies, dataset-level astrometric offsets, and shared/independent parameters between datasets. Pairs with `al_hierarchical_inference` (when datasets are independent lenses, not independent observations of the same lens). Writes a runnable Python script in scripts/.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-hierarchical-inference

Fit a population-level (hierarchical) model across many strong lenses — shared cosmology, shared mass-model slope distribution, or any parameter linked across systems. Implemented via PyAutoFit's graphical-model framework, including expectation propagation for samples that don't fit in one joint fit. Use when the question is "what does the *population* tell me?" rather than "what does this *one* lens look like?" Pairs with `al_aggregator_bulk_analysis` (operating on the per-lens fits this skill consumes). Writes a runnable Python script in scripts/. **Status: stub.**

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-debug-fit-failure

Diagnose a non-linear search that didn't converge, returned unphysical parameters, or produced an inversion that fitted noise rather than signal. Walks the canonical post-mortem checks — log inspection, residual maps, prior coverage, multimodality, inversion regularisation, position penalties — and proposes targeted fixes (tighten priors, switch search, add positions, increase live points). Use after `al_run_search` returns a result that looks wrong.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-refresh-api-docs

Run a full workspace-maintenance pass to bring skill recipes, wiki API pages, and other PyAuto* references back into line with the current installed stack and source repos. This is the umbrella entry point when the user wants "make the docs current again" rather than only "check whether this symbol still exists" or only "refresh this wiki page". It orchestrates `al_audit_skill_apis` (symbol-resolution drift), `al_update_wiki` (pinned-source prose drift), and any follow-up edits to `skills/*.md`. Use after a PyAuto* upgrade, after pulling fresh source repos, or on a deliberate maintenance cadence. Do not use for unrelated feature work.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-simulate-dataset

Synthesise a strong-lens imaging or interferometer dataset from a ground-truth Tracer (lens + source galaxies, redshifts, light + mass profiles). Writes data / noise / PSF FITS files plus a tracer.json to a dataset folder. Use when the user wants a controlled test dataset, a training sample for an ML pipeline, or a sanity check that a model can recover known inputs. For modelling an *existing* dataset see `al_prepare_imaging_data` instead.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-contribute-upstream

Prepare a scoped update to autolens_assistant and propose it back upstream. Use this skill when the user says "contribute this back", "open a PR upstream", "suggest this to the assistant", or "send this to PyAutoLabs/autolens_assistant". It validates the git remote layout, confirms PR scope, creates or reuses a feature branch, stages only the intended files, commits with the repo's commit conventions, pushes either to the upstream repo (for collaborators) or the user's fork, and opens a draft PR against PyAutoLabs/autolens_assistant.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-cluster-csv-api

Compose a cluster-scale strong lens model from CSV spreadsheets (`mass.csv`, `light.csv`, `point.csv`) instead of inline Python. Used when a model has tens of main lenses, hundreds of member galaxies, or dozens of background sources — at that scale Python composition becomes unmanageable and a spreadsheet is diff-friendly, Excel/LibreOffice-editable, and round-trippable to the standard `af.Model` objects. Writes a runnable Python script in scripts/ that reads the CSVs and instantiates the model. **Status: stub.**

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-time-delay-cosmography

Measure H0 (or a Hubble-like time-delay distance) from a time-delay strong lens — quasar with measured delays between multiple images, or a lensed supernova. Builds on `al_point_source` (positions + delays) and `al_hierarchical_inference` (when joining several lenses into one H0 posterior). The headline observable is the **time-delay distance** D_dt, which scales inversely with H0 at fixed mass model. Writes a runnable Python script in scripts/. **Status: stub.**

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-greeting-cosmos-web-ring

The public greeting — walk a newcomer (journalist, curious reader, student or researcher) through the bundled JWST COSMOS-Web Ring. Use when the opening prompt is the public starting prompt ("I want to use the PyAutoLens Assistant ... First clone that repository, cd into it and follow its AGENTS.md ... COSMOS-Web Ring ... Pitch it at my level: ask me what my background is first ...") or any request to be shown / walked through the bundled COSMOS-Web Ring. Shows the F444W image first, asks one background question, then routes by audience.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-build-imaging-model

Compose a strong-lens model for imaging data — galaxies with light + mass profiles, prior customisation, and an `al.AnalysisImaging` ready to hand to a non-linear search. Writes a runnable Python script in scripts/. Pairs with `al_prepare_imaging_data` (which loads + masks the dataset) and `al_run_search` (which executes the fit). For visibility-plane data see `al_build_interferometer_model`.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-datacube-modeling

Fit a strong-lens model to a 3D spectral datacube — typically ALMA / JVLA / NOEMA, where each frequency channel is a 2D visibility plane and the source's spatial morphology can change across channels (rotating disk, outflow, line-emission region). Reuses `al_build_interferometer_model` per channel but ties parameters across the cube. Pairs with `al_adaptive_pixelization` (Delaunay mesh is the standard datacube pixelisation). Writes a runnable Python script in scripts/. **Status: stub.**

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-build-interferometer-model

Compose a strong-lens model for visibility-plane (ALMA / JVLA / interferometer) data. Same galaxy + profile composition as the imaging variant, but wraps the dataset in `al.AnalysisInterferometer`. Writes a runnable Python script in scripts/. Pairs with `al_run_search` (executes the fit) and uses the same light + mass profile catalogue as imaging.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-sensitivity-mapping

Map the substructure-detection sensitivity of a strong lens by injecting synthetic subhaloes into simulated datasets matched to the user's data, fitting each with and without a subhalo, and measuring the Bayesian-evidence gain. Produces a (y, x, mass) map of "what could you have detected?" Calibrates non-detections from `al_subhalo_detect` and constrains the subhalo mass function. Writes a runnable Python script in scripts/. **Status: stub.**

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-euclid-workflow-products

Turn many Euclid pipeline fits into inspectable products with the workflow/ scripts — .csv model catalogues (csv_make.py), .fits image stacks (fits_make.py), and one-line .png summaries (png_make.py) driven by the PyAutoFit aggregator over the output/ folder. Use when a Euclid lens sample has been fitted and browsing output/ lens-by-lens has become tedious; NOT for inspecting a single fit (al_load_results / al_plot_fit_residuals) or for generic aggregator scripting (al_aggregator_bulk_analysis).

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-update-wiki

Refresh wiki/ pages whose pinned source commits have moved, by re-reading the relevant source files from the PyAuto* repos and rewriting stale sections. Also surfaces newly added public APIs (new classes / functions in __init__.py) so the user can decide whether they warrant new wiki pages. Use whenever the user reports an API change, after pulling fresh source repos, or on a manual refresh cadence. Do NOT run opportunistically as part of unrelated work — the diff should be reviewable.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-refresh-colab-contexts

Maintainer upkeep for the link between this assistant's skills and the Colab notebooks of autolens_workspace and HowToLens. Runs the deterministic coverage check (`python -m autoassistant.colab_contexts check` plus PyAutoHands' `autohands gemini_context report` for each workspace), then AI-scans what it flags — notebooks reached only by `default`, mapping entries that match nothing, missing or renamed skills, entries near the size cap — against the workspace script headers and the skill descriptions, proposes minimal `colab/contexts.yaml` edits, re-checks, and opens a PR. Use after a skill is added, renamed or substantially resized, after a workspace gains or moves folders, and before a release. Not for user lensing questions, and never for editing the skills or the workspace notebooks themselves.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-plot-fit-residuals

Plot fit-vs-data diagnostics — model image, residuals, normalised residuals, chi-squared map, per-galaxy model images, source-plane reconstruction. Use after `al_load_results` has handed you a tracer + dataset, or after `al_run_search` completes. The standard "is this a good fit?" inspection.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-setup-environment

Detect, install, and configure a Python environment for the PyAuto* lensing stack. First checks the active interpreter and distinguishes an absent, broken, or ready stack; then offers pip in a venv (the normal user path) or editable clones (contributors). Sets sandbox cache env vars and verifies imports. Use when PyAutoLens is unavailable, imports fail, or a new machine needs setup.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-potential-correction

Reconstruct pixelized corrections to the lensing potential (gravitational imaging) jointly with a pixelized source, mapping mass structure the smooth lens model omits without assuming its form. Use when the user wants to find substructure but does NOT want to pre-specify a perturber's profile — the corrections are free-form, so they also absorb large-scale departures from ellipsoidal symmetry that no parametric profile captures. Requires a smooth-model fit already good enough that chi-squared/dof is ~1-3, and a source with real brightness gradients (the response scales with them). Do NOT use for a targeted "is there an NFW subhalo at (y, x)?" question with a Bayesian evidence ratio — that is `al_subhalo_detect`. Writes a runnable Python script in scripts/.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-chain-searches

Run a sequence of non-linear searches where each later search inherits priors from the previous result. Standard pattern for moving from simple parametric models (fast, easy) to complex pixelised or chained models (slow, sensitive to initial position). Pairs with `al_run_slam_pipeline` (which is itself the canonical multi-stage chain) and `al_build_imaging_model`.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-load-results

Load a completed PyAutoLens fit's results from its output folder via the .json, .csv and .fits files. Use when a user wants to inspect, plot, or further analyse one (or a handful of) completed fits by pointing at the output directory. For bulk analysis of greater than100 fits use PyAutoFit's aggregator/database — see `wiki/core/concepts/samples_and_posteriors.md` and bootstrap a dedicated skill if needed.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-prepare-imaging-data

Load CCD imaging of a strong lens (HST / JWST / Euclid / ground-based) from FITS files into an `al.Imaging` dataset, then apply a mask, over-sampling, and noise scaling so it's ready for model fitting. Produces a runnable Python script in scripts/ that the user can re-run on their own data. Use before invoking `al_build_imaging_model`. For interferometer data, `al_build_interferometer_model` covers loading + masking inline.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-ingest-paper

Add a verified strong-lensing paper to the literature record — project-local (`wiki/project/bibliography.md`) by default when working inside a science project, or the shared literature wiki + canonical BibTeX layer when in the assistant clone or on explicit promotion. Accepts a local PDF or public paper URL, resolves or adds canonical metadata, writes a compact claim-oriented source entry, updates relevant concept/entity links, validates key consistency, and never records local PDF paths. Use when a user wants a paper added so future assistants can cite its supported claims reliably.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-custom-analysis

Subclass `al.AnalysisImaging` / `al.AnalysisInterferometer` / `al.AnalysisPoint` to add a custom likelihood term — kinematic constraints, external priors, joint probes (stellar dynamics + lensing), or any data that isn't natively a pixel grid or visibility set. The subclass overrides `log_likelihood_function(...)` (or a helper called from it). Combining whole datasets is a factor graph, not a subclass (see `al_multi_dataset`). Lighter than `al_custom_profile` (which extends the *model*); this extends the *fit*. Writes a runnable Python script in scripts/.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-aggregator-bulk-analysis

Operate on many completed lens fits at once via PyAutoFit's `Aggregator` — load samples, models, fits, derived quantities across an entire output directory; filter, sort, query; export to CSV/FITS/plots. Use when you've fitted Ngreater than1 lenses (SLACS sample, cluster members, sensitivity-map cells) and need to extract a comparable result table or run derived calculations across the lot. Pairs with `al_hierarchical_inference` (which builds population models on top). Writes a runnable Python script in scripts/. **Status: stub.**

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-weak-lensing

Fit a shear catalogue with PyAutoLens's weak-lensing module — `al.WeakDataset` + `al.FitWeak`. Use when the observable is a per-source shear estimate (γ1, γ2) at a known sky position, not an extended-arc image. Lighter than strong lensing: no PSF, no inversion, no positions likelihood — just a residual model in shear space. Complements strong-lensing fits when the same cluster has both regimes. Writes a runnable Python script in scripts/. **Status: stub.**

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-group-lensing

Model a group-scale strong lens — one or two main lens galaxies plus a population of companion ("extra") galaxies whose light + mass must also be modelled. Two strategies: (a) free per-companion profiles for small N, (b) "scaling-relation" galaxies tied to a luminosity-to-mass relation for larger N. Pairs with `al_cluster_csv_api` (when N is large enough that inline Python composition becomes unwieldy). Writes a runnable Python script in scripts/. **Status: stub.**

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-hpc-campaign

Run a lens sample on an HPC cluster as a campaign — write hpc/campaign.yaml and a manifest, plan resources from evidence, pilot a small slice, submit, check in on the digest, triage failures into approved resubmits, and report compute, failures and an energy/carbon estimate. Drives python -m autofit.campaign through hpc/sync (status, plan, resubmit, report, act). Use when many lenses run through several pipeline stages on a cluster; NOT for one fit (al_run_search), generic HPC concepts (wiki/core/operations/hpc.md) or the Euclid pipeline's own arrays (euclid_hpc_runs).

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

PyAutoLabsautolens-assistant-al-run-slam-pipeline

Run a Source-Light-Mass (SLaM) pipeline — the canonical automated multi-stage lens-modelling workflow. Stages a parametric source fit, a pixelised source fit, a lens-light fit, and a total-mass fit, chaining priors between them. The right starting point for any production-quality lens model, especially with pixelised sources. Prereq: understand `al_chain_searches` and pixelisations.

Listed
Found in PyAutoLabs/autolens_assistant on GitHub. Last sync 2026-11-21

Also as Markdown and JSON.