Codex skill for fetching Linux kernel documentation patch emails from the
linux-doc@vger.kernel.org archive on lore.kernel.org and optionally uploading
newly saved patches to an IMA knowledge base.
The skill lives in fetch-linux-doc-patches/.
It includes:
SKILL.md: Codex-facing instructions and trigger metadata.scripts/fetch_linux_doc_patches.py: NNTP fetcher and optional IMA uploader.references/scheduling.md: cron, systemd, and launchd examples.agents/openai.yaml: UI metadata for Codex skill listings.
Clone this repository and copy or symlink the skill directory into your Codex skills directory:
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills"
ln -s "$(pwd)/fetch-linux-doc-patches" "${CODEX_HOME:-$HOME/.codex}/skills/fetch-linux-doc-patches"Restart Codex after installing the skill so it can discover the metadata.
Fetch new linux-doc patch emails and keep incremental state in the output directory:
python3 fetch-linux-doc-patches/scripts/fetch_linux_doc_patches.py \
--output ~/lkml/linux-docPreview recent matches without writing files:
python3 fetch-linux-doc-patches/scripts/fetch_linux_doc_patches.py \
--output /tmp/linux-doc-preview \
--since-days 1 \
--no-state \
--dry-runFetch new patches and upload them to the default IMA knowledge base named
linux-doc邮件列表:
python3 fetch-linux-doc-patches/scripts/fetch_linux_doc_patches.py \
--output ~/lkml/linux-doc \
--upload-to-imaUse a specific IMA knowledge base ID:
python3 fetch-linux-doc-patches/scripts/fetch_linux_doc_patches.py \
--output ~/lkml/linux-doc \
--upload-to-ima \
--ima-kb-id "<knowledge_base_id>"- Python 3.10 or newer.
- Network access to
nntp.lore.kernel.orgon port119, or port563with--tls --port 563when TLS NNTP is reachable. - Node.js and an installed
ima-skillonly when using--upload-to-ima. - IMA credentials configured through
IMA_OPENAPI_CLIENTIDandIMA_OPENAPI_APIKEY, or through the credential file supported byima-skill.
The fetcher writes:
- Daily directories containing extracted
.patchfiles with author, date, subject, and message ID metadata when available. manifest.jsonlwith one record per saved patch email..state.jsonfor NNTP article resume state..ima-upload-state.jsonwhen--upload-to-imais enabled.
Generated output directories should not be committed to this repository.