Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work.
Python agent-skillsai-agentsbook-to-skillcontext-engineeringdocument-processingedtechknowledge-baseknowledge-managementllmpdf-to-markdownragself-studystudy-tools
docs: name Codex as a supported host (#154)
Virgilio Juniorb769a95fcf9c
diff --git a/SKILL.md b/SKILL.mdindex aa02644..908dea3 100644--- a/SKILL.md+++ b/SKILL.md@@ -67,7 +67,7 @@ Four paths available. Route based on what the user asks:This converter can run from multiple skill systems. When looking for this converter's helper script or writing the generated book skill, prefer these locations in order:1. GitHub Copilot CLI personal skills: `~/.copilot/skills/`-2. Cross-agent personal skills (Copilot + Amp): `~/.agents/skills/`+2. Cross-agent personal skills (Copilot, Amp, Codex): `~/.agents/skills/`3. Claude Code personal skills: `~/.claude/skills/`4. Project-local Copilot skills: `.github/skills/`5. Project-local Claude skills: `.claude/skills/`@@ -307,12 +307,13 @@ Choose the destination skill root (`SKILLS_HOME`). Probe the user's filesystem f| **GitHub Copilot CLI** | `~/.copilot/skills` → `~/.agents/skills` | `.github/skills` → `.claude/skills` → `.agents/skills` || **Amp** | `~/.agents/skills` → `~/.config/agents/skills` → `~/.config/amp/skills` | `.agents/skills` || **Claude Code** | `~/.claude/skills` | `.claude/skills` |+| **OpenAI Codex** | `~/.agents/skills` (discovered natively; follows symlinks) | `.agents/skills` |Selection rules:1. If **exactly one** of the host's candidate roots exists on disk, use it without asking.2. If **none** exist (fresh machine), ask the user which root to create — present the host-appropriate options and remember the choice for the session. Do not silently pick.3. If the user explicitly asked for project-local output, prefer the project-local row.-4. If you cannot identify the host, ask: "Which agent are you running this in — GitHub Copilot CLI, Amp, or Claude Code?"+4. If you cannot identify the host, ask: "Which agent are you running this in — GitHub Copilot CLI, Amp, Codex, or Claude Code?"Set `SKILLS_HOME` to the selected root and check if `$SKILLS_HOME/<skill_name>/` already exists.If it does, prompt the user to choose:diff --git a/docs/install.md b/docs/install.mdindex 85de404..c053fa9 100644--- a/docs/install.md+++ b/docs/install.md@@ -1,12 +1,12 @@----description: "Install book-to-skill as an agent skill for Claude Code, GitHub Copilot CLI and Amp, or as a standalone pip CLI. Every host path and optional extractor covered."+description: "Install book-to-skill as an agent skill for Claude Code, GitHub Copilot CLI, Amp and Codex, or as a standalone pip CLI. Every host path and optional extractor covered."seo_title: "Install book-to-skill - Claude Code, Copilot CLI, Amp, or pip"---## 📥 Install> **Two ways to use it, do not confuse them:**-> - **As an agent skill** (the `/book-to-skill` command in Claude Code, Copilot CLI, or Amp) → **`git clone` into your skills folder** (below). This is what gives you the slash command and the full convert-a-book flow.+> - **As an agent skill** (the `/book-to-skill` command in Claude Code, Copilot CLI, Amp, or Codex) → **`git clone` into your skills folder** (below). This is what gives you the slash command and the full convert-a-book flow.> - **As a standalone CLI** (just the text extractor) → `pip install book-to-skill`, then `book-to-skill --help`. This does **not** register the agent skill; it only installs the extraction engine. See [the CLI section](#standalone-cli-pip).The skill follows the open [Agent Skills](https://github.com/agentskills/agentskills) standard, so a single install works for any compatible host.@@ -28,12 +28,18 @@ git clone https://github.com/virgiliojr94/book-to-skill.git ~/.copilot/skills/bo/skills info book-to-skill```-Or the cross-agent path that Copilot CLI and Amp both discover:+Or the cross-agent path that Copilot CLI, Amp and Codex all discover:```bashgit clone https://github.com/virgiliojr94/book-to-skill.git ~/.agents/skills/book-to-skill```+**OpenAI Codex** reads `~/.agents/skills` and follows symlinks, so the clone above is all it needs. A local checkout works too, linked in rather than copied:++```bash+ln -s /path/to/book-to-skill ~/.agents/skills/book-to-skill+```+**Claude Code**:Copy this into your Claude Code session: