Agent skill · AI & Agents

citations-retrieval

Document citations and RAG (Retrieval-Augmented Generation) patterns for Claude. Activate for source attribution, document grounding, citation extraction, and contextual retrieval.

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill citations-retrieval-lobbi-docs-claude-2 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 13 KB
Bundled scripts: none
Allowed tools: -Bash-Read-Write-Edit-Glob-Grep
Requires: - llm-integration
Path: skills/ai-llm/citations-retrieval-lobbi-docs-claude-2/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Citations & Retrieval Skill Implement document-based citations and RAG patterns for grounded, verifiable AI responses. ## When to Use This Skill - Document Q&A with source attribution - RAG (Retrieval-Augmented Generation) systems - Grounding responses in provided documents - Building trustworthy AI applications - Research and analysis with citations ## Core Concepts ### Citation Types | Type | Use Case | Format | |------|----------|--------| | `char_location` | Text documents | Character ranges | | `page_location` | PDFs | Page numbers | | `content_block_location` | Custom content | Block indexes | ## Basic Citations ### Enable Citations ```python import anthropic client = anthropic.Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, documents=[ { "type": "document", "source": { "type": "text", "media_type": "text/plain", "data": "The company was founded in 2020. Revenue reached $10M in 2023." }, "title": "Company Overview", "citations": {"enabled": True} # Enable citations! } ], messages=[{"role": "user", "content": "When was the company founded and what was the revenue?"}] ) # Extract citations from response for block in response.c

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Core Concepts
  3. Citation Types
  4. Basic Citations
  5. Enable Citations
  6. Custom Content Blocks
  7. RAG Implementation
  8. Basic RAG Pipeline
  9. Contextual Retrieval (49-67% Better)
  10. Citation Formatting
  11. Format as Numbered References
  12. Academic Citation Formats
  13. Multi-Document Q&A
  14. Prompt Caching for RAG
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the citations-retrieval skill do?

Document citations and RAG (Retrieval-Augmented Generation) patterns for Claude. Activate for source attribution, document grounding, citation extraction, and contextual retrieval.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill citations-retrieval-lobbi-docs-claude-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going