Token导航 LogoToken导航

Agent Skill · 研究检索

codex-cli-docs(Codex CLI 文档)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

codex-cli-docs 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 70,834。

总安装 198周安装 8GitHub Stars 61下载 62核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:codex-cli-docs(Codex CLI 文档)
来源仓库:https://github.com/melodic-software/claude-code-plugins
仓库路径:skills/codex-cli-docs
安装命令:
npx skills add https://github.com/melodic-software/claude-code-plugins --skill codex-cli-docs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/melodic-software/claude-code-plugins --skill codex-cli-docs

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

codex-cli-docs 用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语或检查链接有效性。使用时必须保留项目已有事实与路径信息,避免将未确认内容写成确定结论。

安装命令为 npx skills add https://github.com/melodic-software/claude-code-plugins --skill codex-cli-docs,需注意 PowerShell 路径解析问题。特别禁止使用 cd 与 && 组合执行脚本,防止路径重复拼接导致错误。

来源仓库内路径:skills/codex-cli-docs

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/melodic-software/claude-code-plugins --skill c…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

codex-cli-docs 怎么安装?

在终端执行 npx skills add https://github.com/melodic-software/claude-code-plugins --skill codex-cli-d…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

codex-cli-docs 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

codex-cli-docs 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

codex-cli-docs 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

codex-cli-docs 用的人多吗?

公开数据是累计安装 198 次,近一周安装 8 次,下载 62 次,GitHub 61 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

codex-cli-docs 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
codex-cli-docs

Codex CLI 文档 · 本页

19861接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

OpenAI Codex CLI Documentation Skill

CRITICAL: Path Doubling Prevention - MANDATORY

ABSOLUTE PROHIBITION: NEVER use cd with && in PowerShell when running scripts from this skill.

The Problem: If your current working directory is already inside the skill directory, using relative paths causes PowerShell to resolve paths relative to the current directory instead of the repository root, resulting in path doubling.

REQUIRED Solutions (choose one):

  1. ALWAYS use absolute paths (recommended)
  2. Use separate commands (never cd with &&)
  3. Run from repository root with relative paths

NEVER DO THIS:

  • Chain cd with &&: cd <relative-path> && python <script> causes path doubling
  • Assume current directory
  • Use relative paths when current dir is inside skill directory

CRITICAL: Large File Handling - MANDATORY SCRIPT USAGE

ABSOLUTE PROHIBITION: NEVER use read_file tool on the index.yaml file

The file exceeds context limits and will cause issues. You MUST use scripts.

REQUIRED: ALWAYS use manage_index.py scripts for ANY index.yaml access:

python scripts/management/manage_index.py count
python scripts/management/manage_index.py list
python scripts/management/manage_index.py get <doc_id>
python scripts/management/manage_index.py verify

All scripts automatically handle large files via index_manager.py.

Available Slash Commands

Use the consolidated docs-ops skill for common workflows:

  • /openai-ecosystem:docs-ops scrape - Scrape Codex CLI documentation from llms.txt sources
  • /openai-ecosystem:docs-ops refresh - Refresh the local index and metadata without scraping
  • /openai-ecosystem:docs-ops validate - Validate the index and references for consistency
  • /openai-ecosystem:docs-ops rebuild-index - Force rebuild the search index
  • /openai-ecosystem:docs-ops clear-cache - Clear the documentation search cache

Overview

This skill provides automation tooling for OpenAI Codex CLI documentation management. It manages:

  • Canonical storage (encapsulated in skill) - Single source of truth for official docs
  • Subsection extraction - Token-optimized extracts (60-90% savings)
  • Drift detection - Hash-based validation against upstream sources
  • Sync workflows - Maintenance automation
  • Documentation discovery - Keyword-based search and doc_id resolution
  • Index management - Metadata, keywords, tags, aliases for resilient references

Core value: Prevents link rot, enables offline access, optimizes token costs, automates maintenance, and provides resilient doc_id-based references.

When to Use This Skill

