AGENT SKILL

datalayer-and-config

Build and configure Superduper Datalayer connections, schemas, tables, documents, and query operations safely.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
datalayer-and-config
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Build and configure Superduper Datalayer connections, schemas, tables, documents, and query operations safely.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

datalayer-and-config

Use this sub-skill when a task needs to create or diagnose a Superduper Datalayer, choose connection/configuration settings, define Table/Schema/Document data structures, or use the base query API safely.

Read when

  • Building with superduper(item=None, **kwargs) or a URI such as mongomock://..., sqlite://..., duckdb://..., mongodb://..., redis://..., or inmemory://....
  • Deciding which fields belong in Config, config files, SUPERDUPER_* environment variables, metadata/artifact/vector/cluster settings, or backend URIs.
  • Creating tables and schemas, inserting documents, filtering/selecting/getting rows, running backend-native execute, or using Datalayer.show/load/apply/drop/select_nearest.
  • Diagnosing local/mongomock smoke failures, missing backend plugins, invalid connection strings, config-file/env mistakes, schema/datatype mismatches, or the declared CLI entry point failing.

Do not use for

  • Model, listener, trainer, metric, application, or deployment construction; use components-and-workflows.
  • Vector-index recipes, embedding listener wiring, or retrieval flows; use vector-search-and-retrieval.
  • Optional plugin installation matrices or external-service setup; use plugins-and-integrations.

Operating sequence

  1. Choose the backend URI and plugin family first. Prefer mongomock://... for a no-service Mongo-like smoke when the MongoDB plugin is installed, or inmemory://... for builtin ephemeral metadata/data experiments.
  2. Set config before importing superduper when config files, env overrides, or artifact-store paths matter. The process-global CFG is created at import time.
  3. Build the Datalayer with superduper(uri, **kwargs) or superduper(**kwargs); avoid the console script unless a refreshed version proves superduper.__main__ exists.
  4. Define tables with Table(identifier, fields={...}); use Schema.build/Schema.parse and supported datatype strings for encoded fields.
  5. Use db[table] query operations for normal data work. Keep destructive calls (drop, backend drop_table) restricted to scratch databases.
  6. If the task only needs a health check, run the bundled smoke helper before writing task logic.

References and bundled helper

  • Configuration and Datalayer: connection builder behavior, config precedence, backend URI mapping, Datalayer lifecycle, local smoke patterns, and CLI caveat.
  • Query and Data Model: Document, Schema, Table, datatypes, query operations, safe insert/select/update/delete patterns, and vector-query routing notes.
  • Troubleshooting: common import, backend, config, secrets, CLI, drop, query, and schema/datatype failures with targeted fixes.
  • superduper_datalayer_smoke.py: deterministic import/config/Datalayer smoke helper with --help, --check-imports, and optional --build-db.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351