Skip to content

xr09/zeal-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

zeal-docs

An Agent Skill that gives your AI agent offline access to Zeal documentation on Linux. Instead of guessing at APIs from training data, the agent reads the exact docset installed on your machine — signatures, flags, examples, and narrative guides alike.


Prerequisites

Requirement Notes
Zeal (Linux) At least one docset downloaded
Python 3.8+ python3 on $PATH
beautifulsoup4 pip install beautifulsoup4
PyYAML pip install pyyaml (needed by sync_description.py only)
An agentskills-compatible agent (Linux) See the Client Showcase for compatible agents

Installation

1 — Clone into your agent's skills directory

Clone the repo into whichever directory your agent loads skills from:

git clone https://github.com/xr09/zeal-docs /path/to/your/skills/zeal-docs

Refer to your agent's documentation for the correct skills directory. For example, pi uses ~/.pi/agent/skills/, Claude Code uses ~/.claude/skills/.

Important: the directory must be named zeal-docs (matching the skill's name field). A plain git clone of this repo gets that right automatically.

2 — Install Python dependencies

pip install beautifulsoup4 pyyaml

lxml is optional but gives faster HTML parsing:

pip install lxml

3 — Sync the description to your installed docsets

The skill's description field lists the docsets the agent should look for. By default it mentions the docsets I use, you should update it to yours. Run this once after cloning (and again whenever you install or remove docsets in Zeal):

python3 /path/to/zeal-docs/scripts/sync_description.py

Use --dry-run to preview changes without writing anything:

python3 /path/to/zeal-docs/scripts/sync_description.py --dry-run

4 — Restart your agent

The agent picks up new skills on startup. Restart it so it discovers zeal-docs.


Usage

The agent activates this skill automatically whenever a task involves a technology covered by an installed docset. No manual invocation is needed.

To use the helper script directly (e.g. for debugging or exploration):

ZD="python3 /path/to/zeal-docs/scripts/zeal_docs.py"
$ZD list
$ZD search "json.loads" -d py
$ZD show "Python_3::doc/library/json.html#json.loads"

See SKILL.md for full query syntax and examples.


Keeping the skill description up to date

Run scripts/sync_description.py after installing or removing docsets in Zeal to keep the SKILL.md description current:

python3 /path/to/zeal-docs/scripts/sync_description.py

Pass --help for all options.


License

MIT

About

An Agent Skill that gives your AI agent offline access to Zeal docs on Linux

Topics

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages