← Catalog

@egorlem/zsh-completion

Generate, update, and review native zsh completion files (`_command`) for CLI tools. Use when creating, fixing, or auditing a completion — reuse an existing or upstream completion, materialize the tool's own generator, or build from `--hel…

Skill

Install

Install with PiG

pig install npm:@egorlem/zsh-completion

Install with Pi

pi install npm:@egorlem/zsh-completion
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "./SKILL.md"
  ]
}

README

Written by the package's publisher, shown as published in version 1.3.0 (README.md). PiG does not review it.

zsh-completion

Generate, update, and audit native zsh completions (_command) for CLI tools.

The skill teaches an agent to pick a source (an existing completion, the tool's own generator, --help, man, or source), build the #compdef body with _arguments/_values/_describe, and verify it in three levels: syntax and lint, compinit registration and dispatch, and a real TAB through zpty.

Native zsh only — no bashcompinit, no COMP_WORDS, no interpreter calls from inside the completion.

Install

DeepSeek Harness

Open Plugins → Add plugin in the Web GUI and enter @egorlem/zsh-completion.

From the DSH CLI the same install is:

dsh plugin --profile <profile> add @egorlem/zsh-completion

dsh plugin runs pnpm inside the profile and selects the bundle; it does not install the package into the current project.

The package declares a dsh.bundle.patch, so profile startup mounts the shipped filesystem skill provider at the profile's node_modules/@egorlem scope and zsh-completion appears in the session skill catalog. No further configuration is required.

Pi agent

pi install npm:@egorlem/zsh-completion

The package ships a pi manifest (skills: ["./SKILL.md"]), so Pi registers the skill on install.

Other agents

Install the package with npm:

npm install @egorlem/zsh-completion

In every case the entry point is SKILL.md; references/ and scripts/ sit next to it.

Layout

PathRole
SKILL.mdagent contract: rules, decisions, workflow, verification
cordis.patch.ymlDeepSeek Harness bundle patch: registers the installed package with the filesystem skill provider
references/templates, help parsing, zsh patterns, anti-patterns
scripts/preflight.zshcollect facts before generating
scripts/collect/fpath, shadowing, safe help probing
scripts/verify/lint, harness gate, real-TAB harness
scripts/self-check.zshmaintainer check on the _demo fixture
tests/fixtures/_demofixture completion for lint and TAB checks

License

WTFPL, full text in LICENSE.