zift 技能规划
- 作者仓库星标 39
- 作者仓库 awesome-omni-skill
zift Skill
zift is a high-performance, local-first code search tool that combines semantic (vector) and lexical (FTS5) search.
Core Search Modes
1. Semantic / Hybrid (Default)
Uses natural language to find code by "meaning" or "intent".
zift "how do I handle database connections" .
Best for: High-level architectural questions, finding unfamiliar logic.
2. Exact Match (-e, --exact)
Performs a literal, byte-perfect substring search.
zift -e "SearchResult { file_path" .
Best for: Finding specific variable names, error strings, or boilerplate.
3. Regex Search (-r, --regex)
Uses Rust-powered regular expressions for pattern matching.
zift -r "pub (async )?fn" .
Best for: Finding all instances of a pattern (e.g., all public functions).
Workflow
Indexing
Before searching, you must index the project. zift uses incremental indexing and will auto-refresh stale files on query, but a full initial index is recommended:
zift add .
Filtering
Use the -l or --local flag to restrict results to the current working directory (useful in monorepos).
zift "auth logic" . --local
Architecture & Performance
- Local-first: All embeddings and indices stay on your machine (
~/.cache/zift). - GPU Accelerated: Uses Metal/GPU for embedding generation via
llama-cpp-2. - Hybrid RRF: Fuses semantic and lexical results using Reciprocal Rank Fusion (k=60) with Power-Law scaling (γ=2.5) for intuitive percentages.
- Speed: Exact and Regex searches skip the embedding phase and are near-instant (<50ms).
Troubleshooting
- Stale Index: If results seem old, run
zift add .again orzift forget .to reset. - Model Issues:
ziftdefaults tonomic-embed-text-v1.5. Ensure the model is downloaded to the cache directory.
- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @diegosouzapw · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Core Search Modes
Uses natural language to find code by "meaning" or "intent". Best for: High-level architectural questions, finding unfamiliar logic.
Performs a literal, byte-perfect substring search. Best for: Finding specific variable names, error strings, or boilerplate.
Uses Rust-powered regular expressions for pattern matching. Best for: Finding all instances of a pattern (e.g., all public functions).
Workflow
Before searching, you must index the project. zift uses incremental indexing and will auto-refresh stale files on query, but a full initial index is recommended:
# zift Skill
`zift` is a high-performance, local-first code search tool that combines semantic (vector) and lexical (FTS5) search.
## Core Search Modes
### 1. Semantic / Hybrid (Default)
Uses natural language to find code by "meaning" or "intent".
```bash
zift "how do I handle database connections" .
```
*Best for: High-level architectural questions, finding unfamiliar logic.*
### 2. Exact Match (`-e`, `--exact`)
Performs a literal, byte-perfect substring search.
```bash
zift -e "SearchResult { file_path" .
```
*Best for: Finding specific variable names, error strings, or boilerplate.*
### 3. Regex Search (`-r`, `--regex`)
Uses Rust-powered regular expressions for pattern matching.
```bash
zift -r "pub (async )?fn" .
```
*Best for: Finding all instances of a pattern (e.g., all public functions).*
## Workflow
### Indexing
Before searching, you must index the project. `zift` uses incremental indexing and will auto-refresh stale files on query, but a full initial index is recommended:
```bash
zift add .
```
### Filtering
Use the `-l` or `--local` flag to restrict results to the current working directory (useful in monorepos).
```bash
zift "auth logic" . --local
```
## Architecture & Performance
- **Local-first**: All embeddings and indices stay on your machine (`~/.cache/zift`).
- **GPU Accelerated**: Uses Metal/GPU for embedding generation via `llama-cpp-2`.
- **Hybrid RRF**: Fuses semantic and lexical results using Reciprocal Rank Fusion (k=60) with Power-Law scaling (γ=2.5) for intuitive percentages.
- **Speed**: Exact and Regex searches skip the embedding phase and are near-instant (<50ms).
## Troubleshooting
- **Stale Index**: If results seem old, run `zift add .` again or `zift forget .` to reset.
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Core Search Modes → 1. Semantic / Hybrid (Default) → 2. Exact Match (-e, --exact) → 3. Regex Search (-r, --regex) → Workflow → Indexing
要点 -> Local-first · GPU Accelerated · Hybrid RRF · Speed · Stale Index · Model Issues
文件/命令 -> zift · --exact · --regex · --local · ~/.cache/zift · llama-cpp-2 · zift add . · zift forget .
内容 SHA-256 -> f9b3d563301f
方法与流程
适用与边界
原文中的明确线索
zift、--exact、--regex、--local、~/.cache/zift、llama-cpp-2、zift add .、zift forget .