This skill should be used when:

  • Scraping documentation - Fetching docs from OpenAI Codex CLI sources
  • Finding documentation - Searching for docs by keywords, category, or natural language
  • Resolving doc references - Converting doc_id to file paths
  • Managing index metadata - Adding keywords, tags, aliases, updating metadata
  • Rebuilding index - Regenerating index from filesystem (handles renames/moves)

Workflow Execution Pattern

CRITICAL: This section defines HOW to execute operations in this skill.

Delegation Strategy

Default approach: Delegate to Task agent

For ALL scraping, validation, and index operations, delegate execution to a general-purpose Task agent.

How to invoke:

Use the Task tool with:

  • subagent_type: "general-purpose"
  • description: Short 3-5 word description
  • prompt: Full task description with execution instructions

Execution Pattern

Scripts run in FOREGROUND by default. Do NOT background them.

When Task agents execute scripts:

  • Run directly: python plugins/openai-ecosystem/skills/codex-cli-docs/scripts/core/scrape_docs.py
  • Streaming logs: Scripts emit progress naturally via stdout
  • Wait for completion: Scripts exit when done with exit code
  • NEVER use run_in_background=true: Scripts are designed for foreground execution
  • NEVER poll output: Streaming logs appear automatically, no BashOutput polling needed
  • NEVER use background jobs: No &, no nohup, no background process management

Error and Warning Reporting

CRITICAL: Report ALL errors, warnings, and issues - never suppress or ignore them.

When executing scripts via Task agents:

  • Report script errors: Exit codes, exceptions, error messages
  • Report warnings: Deprecation warnings, import issues, configuration problems
  • Report unexpected output: 404s, timeouts, validation failures
  • Include context: What was being executed when the error occurred

Quick Start

Refresh Index End-to-End (No Scraping)

Use this when you want to rebuild and validate the local index/metadata without scraping:

python plugins/openai-ecosystem/skills/codex-cli-docs/scripts/management/refresh_index.py

Scrape All Documentation

Use this when the user explicitly wants to hit the network and scrape docs:

# Scrape from configured llms.txt sources
python plugins/openai-ecosystem/skills/codex-cli-docs/scripts/core/scrape_docs.py

# Refresh index after scraping
python plugins/openai-ecosystem/skills/codex-cli-docs/scripts/management/refresh_index.py

Find Documentation

# Resolve doc_id to file path
python plugins/openai-ecosystem/skills/codex-cli-docs/scripts/core/find_docs.py resolve <doc_id>

# Search by keywords (default: 25 results)
python plugins/openai-ecosystem/skills/codex-cli-docs/scripts/core/find_docs.py search sandbox tools

# Natural language search
python plugins/openai-ecosystem/skills/codex-cli-docs/scripts/core/find_docs.py query "how to configure sandbox"

# List by category
python plugins/openai-ecosystem/skills/codex-cli-docs/scripts/core/find_docs.py category guides

# List by tag
python plugins/openai-ecosystem/skills/codex-cli-docs/scripts/core/find_docs.py tag cli

Search Options:

OptionDefaultDescription
--limit N25Maximum number of results to return
--no-limit-Return all matching results (no limit)
--min-score N-Only return results with relevance score >= N
--fast-Index-only search (skip content grep)
--json-Output results as JSON
--verbose-Show relevance scores

Configuration System

The codex-cli-docs skill uses a unified configuration system.

Configuration Files:

  • config/defaults.yaml - Central configuration file with all default values
  • config/filtering.yaml - Content filtering rules
  • config/tag_detection.yaml - Tag detection patterns
  • references/sources.json - Documentation sources configuration

Environment Variable Overrides:

All configuration values can be overridden using environment variables: CODEX_DOCS_<SECTION>_<KEY>

Dependencies

Required: pyyaml, requests, beautifulsoup4, markdownify, filelock Optional (recommended): yake (for keyword extraction)

Python Version: Python 3.11+ recommended

Core Capabilities

1. Scraping Documentation

Fetch documentation from configured sources using llms.txt format.

2. Extracting Subsections

Extract specific markdown sections for token-optimized responses.

3. Change Detection

Detect documentation drift via 404 checking and hash comparison.

4. Finding and Resolving Documentation

Discover and resolve documentation references using doc_id, keywords, or natural language queries.

