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
- 参考文档references/configuration-and-datalayer.md9.7 KB
- 参考文档references/query-and-data-model.md5.3 KB
- 参考文档references/troubleshooting.md4.5 KB
- 脚本scripts/superduper_datalayer_smoke.py6.2 KB
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 asmongomock://...,sqlite://...,duckdb://...,mongodb://...,redis://..., orinmemory://.... - 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 usingDatalayer.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
- Choose the backend URI and plugin family first. Prefer
mongomock://...for a no-service Mongo-like smoke when the MongoDB plugin is installed, orinmemory://...for builtin ephemeral metadata/data experiments. - Set config before importing
superduperwhen config files, env overrides, or artifact-store paths matter. The process-globalCFGis created at import time. - Build the
Datalayerwithsuperduper(uri, **kwargs)orsuperduper(**kwargs); avoid the console script unless a refreshed version provessuperduper.__main__exists. - Define tables with
Table(identifier, fields={...}); useSchema.build/Schema.parseand supported datatype strings for encoded fields. - Use
db[table]query operations for normal data work. Keep destructive calls (drop, backenddrop_table) restricted to scratch databases. - 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
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).