ivanshamaev/de-agent-skills/feature-store

Claude Code and agent skill by ivanshamaev/de-agent-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Feast feature store — feature repo layout, Entity/FeatureView/FeatureService definitions, offline store (BigQuery/Redshift/Snowflake/file), online store (Redis/DynamoDB/SQLite), point-in-time correct joins, feast materialize, feast apply, Python SDK get_online_features/get_historical_features, push sources, streaming feature views, Airflow integration

Install

npx vskill@latest install ivanshamaev/de-agent-skills/feature-store

SKILL.md

The same SKILL.md was published earlier as ivanshamaev/de-agent-skills/feature-store.

Feast Feature Store

When to Use

Load this skill when the user needs to:

  • Set up a Feast feature repository with offline and online stores
  • Define Entity, FeatureView, FeatureService, and DataSource objects
  • Retrieve historical features with point-in-time correctness for model training
  • Serve online features at low latency during model inference
  • Materialize features from an offline store into an online store
  • Wire Feast into Airflow DAGs for automated materialization and training pipelines
  • Push real-time data into the online store via PushSource or streaming feature views
  • Avoid training-serving skew by using the same feature definitions for training and serving
  • Share feature definitions across multiple teams and ML models in an organization

Feature store vs ad-hoc feature engineering: Build a feature store when features are reused across multiple models, when training-serving skew is causing silent model degradation, or when a team needs point-in-time correct joins on event-driven data. Ad-hoc Pandas/Spark pipelines suffice for one-off exploration; Feast is for production systems where feature consistency and discoverability matter.


Core Concepts

OFFLINE PATH (training data retrieval)
┌───────────────────────────────────────────────────────────────┐
│ Raw Events / DWH Tables │
│ (BigQuery / Redshift / Parquet files / PostgreSQL) │
│ │ │
│ ▼ │
│ OfflineStore ←── feast materialize ──→ OnlineStore │
│ (historical rows + event_timestamp) (Redis / │
│ │ DynamoDB / │
│ ▼ SQLite) │
│ get_historical_features(entity_df, features) │
│ │ │
│ ▼ │
│ Training DataFrame (point-in-time correct join) │
└───────────────────────────────────────────────────────────────┘
ONLINE PATH (real-time serving)
┌───────────────────────────────────────────────────────────────┐
│ entity_rows = [{"user_id": 42}] │
│ │ │
│ ▼ │
│ store.get_online_features(features, entity_rows) │
│ │ │
│ ▼ │
│ OnlineStore lookup (< 5ms p99) │
│ {"user_id": 42, "user_age": 34, "user_tx_count_30d": 18} │
└───────────────────────────────────────────────────────────────┘
Registry (file / SQL / GCS / S3):
Stores Entity, FeatureView, FeatureService metadata — the schema of the
feature store. feast apply writes to the registry; all SDK calls read from it.
ConceptRole
EntityPrimary key of a feature record (e.g., user_id, item_id)
DataSourceWhere raw feature data lives (BigQuery table, Parquet file, Kafka topic)
FeatureViewNamed group of features sharing the same entity and source, with a TTL
FeatureServiceLogical grouping of FeatureViews (and column subsets) for a model endpoint
OfflineStoreColumnar store for historical retrieval and materialization reads
OnlineStoreLow-latency KV store for real-time serving
RegistryMetadata store — persists all definitions registered via feast apply

Feature Repository Layout

feature_repo/
├── feature_store.yaml # store backend config + registry location
├── data_sources.py # FileSource / BigQuerySource / PushSource definitions
├── entities.py # Entity definitions
├── feature_views.py # FeatureView / OnDemandFeatureView / StreamFeatureView
├── feature_services.py # FeatureService groupings per model
└── tests/
└── test_feature_views.py # unit tests with local FileSource + SQLite

All Python files in the repo root are scanned by feast apply. Use __init__.py only if you need to share helpers — do not put feature objects in subdirectories unless you configure feature_repo_path.


feature_store.yaml Configuration

Local Development (file offline + SQLite online)
yaml
# feature_repo/feature_store.yaml
project: my_feature_store
provider: local
registry:
registry_type: file
path: data/registry.db # relative to feature_store.yaml
offline_store:
type: file # reads Parquet files via Arrow
online_store:
type: sqlite
path: data/online_store.db
entity_key_serialization_version: 2
Production: PostgreSQL Offline + Redis Online
yaml
project: my_feature_store
provider: local
registry:
registry_type: sql
path: postgresql+psycopg2://feast:${FEAST_PG_PASSWORD}@pg-host:5432/feast_registry
offline_store:
type: postgres
host: pg-host
port: 5432
database: feast_offline
user: feast
password: ${FEAST_PG_PASSWORD}
db_schema: feast
online_store:
type: redis
connection_string: "redis://redis-host:6379"
# key_ttl_seconds: 86400 # optional global TTL override
entity_key_serialization_version: 2
AWS: Redshift Offline + DynamoDB Online
yaml
project: my_feature_store
provider: aws
registry:
registry_type: s3
path: s3://my-bucket/feast/registry/registry.pb
offline_store:
type: redshift
cluster_id: my-redshift-cluster
region: us-east-1
database: feast_db
user: feast_user
s3_staging_location: s3://my-bucket/feast/staging/
iam_role: arn:aws:iam::123456789012:role/FeastRedshiftRole
online_store:
type: dynamodb
region: us-east-1
# table_name_template: "{project}.{table}"
entity_key_serialization_version: 2
GCP: BigQuery Offline + Bigtable Online
yaml
project: my_feature_store
provider: gcp
registry:
registry_type: gcs
path: gs://my-bucket/feast/registry/registry.pb
offline_store:
type: bigquery
project: my-gcp-project
dataset: feast_offline
online_store:
type: bigtable
project_id: my-gcp-project
instance: feast-bigtable
# min_channel_count: 8
entity_key_serialization_version: 2