5. Index Management and Maintenance

Maintain index metadata, keywords, tags, and rebuild index from filesystem.

Platform-Specific Requirements

Windows Users

MUST use PowerShell (recommended) or prefix Git Bash commands with MSYS_NO_PATHCONV=1

Git Bash on Windows converts Unix paths to Windows paths, breaking filter patterns.

Example:

MSYS_NO_PATHCONV=1 python scripts/core/scrape_docs.py --filter "/docs/"

Troubleshooting

Unicode Encoding Errors

Status: FIXED - Scripts auto-detect Windows and configure UTF-8 encoding.

404 Errors During Scraping

Status: EXPECTED - Some llms.txt entries may reference docs that don't exist yet. Scripts handle gracefully and continue.

Public API

The codex-cli-docs skill provides a clean public API for external tools:

from codex_docs_api import (
    find_document,
    resolve_doc_id,
    get_docs_by_tag,
    get_docs_by_category,
    search_by_keywords,
    get_document_section,
    detect_drift,
    refresh_index
)

# Natural language search
docs = find_document("sandbox configuration")

# Resolve doc_id to metadata
doc = resolve_doc_id("codex-cli-docs-getting-started")

# Get docs by tag
cli_docs = get_docs_by_tag("cli")

# Extract specific section
section = get_document_section("codex-cli-overview", "Installation")

Development Mode

When developing this plugin locally, you may want changes to go to your dev repo instead of the installed plugin location.

Enabling Dev Mode

PowerShell:

$env:CODEX_DOCS_DEV_ROOT = "D:\repos\gh\melodic\claude-code-plugins"

Bash/Zsh:

export CODEX_DOCS_DEV_ROOT="/path/to/claude-code-plugins"

Verifying Mode

When you run any major script (scrape, refresh, rebuild), a mode banner will display:

Dev mode:

[DEV MODE] Using local plugin: D:\repos\gh\melodic\claude-code-plugins

Prod mode:

[PROD MODE] Using installed skill directory

Disabling Dev Mode

PowerShell:

Remove-Item Env:CODEX_DOCS_DEV_ROOT

Bash/Zsh:

unset CODEX_DOCS_DEV_ROOT

Directory Structure

codex-cli-docs/
  SKILL.md                    # This file (public)
  codex_docs_api.py           # Public API
  canonical/                  # Documentation storage (private)
    index.yaml                # Metadata index
  scripts/                    # Implementation (private)
    core/                     # Scraping, discovery
    management/               # Index management
    maintenance/              # Cleanup, drift detection
    utils/                    # Shared utilities
  config/                     # Configuration
    defaults.yaml             # Default settings
    filtering.yaml            # Content filtering
    tag_detection.yaml        # Tag patterns
  references/                 # Technical documentation (public)
    sources.json              # Documentation sources
  .cache/                     # Cache storage (inverted index)
  logs/                       # Log files

Source

Documentation is scraped from OpenAI Codex CLI llms.txt sources (configured in sources.json).

Test Scenarios

Scenario 1: Keyword Search

Query: "Search for sandbox documentation" Expected Behavior:

  • Skill activates on keyword "documentation"
  • Returns relevant docs from index Success Criteria: User receives matching documentation entries

Scenario 2: Natural Language Query

Query: "How do I configure the Codex CLI sandbox?" Expected Behavior:

  • Skill activates on "Codex CLI"
  • Uses find_docs.py query command Success Criteria: Returns relevant documentation with configuration steps

Scenario 3: Doc ID Resolution

Query: "Resolve codex-cli-getting-started" Expected Behavior:

  • Resolves doc_id to file path
  • Returns document metadata Success Criteria: User receives full path and document content

Version History

  • v1.0.0 (2025-12-15): Initial release - full skill structure adapted from gemini-cli-docs

Last Updated

Date: 2025-12-15 Model: claude-opus-4-5-20251101

Status: Initial release - awaiting llms.txt source configuration for scraping.

平台分布

Codex

34.76%
按下载量换算22

Claude

31.97%
按下载量换算20

Cursor

18.83%
按下载量换算12

Gemini CLI

8.96%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills