Skip to content
Back to skills

Primitives And Feature Definitions

ASecurity

"Define custom Featuretools primitives and work with feature

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
researchapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill primitives-and-feature-definitions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Primitives And Feature Definitions?

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

Security grade badge for Primitives And Feature Definitions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-primitives-and-feature-definitions/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-primitives-and-feature-definitions)

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: primitives-and-feature-definitions
description: "Define custom Featuretools primitives and work with feature
  objects, descriptions, graphs, and saved feature definitions."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# Primitives And Feature Definitions

Use this sub-skill when the task is about authoring custom primitives, inspecting feature lineage, generating descriptions, rendering graphs, or saving and reloading feature definitions.

## Route Here For

- Defining a `TransformPrimitive` or `AggregationPrimitive`.
- Understanding `Feature`, `IdentityFeature`, `DirectFeature`, `TransformFeature`, `AggregationFeature`, `GroupByTransformFeature`, or `FeatureOutputSlice`.
- Explaining a feature with `describe_feature`.
- Rendering a lineage graph with `graph_feature`.
- Persisting or reloading a feature definition list with `save_features` / `load_features`.
- Handling plugin or entry-point loading behavior for custom extensions.

## Start With These References

- `../../references/api-reference.md`: the feature, primitive, description, graph, and serialization signatures.
- `references/workflows.md`: the custom-primitive and feature-definition workflow.
- `references/custom-primitives.md`: the primitive class contract and multi-output naming rules.
- `references/feature-objects.md`: the feature object model and dependency/slice behavior.
- `references/troubleshooting.md`: graphviz, serialization, naming, and plugin recovery notes.
- `scripts/primitives_smoke.py`: a tiny smoke script for custom primitives and feature serialization.

## Boundaries

- Stay inside primitive authoring, feature objects, descriptions, graphs, and saved feature lists.
- Route DFS and feature-matrix creation to `../deep-feature-synthesis/`.
- Route primitive discovery, primitive recommendations, and matrix pruning to `../feature-inspection-and-selection/`.
- Route EntitySet modeling and demo data to `../entitysets-and-data/`.

## Minimal Workflow

1. Define the primitive class and keep any constructor arguments on `self`.
2. Build a `Feature` or `TransformFeature`/`AggregationFeature` around it.
3. Use `describe_feature` to inspect the human-readable description.
4. Use `graph_feature` when you need a lineage graph and Graphviz is available.
5. Use `save_features` / `load_features` when the feature definitions need to be reused later.

## Common Decision Points

- Add `number_output_features` and `generate_names` when a custom primitive returns multiple columns.
- Use `FeatureOutputSlice` through the `feature[i]` syntax when you need one output from a multi-output feature.
- Keep the feature list and the serialized file aligned so `load_features` reloads the same objects you saved.
- Treat `featuretools` entry-point plugins as optional extension behavior, not as part of the base install.

## Quality Bar

Future agents should be able to define and reuse feature definitions, explain them, and recover them from disk without reopening the original repository.

Files in this skill

  • SKILL.md3 KB
  • references/custom-primitives.md2.4 KB
  • references/feature-objects.md2.5 KB
  • references/troubleshooting.md2.1 KB
  • references/workflows.md2.3 KB
  • scripts/primitives_smoke.py5.3 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.