Defining Entities

python
# feature_repo/entities.py
from feast import Entity, ValueType
# Single-key entity
user = Entity(
name="user",
join_keys=["user_id"],
value_type=ValueType.INT64,
description="Platform user identified by integer user_id",
tags={"owner": "ml-platform", "domain": "user"},
)
# String-keyed entity
item = Entity(
name="item",
join_keys=["item_id"],
value_type=ValueType.STRING,
description="Product catalog item",
)
# Composite entity (multi-key join)
user_item_pair = Entity(
name="user_item_pair",
join_keys=["user_id", "item_id"],
description="User-item interaction pair for ranking models",
)

Entity DataFrame requirements for `get_historical_features`:

  • Must contain all join_keys declared on each referenced FeatureView.
  • Must contain an event_timestamp column (datetime, timezone-aware, UTC).
  • Rows represent the "as-of" timestamps: Feast returns the most recent feature row

whose event_timestamp is at or before the entity row's timestamp — no future leakage.

  • Labels belong in entity_df, never inside a FeatureView.

Defining Data Sources

python
# feature_repo/data_sources.py
from feast import FileSource, BigQuerySource, RedshiftSource, PushSource, RequestSource
from feast.infra.offline_stores.contrib.postgres_offline_store.postgres_source import PostgreSQLSource
from feast.types import Float32, Int64, String
# ── FileSource (Parquet, local dev or S3) ──────────────────────────────────
user_stats_source = FileSource(
name="user_stats_source",
path="data/user_stats.parquet", # s3:// paths also supported
timestamp_field="event_timestamp", # when the row was valid
created_timestamp_column="created", # for dedup: keeps most recently created row
description="Daily user engagement stats snapshot",
)
# ── BigQuerySource ─────────────────────────────────────────────────────────
user_bq_source = BigQuerySource(
name="user_bq_source",
table="my-gcp-project.feast_offline.user_features",
timestamp_field="event_timestamp",
created_timestamp_column="created_timestamp",
description="User features from BigQuery warehouse",
)
# ── RedshiftSource ─────────────────────────────────────────────────────────
item_redshift_source = RedshiftSource(
name="item_redshift_source",
query="SELECT * FROM feast_db.item_features WHERE dt >= '2024-01-01'",
timestamp_field="event_timestamp",
created_timestamp_column="created_timestamp",
description="Item features from Redshift",
)
# ── PostgreSQLSource (community offline store) ────────────────────────────
user_pg_source = PostgreSQLSource(
name="user_pg_source",
query="SELECT user_id, event_timestamp, age, signup_days, tx_count_30d FROM features.user_stats",
timestamp_field="event_timestamp",
created_timestamp_column="created_timestamp",
)
# ── PushSource (streaming / real-time pushes from application code) ────────
user_realtime_source = PushSource(
name="user_realtime_source",
batch_source=user_stats_source, # fallback for materialization reads
)
# ── RequestSource (on-demand features computed at request time) ───────────
request_source = RequestSource(
name="request_context",
schema=[
Field(name="order_value", dtype=Float32),
Field(name="device_type", dtype=String),
],
)

Defining Feature Views

Standard FeatureView
python
# feature_repo/feature_views.py
from datetime import timedelta
from feast import FeatureView, Field, on_demand_feature_view
from feast.types import Float32, Float64, Int64, String, Bool
from feast.stream_feature_view import stream_feature_view
import pandas as pd
from entities import user, item, user_item_pair
from data_sources import (
user_stats_source, item_redshift_source,
user_realtime_source, request_source,
)
# ── User features ──────────────────────────────────────────────────────────
user_features_view = FeatureView(
name="user_features",
entities=[user],
ttl=timedelta(days=30), # feature is stale after 30 days in online store
schema=[
Field(name="age", dtype=Int64),
Field(name="signup_days", dtype=Int64),
Field(name="tx_count_7d", dtype=Int64),
Field(name="tx_count_30d", dtype=Int64),
Field(name="avg_tx_amount_30d",dtype=Float64),
Field(name="is_premium", dtype=Bool),
Field(name="country_code", dtype=String),
],
source=user_stats_source,
tags={"owner": "user-team", "version": "v2"},
description="Core user behavioral features refreshed daily",
)
# ── Item features ──────────────────────────────────────────────────────────
item_features_view = FeatureView(
name="item_features",
entities=[item],
ttl=timedelta(days=7),
schema=[
Field(name="category", dtype=String),
Field(name="price_usd", dtype=Float64),
Field(name="view_count_7d", dtype=Int64),
Field(name="purchase_rate_7d", dtype=Float32),
Field(name="avg_rating", dtype=Float32),
Field(name="is_in_stock", dtype=Bool),
],
source=item_redshift_source,
tags={"owner": "catalog-team"},
)

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ivanshamaev/de-agent-skills/feature-store/badge)](https://verified-skill.com/skills/ivanshamaev/de-agent-skills/feature-store)

Something wrong with this skill or its page? Tell us.