数据库安装
- 作者仓库星标 275
- 作者更新于 实时读取
- 作者仓库 skilld
- 领域
- 写作
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @skilld-dev · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- macOS · Linux · Windows
- 底层运行要求
- Python
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: sqlite-vec-skilld
description: ALWAYS use when writing code importing \"sqlite-vec\". Consult for debugging, best practices, or…
category: 写作
runtime: Python
---
# sqlite-vec-skilld 输出预览
## PART A: 任务判断
- 适用问题:文章、文案、发言稿、润色或结构化表达。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“Search / API Changes / Best Practices”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于文章、文案、发言稿、润色或结构化表达,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“Search / API Changes / Best Practices”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文出现了 `/skilld` 这类斜杠命令;如果你的 Agent 支持命令触发,优先用命令开场,再补充目标和边界。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件。
先用一个小任务确认它会围绕“Search / API Changes / Best Practices”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: sqlite-vec-skilld
description: ALWAYS use when writing code importing \"sqlite-vec\". Consult for debugging, best practices, or…
category: 写作
source: skilld-dev/skilld
---
# sqlite-vec-skilld
## 什么时候使用
- 把写作方向的常用动作沉淀成 Agent 可调用的技能 适合处理文章、文案、润色、翻译、总结和结构化表达,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查、可继续迭代的步骤;通常…
- 面向文章、文案、发言稿、润色或结构化表达,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「Search / API Changes / Best Practices」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "sqlite-vec-skilld" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> Search / API Changes / Best Practices
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> Python | 读取文件、写入/修改文件 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} asg017/sqlite-vec sqlite-vec
Version: 0.1.7 Tags: latest: 0.1.7, alpha: 0.1.7-alpha.13
References: package.json — exports, entry points • README — setup, basic usage • Docs — API reference, guides • GitHub Issues — bugs, workarounds, edge cases • Releases — changelog, breaking changes, new APIs
Search
Use skilld search instead of grepping .skilld/ directories — hybrid semantic + keyword search across all indexed docs, issues, and releases. If skilld is unavailable, use npx -y skilld search.
skilld search "query" -p sqlite-vec
skilld search "issues:error handling" -p sqlite-vec
skilld search "releases:deprecated" -p sqlite-vec
Filters: docs:, issues:, releases: prefix narrows by source type.
API Changes
This section documents version-specific API changes — prioritize recent major/minor releases.
BREAKING: DELETE operations now properly clear vector data and free space — v0.1.7 changed behavior from only setting validity bits. Code using DELETE statements may see different storage behavior source
NEW: Distance column constraints in KNN queries — v0.1.7 adds support for
>,>=,<,<=constraints on the distance column, enabling pagination-like patterns without requiring large k values sourceNEW: Metadata columns in vec0 virtual tables — v0.1.6 added ability to declare metadata columns that can be filtered in WHERE clauses of KNN queries alongside vector matching source
NEW: Partition keys for internal index sharding — v0.1.6 added
partition keysyntax to internally shard vector indexes by column values sourceNEW: Auxiliary columns with
+prefix — v0.1.6 added support for auxiliary columns (prefix with+) that are unindexed but available for fast lookups in KNN query results sourceBREAKING:
vec_npy_eachtable function removed from default entrypoint — v0.1.3 moved this experimental function out due to CVE-2024-46488 security mitigation; affected code using untrusted SQL or the rarevec_npy_eachfunction source
Also changed: Static linking support for SQLite 3.31.1+ · serialize_float32() / serialize_int8() Python functions added
Best Practices
Use two-column re-scoring pattern for binary quantization — store both quantized and full-precision vectors; query coarse index with quantized vectors, then re-score top candidates with full precision to recover quality lost from extreme dimensionality reduction source
Combine
vec_slice()withvec_normalize()for Matryoshka embeddings — truncating dimensions requires subsequent normalization to maintain embedding quality and semantic meaning sourcePrefer scalar quantization over binary quantization for moderate storage savings — trade off storage efficiency against quality loss;
vec_quantize_float16(2 bytes per value) andvec_quantize_int8(1 byte per value) offer better quality retention than binary quantization for many use cases sourceUse partition keys to shard large vector datasets — declare a
partition keycolumn inCREATE VIRTUAL TABLEto internally shard the vector index on that column, improving query performance by reducing search scope sourceCombine metadata columns (indexed) with auxiliary columns (unindexed) for efficient filtering — use regular metadata columns for dimensions you filter on in KNN WHERE clauses; prefix columns with
+to store related data without indexing overhead sourceUse distance constraints instead of oversampling for pagination — as of v0.1.7, apply
distance > thresholdordistance < thresholdconstraints in WHERE clauses to paginate through KNN results without fetching excess candidates sourceMonitor the k value limit when performing large KNN queries — the default maximum k is 4096 (configurable) to prevent memory exhaustion; be aware that kNN results are materialized in memory and internally use O(n²) complexity on k source
Rely on v0.1.7+ for automatic DELETE cleanup — vector space is now reclaimed when enough vectors are deleted to clear a chunk (~1024 vectors); previous versions only marked entries as deleted without freeing space source
Select embedding models with quantization support for better results — models like
nomic-embed-text-v1.5,mxbai-embed-large-v1, and OpenAI'stext-embedding-3are specifically trained to maintain quality after quantization and Matryoshka truncation source
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核