ground-response
БесплатноБез исполняемых скриптовНе проверенCitation-backed responses with direct quotes from source documents. Use when analyzing long docs, answering codebase/spec questions, or when response accuracy…
от laurigates★ 61 звезда на GitHubОб этом скилле
/prompt-engineering:ground-response
Produce a grounded, citation-backed response — every claim traced to a source quote, unsupported claims retracted, unknowns stated explicitly.
When to Use This Skill
| Use this skill when... | Use something else when... |
|---|---|
| You need factual accuracy grounded in source documents | Text needs style/tone adjustment → /prose:distill |
| Analyzing long documents (>20k tokens) where hallucination risk is high | You need code review → /code-quality:code-review |
| User asks to "cite sources" or "verify claims" | You need to synthesize scattered notes → /prose:synthesize |
| Answering questions about specs, policies, or technical docs | General coding task with no source verification needed |
| User wants auditable, traceable answers | Creative writing or brainstorming (accuracy not the goal) |
Core Principles
These three techniques are from Anthropic's official documentation on reducing hallucination. Apply all three in every response.
1. Permit Uncertainty
You have explicit permission to say "I don't know" or "The source does not address this." Do not invent, speculate, or fill gaps with plausible-sounding information. When the source is silent on a topic, say so. When the source is ambiguous, state the ambiguity.
2. Extract Direct Quotes First
Before analyzing or answering, extract word-for-word quotes from the source material that are relevant to the task. This grounds your reasoning in actual text, not recalled impressions. For documents >20k tokens, this step is critical — extract before you analyze.
3. Verify Claims Against Quotes
After formulating your response, audit every claim. Each claim must have a supporting quote. If a claim lacks a supporting quote, retract it. Mark retracted claims with [RETRACTED — no supporting quote found]. This makes your response auditable.
Parameters
Parse $ARGUMENTS:
- Question/task: The primary argument — what to analyze or answer
--source <path>: Optional file path or glob pattern for source material- If no
--sourceis provided, look for source material in the conversation context - If no source material is available anywhere, ask the user to provide it
Execution
Execute this grounded analysis workflow:
Step 1: Identify and Read Source Material
- If
--sourceis provided, read the file(s):- Single file: use
Read - Glob pattern: use
Globto find files, thenReadeach - Directory: use
Globwith**/*to discover relevant files
- Single file: use
- If no
--source, check conversation context for documents, code, or prior content - If no source material is available, stop and ask: "What document or source should I ground my response in?"
Note the total size of source material. For large sources (>20k tokens), be especially rigorous about Step 2.
Step 2: Extract Direct Quotes
Search the source material and extract word-for-word quotes relevant to the question/task.
For each quote, record:
- Quote number: Sequential identifier (
Q1,Q2, etc.) - Exact text: Word-for-word from the source — no paraphrasing
- Location: File path and line number, or document section
Extract comprehensively. It is better to extract too many quotes than too few — you can discard unused quotes later, but you cannot cite quotes you didn't extract.
If no relevant quotes are found, state: "No relevant quotes found in the provided source material. I cannot provide a grounded response to this question."
Step 3: Formulate Claims
Answer the question or perform the task. Structure your response as a series of claims, each referencing one or more quotes:
- Tag each claim with its supporting quote(s):
[Q1],[Q2, Q3] - Keep claims atomic — one assertion per claim
- Distinguish between what the source explicitly states and what you infer
Step 4: Verify — Audit Every Claim
Walk through each claim in your response:
- Does it have a tagged quote reference?
- Does the referenced quote actually support this specific claim?
- Is the claim a faithful representation of the quote, or does it overstate/distort?
For any claim that fails verification:
- If the claim overstates the quote → weaken it to match what the quote supports
- If no quote supports it → mark as
[RETRACTED — no supporting quote found] - If the quote is ambiguous → note the ambiguity explicitly
Step 5: State Unknowns
After verification, explicitly list:
- Questions the source does not address — gaps in the material relevant to the task
- Ambiguities — where the source is unclear or contradictory
- Limitations — boundaries of what can be concluded from this source alone
Do not skip this step. Stating unknowns is as important as stating knowns.
Step 6: Present Grounded Response
Deliver the final response using this structure:
## Grounded Analysis
<Your response with inline [QN] citations for each claim>
## Suppor
Установить ground-response в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobTodoWriteFAQ
Что делает скилл ground-response?
Citation-backed responses with direct quotes from source documents. Use when analyzing long docs, answering codebase/spec questions, or when response accuracy is critical.
Как установить скилл ground-response?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ground-response запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic