Skip to content
Back to skills

Codex Summarize Pipeline

ASecurity

Summarize huge articles (URL or local file) via a Codex CLI-driven chunk→reduce pipeline, keeping only the final short summary in context and saving it to summaries/*.md.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agentspythongoapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill codex-summarize-pipeline --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codex Summarize Pipeline?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codex Summarize Pipeline
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-codex-summarize-pipeline/badge)](https://www.skillsdirectory.com/skills/david-li0406-codex-summarize-pipeline)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codex-summarize-pipeline
description: Summarize huge articles (URL or local file) via a Codex CLI-driven chunk→reduce pipeline, keeping only the final short summary in context and saving it to summaries/*.md.
---

# Codex Summarize Pipeline

Use this skill to summarize long articles without loading the full text into the chat context.

## Guarantees / constraints

- Use only local tools and the `codex` CLI (no direct API calls in your code).
- Do not paste the full article into the conversation.
- Keep only the final short summary (and the output file path) in the assistant response.
- Always save the summary to a markdown file under `summaries/`.

See `README.md` in this skill for detailed usage and recommended defaults for HTML-extracted blogs/docs.

## Default flow (URL)

1. Pick a slug for filenames (short, filesystem-safe).
2. Fetch + extract text:
   - `python3 <skill>/tools/fetch_article_text.py --url "<URL>" --output .codex-pipeline/inputs/<slug>.txt`
3. Summarize (default `map-reduce`):
   - `python3 <skill>/tools/codex_summarize_pipeline.py --input .codex-pipeline/inputs/<slug>.txt --final-max-words 120 > summaries/<slug>.summary.md`
4. Respond with:
   - The path `summaries/<slug>.summary.md`
   - The final summary content only (short)

## Default flow (local file)

- `python3 <skill>/tools/codex_summarize_pipeline.py --input <path> --final-max-words 120 > summaries/<slug>.summary.md`

## Modes

- `map-reduce`: best general-purpose coverage.
- `extract-synthesize`: best when names/numbers/timeline matter.
- `question-led`: best when user has a specific goal (use `--goal`).

## Troubleshooting

- If extraction looks wrong, save the HTML and rerun:
  - `python3 <skill>/tools/fetch_article_text.py --input-html page.html --output .codex-pipeline/inputs/<slug>.txt`
- If `codex` is configured to run remote models and you want local-only, run with `--oss` + `--local-provider` (requires local LM server).

Files in this skill

  • README.md6.3 KB
  • SKILL.md1.9 KB
  • scripts/summarize.sh1.2 KB
  • tools/codex_summarize_pipeline.py11.8 KB
  • tools/fetch_article_text.py4.4 KB
  • tools/prompts/codex_summarize_pipeline/chunk_extract.json.tmpl530 B
  • tools/prompts/codex_summarize_pipeline/chunk_map.md.tmpl478 B
  • tools/prompts/codex_summarize_pipeline/chunk_question.md.tmpl1008 B
  • tools/prompts/codex_summarize_pipeline/merge_json.tmpl323 B
  • tools/prompts/codex_summarize_pipeline/reduce.md.tmpl697 B
  • tools/prompts/codex_summarize_pipeline/synthesize.md.tmpl307 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…