feature-definitions
Model Feast entities, fields, data sources, feature views, on-demand/batch/stream transforms, feature services, labels, permissions basics, validation, and versioning without applying a repo.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- feature-definitions
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Model Feast entities, fields, data sources, feature views, on-demand/batch/stream transforms, feature services, labels, permissions basics, validation, and versioning without applying a repo.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-reference.md8.6 KB
- 参考文档references/data-modeling.md7.2 KB
- 参考文档references/transformations.md8.4 KB
- 参考文档references/troubleshooting.md7.2 KB
- 脚本scripts/validate_feature_definitions.py10.9 KB
03 SKILL.md 正文
Feature Definitions
Use this sub-skill when the user asks how to define, migrate, validate, or troubleshoot Feast Python definition objects: Entity, Field, FileSource/request/push sources, FeatureView, OnDemandFeatureView, BatchFeatureView, StreamFeatureView, FeatureService, label-oriented definitions, and permission metadata basics.
Route First
- Definition modeling, constructors, schema/types,
ttl,online/offline, vector metadata, source wiring, ODFV decorators, feature services, and validation errors: stay here. - Feature repo layout,
feast apply,feast plan, registry commands, and CLI lifecycle: use../feature-repos-and-cli/SKILL.md. - Historical/online retrieval, materialization,
push, saved datasets, and point-in-time joins: use../retrieval-and-materialization/SKILL.md. - Vector document retrieval or RAG workflow beyond defining vector
Fields: use../rag-and-vector-search/SKILL.md. - Feature server, remote registry/store, auth enforcement, TLS, and RBAC runtime behavior: use
../servers-and-remote/SKILL.md.
Core References
- API signatures and safe snippets:
references/api-reference.md. - Data-modeling patterns for entities, fields, sources, feature views, services, labels, and permission metadata:
references/data-modeling.md. - Transformations, ODFVs, batch/stream feature views, validation, and versioning:
references/transformations.md. - Diagnostics for imports, schema/type/vector mistakes, source wiring, TTL, and service precompute issues:
references/troubleshooting.md.
Safe Definition Validation
Run the bundled validator against a Python definitions file before apply/materialization work:
python skills/disco/feast/sub-skills/feature-definitions/scripts/validate_feature_definitions.py path/to/features.py
Expected output lists discovered Feast object types/names and reports local validation warnings/errors. The script imports the installed feast package if available, never calls FeatureStore.apply, plan, materialize, push, retrieval APIs, or any server command, and does not require a Feast source checkout.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).