zoxide

A smarter cd command: automatically jumps based on path usage frequency and recent use, supports all major shells to improve directory-changing efficiency.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "zoxide" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-889c0f2e09c78d631cb0d217c2539c90d803f6dcdce5f4cd6fdd6ed2d913273f. Verify the upstream source and version against https://skillhub.cn/skills/user_a10ab3ad/zoxide before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A smarter cd command: automatically jumps based on path usage frequency and recent use, supports all major shells to improve directory-changing efficiency.

0 Downloads

Introduction source: third_party · user_a10ab3ad · 1.1.3 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: zoxide
description: 更智能的 cd 命令,基于频率和最近使用自动跳转,支持所有主流 Shell

📜 用户协议(User Agreement)

  1. 本 Skill 仅供学习与参考用途。使用本 Skill 产生的任何结果,由使用者自行承担全部责任;本 Skill 不提供任何明示或暗示的保证。
  2. 涉及法律、财务、税务、投资、医疗等专业决策时,请务必咨询持证专业人士。
  3. 本代码受版权法保护,未经授权复制、反向工程或商业利用将被追究法律责任。 <!-- user-agreement-injected -->

⚠️ 本内容仅供一般信息参考,不构成法律、财务、税务、投资或医疗建议。 涉及合同签署、报税、投资、诊疗等专业决策时,请务必咨询持证专业人士,并由使用者自行承担决策后果。 <!-- professional-disclaimer-injected -->

智能目录跳转 (zoxide)

更智能的 cd 命令,基于频率和最近使用(frecency)自动跳转,支持所有主流 Shell。本 Skill 旨在帮助用户通过自然语言或命令,快速、精准地完成目录切换。

〇、一页纸速查卡(Quick Reference)

这个 Skill 是做什么的?

  • 它是一个基于 zoxide 命令的智能目录跳转工具。你只需要输入目录的部分名称,它就能根据你的历史访问频率和最近使用时间,自动跳转到最可能的那个目录。

核心能力(3项):

  1. 智能匹配跳转:输入关键词,自动匹配并跳转到最可能的目录。
  2. 交互式选择:当有多个匹配项时,提供交互式列表供你选择。
  3. 历史记录管理:自动记录、查询、添加和清理目录访问历史。

快速上手(3步):

  1. 安装:curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh -o /tmp/install.sh && sh /tmp/install.sh(或使用包管理器,见 安装指南)。
  2. 配置:在 Shell 配置文件中(如 ~/.bashrc)添加 source <(zoxide init bash)。
  3. 使用:在终端输入 z 关键词 即可跳转。

阅读路径建议:

许可证(License)

MIT License

Copyright (c) 2026 ajeetdsouza contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

<!-- professional-license-embedded -->

前置条件

  • Python 3.9+(脚本依赖标准库,无需联网即可运行自检)
  • 已获取待处理的输入文件,并对其拥有合法使用权
  • 建议先在样本数据上试运行,确认输出符合预期后再批量处理

执行步骤

  1. 准备输入:将待处理文件放入同一目录,确认命名规范一致。
  2. 试运行:先用单个样本执行,核对输出字段与格式。
  3. 批量执行:确认无误后对全量数据执行,并保留原始文件备份。
  4. 校验结果:抽查输出条目,核对关键字段与源数据一致。

输出

  • 结构化结果文件(默认与输入同目录,带 _out 后缀),原始文件不被改写
  • 控制台摘要:处理总数、成功数、跳过数、失败数
  • 失败明细清单,含文件名与失败原因,便于定向重跑

异常处理

异常情况 表现 处理方式
输入文件不存在 提示路径错误并退出 核对路径,使用绝对路径重试
文件格式不符 该条跳过并计入失败明细 转换为受支持格式后重跑该条
权限不足 写入失败 更换输出目录或提升目录写权限
单条数据异常 跳过该条,继续处理其余 处理结束后查看失败明细定向重跑

失败处理原则:单条失败不中断整批,全部异常汇总到失败明细,支持只重跑失败项。

能力边界

能做:标准格式的批量处理、字段提取与结构化输出、失败明细追踪。

不能做:不保证对加密、损坏或非标准格式文件的处理结果;不替代人工对关键数据的最终核对。

不适用:涉及重大决策的数据请以官方原始凭证为准,本工具输出仅供效率参考。

稳定性保障

  • 超时控制:单条处理设置上限,超时自动跳过并记入失败明细,避免整批卡死。
  • 重试策略:可恢复类错误(临时占用、瞬时 IO 失败)自动重试 3 次,间隔递增。
  • 降级方案:高级解析失败时自动回退到基础解析模式,保证有可用输出而非直接报错。
  • 幂等性:重复执行同一批输入结果一致,不会产生重复追加。

FAQ 与反模式

Q:可以直接对原始文件覆盖写入吗? A:不建议。默认输出到独立文件,保留原始数据是可回溯的前提。

Q:处理到一半失败了怎么办? A:已完成部分的输出有效,查看失败明细后只重跑失败项即可,无需整批重来。

反模式 ①:不做试运行直接批量处理全量数据 —— 参数配错会一次性污染全部输出。

反模式 ②:忽略失败明细只看成功数 —— 静默跳过的条目会造成数据缺口。

反模式 ③:把工具输出直接作为最终结论 —— 关键字段务必人工抽检。

安全声明

  • 全流程本地执行,不上传任何用户数据到第三方服务。
  • 不读取与任务无关的目录,不写入系统目录。
  • 处理含个人信息的数据时,请自行遵守《个人信息保护法》等相关法规。
  • 本 Skill 代码由 AI 辅助生成并经自检验证,以 MIT 协议开源,使用者自负使用后果。

Current listing version

1.1.3

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供基于频率和最近使用(frecency)的智能目录跳转功能,解决用户在终端中快速切换目录的痛点
  • 属于明确场景的通用工具,具有广泛受众的实用能力
Trigger Precision65/100

Areas to improve

  • 触发词不全 Reported severity: Minor

    description 描述了 Skill 的功能,但未提供具体的触发词或命令示例(如 'z' 命令),触发描述较为宽泛,存在一定歧义风险。

    Recommendation: 建议在 description 或 skill_body 开头补充具体的触发命令示例,如 '使用 z 命令进行智能目录跳转',以提高触发精准度。

Structure and Standards95/100

Highlights

  • 结构清晰,包含快速上手、核心能力、许可证、前置条件、执行步骤、输出、异常处理、能力边界、稳定性保障、FAQ 等完整章节
  • frontmatter 完整,单文件未超过 500 行
Execution Reliability90/100

Highlights

  • 提供了详细的安装、配置和使用说明,包含异常处理表格和失败处理原则
  • 工具来源明确(zoxide 官方安装脚本),参数正确,覆盖主要异常,不可逆操作(如安装)有明确的命令指引
Evidence Verifiability (mean of the first four)84/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.