Skip to content
Back to skills

Pipeline

ASecurity

HyperTools stage pipelines, model-spec grammar, and return-model reuse.

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
datarailsbackend

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill pipeline --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pipeline?

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

Security grade badge for Pipeline
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-pipeline/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-pipeline)

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: pipeline
description: "HyperTools stage pipelines, model-spec grammar, and return-model reuse."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# HyperTools Pipeline

Use this sub-skill when the task is about the HyperTools analysis pipeline:
`manip`, `normalize`, `reduce`, `align`, `cluster`, `apply_model`, `Pipeline`,
or reusing a fitted result on held-out data.

## Route here when the user wants

- A staged analysis chain with canonical ordering.
- A reusable fitted model returned by `return_model=True`.
- A `Pipeline` object or a `pipeline=` reuse path.
- Model-spec grammar help: strings, dicts, classes, instances, lists.
- `ndims` / `random_state` behavior for reduction or clustering.
- Cluster labels, mixture proportions, or label recovery from a fitted chain.

## Route elsewhere when the user wants

- Plot styling, rendering, backends, hues, trails, animation, or surfaces: use `../visualization/`.
- Text vectorizers, semantic models, or corpus choices: use `../text/`.
- Forecasting or dedicated imputation models: use `../forecasting/`.
  - Only `impute=` at format time is in scope here.

## Read first

- `references/pipeline-reference.md` for signatures, grammars, registries,
  canonical order, and reuse rules.
- `references/workflows.md` for fit-once / reuse recipes and common chains.
- `references/troubleshooting.md` for unknown-model, `ndims`, shape, and reuse
  failures.
- `scripts/smoke_pipeline.py` for a tiny CPU end-to-end smoke check.

## Quick decision guide

1. Need to apply one model family to stacked data?
   - Use `apply_model`.
2. Need a stage-wise analysis chain in HyperTools order?
   - Use `analyze`, `reduce`, `align`, `normalize`, `manip`, or `cluster`.
3. Need to reuse the exact fit on new data?
   - Pass the fitted wrapper back as the model spec, or pass a fitted
     `Pipeline` to `analyze(..., pipeline=...)`.
4. Need to compose a named chain directly?
   - Use `Pipeline(steps)` or the dispatcher kwargs that return one.

## Canonical order

HyperTools stages always follow the same order when dispatcher kwargs are used:

`manip -> normalize -> reduce -> align -> cluster`

A few important corollaries:

- Missing-data fill happens before these stages, during format time.
- `reduce` happens before `align` in the canonical chain.
- `cluster` labels the final geometry, so `analyze(..., cluster=...)`
  returns transformed data, not labels.
- `apply_model` is separate from the stage pipeline and does not include
  `manip`, `align`, or `impute`.

## Return-model rule of thumb

- Single stage: `return_model=True` yields that stage's fitted wrapper.
- Multiple stages or cross-module kwargs: `return_model=True` yields a fitted
  `Pipeline`.
- Reuse the fitted wrapper or `Pipeline` on new data instead of refitting.

## What to remember

- Model specs can be strings, dicts, classes, instances, or lists.
- `Pipeline` stores already-resolved steps and replays them in order.
- `Pipeline.transform` reuses fitted steps; some non-transformable reducers or
  hard clusterers still have limits on held-out data.
- `analyze(..., pipeline=...)` is the replay path for a fitted chain.
- When labels are needed, recover them from the fitted cluster step.

If the task starts drifting into visualization or text/forecasting details, hand
it off to the sibling sub-skill and keep this one focused on stage dispatch,
model grammar, and reuse.

Files in this skill

  • SKILL.md3.4 KB
  • references/pipeline-reference.md7.8 KB
  • references/troubleshooting.md4.8 KB
  • references/workflows.md4.1 KB
  • scripts/smoke_pipeline.py2.6 KB

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.

Comments

Loading comments…

Newsletter

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