AGENT SKILL

page-index

Routes PageIndex PDF, flash, Markdown, and workspace retrieval workflows.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
page-index
license
MIT
metadata
{ "disco-role": "operating" }
description
Routes PageIndex PDF, flash, Markdown, and workspace retrieval workflows.
disable-model-invocation
true

02 资源文件 10

03 SKILL.md 正文

PageIndex

PageIndex turns PDFs and Markdown into hierarchical trees and exposes retrieval helpers for workspace-backed document Q&A.

Use this skill when the request mentions:

  • generating a tree, outline, TOC, or section hierarchy from a PDF
  • the fast no-LLM Flash path or embedded bookmarks
  • converting Markdown headings into a tree
  • optimizing an existing tree for search cost
  • PageIndexClient, workspace storage, or document retrieval by page range
  • the agentic vectorless RAG demo or tool-call based document QA

Start here

  • Install the runtime dependency set listed in references/configuration.md.
  • Make pageindex importable in the current Python environment before using the bundled scripts.
  • Quick import smoke: python scripts/check_env.py
  • Main CLI help: python scripts/pageindex_cli.py --help

Route map

  • sub-skills/pdf-indexing/ — classic PDF tree extraction with the LLM-assisted pipeline.
  • sub-skills/flash-indexing/ — fast PDF extraction with PageIndex Flash, embedded bookmarks, and merge-only optimization.
  • sub-skills/markdown-indexing/ — Markdown heading trees, thinning, and optional summaries.
  • sub-skills/retrieval-client/ — PageIndexClient, workspace persistence, page retrieval, and agentic Q&A patterns.

Shared references

Read these when you need the full details behind a route:

  • references/workflows.md — end-to-end workflows and the right route for each task family.
  • references/api-reference.md — verified public APIs and signatures.
  • references/cli-reference.md — bundled CLI wrapper and pageindex.tree_optimize flags.
  • references/data-formats.md — tree JSON, workspace JSON, and Markdown semantics.
  • references/configuration.md — model defaults, environment variables, and optional extras.
  • references/troubleshooting.md — common failures and recovery steps.
  • references/repo-provenance.md — staleness and source snapshot information.

Selection hints

  • PDF with TOC recovery, page-number reconciliation, summaries, or document descriptions -> pdf-indexing.
  • Fast PDF structure from layout statistics, embedded bookmarks, or merge-only optimization -> flash-indexing.
  • Markdown files with headings -> markdown-indexing.
  • Workspace-backed retrieval, get_document, get_document_structure, get_page_content, or the agentic RAG demo -> retrieval-client.
  • If a task mentions --optimize, start from flash-indexing; its reference material covers the merge-only and expand paths.

Operating notes

  • The package is source-first in this repository. Do not assume a pip-installable distribution exists; install the runtime dependency set from references/configuration.md and use the bundled scripts in a path-aware environment.
  • Live LLM or agentic runs still need the user's API key and network access.
  • Prefer the smallest safe workflow that matches the request.
  • If the repository has changed, read references/repo-provenance.md before updating or refreshing the skill.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351