Skip to content

massimodeluisa/recursive-decomposition-skill / skills/recursive-decomposition

recursive-decomposition

Verified

Decompose dense codebase-wide, multi-document, PDF, and aggregation work even when the input fits the context window, following Recursive Language Models (Zhang, Kraska, Khattab, 2025). Use when the user asks to analyse all files, a whole repo, all docs, large PDFs, or to aggregate or multi-hop across scattered sources. Skip one file, one function, a single needle, or a one-page PDF conversion. Triggers: long context, context rot, large codebase, many files, all files, big document, multi-document, PDF, aggregate, summarize everything, codebase-wide, multi-hop, recursive, sub-agents, map-reduce.

evals/README.md

View on GitHub
# Evals

Large PDFs live in a git submodule. They are not copied into this repository.

Corpus: [tccao/mortgage-doc-rag](https://github.com/tccao/mortgage-doc-rag) (MIT). 131 public-domain mortgage PDFs, about 63 MB.

```bash
git submodule update --init --depth 1 skills/recursive-decomposition/evals/files/mortgage-doc-rag
```

Layout follows [Evaluating skills](https://agentskills.io/skill-creation/evaluating-skills). Runs go under `evals-workspace/` at the repository root (gitignored).

## Check (no agent)

```bash
bash .github/scripts/eval-skill.sh check
```

Validates trigger queries and, if the submodule is present, PDF count, byte floor, and the largest filename. CI does not clone the submodule. Missing PDFs print `SKIP`, not `ERROR`.

## Agent runs (with vs without the skill)

Same prompt twice, clean context:

```text
evals-workspace/iteration-1/eval-pdf-corpus/with_skill/outputs/result.json
evals-workspace/iteration-1/eval-pdf-corpus/without_skill/outputs/result.json
```

```json
{
  "decomposed": true,
  "depth": 1,
  "subagents_spawned_subagents": false,
  "pdf_count": 131,
  "largest": [{"path": "data/degraded/appraisal/urar_form_1004_epa_scan.pdf", "bytes": 1639534}]
}
```

```bash
bash .github/scripts/eval-skill.sh score evals-workspace/iteration-1
```

Trigger queries live in `trigger-queries.json`. Score those by whether the agent loaded this skill.

## Firecrawl document skills

| Skill | What it does |
|-------|----------------|
| [firecrawl/anydoc@convert-documents-to-markdown](https://skills.sh/firecrawl/anydoc/convert-documents-to-markdown) | Local `npx -y @firecrawl/anydoc FILE -o out.md`. Exit 3 means OCR; then `--ocr hosted`. |
| [firecrawl/cli@firecrawl-parse](https://skills.sh/firecrawl/cli/firecrawl-parse) | Cloud `firecrawl parse`. 50 MB cap, about 1 credit per page. |

Prefer anydoc. Many files in this corpus are scans; `pdftotext` on the whole tree extracts nothing useful. Size first, then parse only what the question needs.

Live pre/post (same prompt, 2026-09-11): size-first 0.02 s. anydoc on two digital PDFs 1.64 s, titles recovered. The largest file is a 4-page scan: anydoc exit 3, `firecrawl parse` 15.45 s, title Uniform Residential Appraisal Report. Naive `pdftotext` on all 131 files: 1.65 s and 0 bytes; on that scan, 4 bytes and no title.
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall