
llamacloud-index
Use this skill whenever a question should be answered from documents stored in a LlamaCloud Index v2 knowledge base — retrieving passages, locating indexed files, or searching indexed content through the LlamaParse Platform REST API with curl. Teaches agentic retrieval — navigating an index like a file system instead of one-shot RAG.
- Installs
- 188
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/run-llama/llamaparse-agent-skills --skill llamacloud-index- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads llamacloud-index automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
LlamaCloud Index v2 — Agentic Retrieval Guide
Answer questions from documents stored in Index v2, the managed knowledge base of the LlamaParse Platform. Every operation is a single authenticated HTTP call, so from a shell the cheapest interface is curl + jq: you can compose calls, batch independent lookups into one command, and bound exactly how much output enters the conversation.
Index v2 is built for agentic retrieval: beyond semantic search, it gives you file-system-like access to the underlying documents (PDFs, Office documents, images, and other unstructured files). This skill is about using that access well — navigating the index the way you would a file system, instead of firing a single one-shot RAG query and hoping the top results contain the answer.
Setup
export LLAMA_BASE="https://api.cloud.llamaindex.ai/api/v1" # EU accounts: https://api.cloud.eu.llamaindex.ai/api/v1
AUTH=(-H "Authorization: Bearer $LLAMA_CLOUD_API_KEY" -H "Content-Type: application/json")
If a call returns 401/403, ask the user to check LLAMA_CLOUD_API_KEY (and the region) — do not retry in a loop.
The API
| Operation | Call | Key body fields |
|---|---|---|
| List indexes | GET /indexes | — |
| Retrieve passages | POST /retrieval/retrieve | index_id, query, top_k, rerank ({enabled, top_n}, enabled by default), score_threshold, static_filters, custom_filters |
| Find files | POST /retrieval/files/find | index_id, file_name_contains (substring, recommended) or file_name (exact) |
| Grep a file | POST /retrieval/files/grep | index_id, file_id, pattern (regex), context_chars |
| Read a file | POST /retrieval/files/read | index_id, file_id, offset, max_length (chars; omit for full file) |
file_id values come from the find and retrieve responses. Full parameter reference: retrieval · file operations.
Step 0 — Pick an Index
Discover once per conversation, not before every query:
curl -s "${AUTH[@]}" "$LLAMA_BASE/indexes" | jq '.items[] | {id, name, description}'
If more than one index plausibly matches the user's question, ask the user which one to use — do not silently query the wrong knowledge base. If the user already gave you an index ID, skip discovery entirely.
The Agentic Retrieval Loop
Treat the index like a file system you can explore, not a black box you query once:
- Discover —
GET /indexesto find the right index. - Locate —
findto identify the files relevant to the question. - Search —
grepfor exact patterns within a file. - Retrieve —
retrievefor hybrid (sparse + dense) semantic search. - Inspect —
reada bounded window of a file when you need surrounding context.
You rarely need all five steps for one question. The skill is choosing the right entry point (below) and iterating: a first retrieval that names a promising document is a reason to grep inside it, not a reason to stop.
Choosing the Right Call
| Situation | Start with |
|---|---|
| Open or conceptual question ("what does the report say about churn?") | retrieve |
| Question spans multiple documents or you don't know the wording used | retrieve |
| Looking for an exact term, identifier, figure, or section heading in a known file | grep |
| The user names or implies a specific document ("in the Q3 report…") | find, then grep/retrieve within it |
| You need continuous context around a passage you already located | read with offset/max_length |
Rules of thumb:
retrievematches meaning;grepmatches patterns. Use retrieval when you know what you mean but not how the document phrases it. Use grep when you know the literal string (a product name, an account code, "Section 4.2").- Verification flows are grep-shaped. "Does the contract mention X?" is a grep in the located file, not a retrieval.
- Scope retrieval to one file with a filter instead of reading it whole:
"static_filters": {"parsed_directory_file_id": {"operator": "eq", "value": "<file-id>"}}runs semantic search inside just that document. - Bound every call. Set
top_kfor retrieval (andrerank.top_nto cap what the reranker returns),context_charsfor grep,offset/max_lengthfor reads. Never let an unbounded response into the conversation.
Working Examples
# Retrieve passages (bounded, with file and page provenance)
curl -s "${AUTH[@]}" -X POST "$LLAMA_BASE/retrieval/retrieve" -d '{
"index_id": "<index-id>", "query": "carbon intensity targets", "top_k": 5
}' | jq -r '.results[] | "== file \(.static_fields.parsed_directory_file_id) pp.\(.static_fields.page_range_start)-\(.static_fields.page_range_end) score \(.score)\n\(.content)"'
# Locate a document by name substring
curl -s "${AUTH[@]}" -X POST "$LLAMA_BASE/retrieval/files/find" \
-d '{"index_id": "<index-id>", "file_name_contains": "quarterly"}' | jq '.items[] | {file_id, file_name}'
# Grep it — context comes back with the match, no follow-up read needed
curl -s "${AUTH[@]}" -X POST "$LLAMA_BASE/retrieval/files/grep" \
-d '{"index_id": "<index-id>", "file_id": "<file-id>", "pattern": "revenue|profit", "context_chars": 200}' \
| jq -r '.items[] | "[\(.start_char)-\(.end_char)] \(.content)"'
# Read a window around a grep hit (never the whole file by default)
curl -s "${AUTH[@]}" -X POST "$LLAMA_BASE/retrieval/files/read" \
-d '{"index_id": "<index-id>", "file_id": "<file-id>", "offset": 12000, "max_length": 4000}' | jq -r '.content'
Batch independent lookups into one command instead of one call per turn — several greps or retrievals in a single for-loop with labeled output cost one round-trip, not five.
Grounding Answers
Every claim in your answer must be backed by content you actually retrieved:
- Quote or paraphrase only from the returned passages and file contents, and cite the source — retrieval results carry the file ID and page range (
static_fields.page_range_start/_end) for exactly this purpose. - Do not fill gaps with prior knowledge. If the results only partially answer the question, retrieve again with a refined query or grep the relevant file — don't improvise the rest.
- If the index does not contain the answer, say so explicitly rather than answering from general knowledge. Offer to answer without the index if that is still useful.
- When passages conflict, surface the conflict and the source files instead of picking one silently.
Common Pitfalls
- Don't paste whole files into context. An unbounded
readon a large document floods the conversation with content you'll pay for on every subsequent turn. If you need one fact, grep; if you need the relevant passages, retrieve (optionally filtered to the file); if you need a region, read a window. Read a file in full only when nothing narrower can answer the question. - Don't one-shot RAG. A single retrieve call is the floor, not the ceiling. If the top passages don't answer the question, refine the query, or pivot: use the file IDs surfaced by retrieval to grep or inspect the most promising document.
- Don't grep for paraphrases. Grep matches patterns, not meaning. If your grep for the user's phrasing comes back empty, that does not mean the answer is absent — switch to
retrieve. - Don't dump raw JSON. Always pipe through
jqto project just the fields you need; a raw retrieval response is mostly metadata you don't want in context. - Don't repeat identical calls. Re-running the same retrieval or grep returns the same results. Change the query, the pattern, or the call.
- Don't guess the index. Querying the wrong knowledge base produces confidently wrong, well-cited answers. When multiple indexes could match, ask.
- Don't answer around missing content. Absence of results is information: report what you searched and what wasn't there.
No Shell Access?
If you are running in an environment without a shell, the same operations are exposed as tools by the LlamaParse MCP server (https://mcp.llamaindex.ai/mcp, or scoped to one index at /index/{indexId}/mcp) — the workflow and discipline above apply unchanged.
FAQ
What does the llamacloud-index skill do?
Use this skill whenever a question should be answered from documents stored in a LlamaCloud Index v2 knowledge base — retrieving passages, locating indexed files, or searching indexed content through the LlamaParse Platform REST API with curl. Teaches agentic retrieval — navigating an index like a file system instead of one-shot RAG.
How do I install llamacloud-index?
Run npx skills add https://github.com/run-llama/llamaparse-agent-skills --skill llamacloud-index in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/llamacloud-index/ (personal) or .claude/skills/llamacloud-index/ (project).
Which AI agents can use llamacloud-index?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is llamacloud-index safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains llamacloud-index?
It is published by run-llama in run-llama/llamaparse-agent-skills. It has 188 recorded installs.
More from run-llama/llamaparse-agent-skills
liteparse
run-llama/llamaparse-agent-skills
Use this skill whenever a task involves a document file (PDF, DOCX, PPTX, XLSX, or image) and you need to read it or pull text, tables, or specific values out of it — to answer a question about its contents, look up a figure, or extract data. Provides fast, local, model-free extraction via the lit CLI with disciplined, low-cost search patterns.
llamaparse
run-llama/llamaparse-agent-skills
Use this skill when the user asks to parse the content of an unstructured file (PDF, PPTX, DOCX...)
effective-liteparse
run-llama/llamaparse-agent-skills
Use this skill whenever a task involves a document file (PDF, DOCX, PPTX, XLSX, or image) and you need to read it or pull text, tables, or specific values out of it — to answer a question about its contents, look up a figure, or extract data. Provides fast, local, model-free extraction via the lit CLI with disciplined, low-cost search patterns.
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available