/context-grounding:context-groundingfrom context-grounding
Forces Claude to extract exact quotes before making claims, preventing hallucinations. Use when working with large files or unfamiliar code.
Ships in context-grounding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read first. Quote second. Claim third. Never skip a step.
Before making any claim about code, follow this sequence:
Read the actual file. Don't work from memory.
Pull the exact text that supports your claim. Include line numbers.
Now state what you believe, citing the quote as evidence.
Wrong approach: "The auth middleware checks for JWT tokens and returns 401 if invalid." (No evidence. Could be hallucinated.)
Grounded approach: "Reading src/middleware/auth.ts:15-25, the middleware does:
const token = req.headers.authorization?.split(' ')[1];
if (!token) return res.status(401).json({ error: 'No token provided' });
So it extracts the Bearer token from the Authorization header and returns 401 if missing."
Always ground when:
For files over 100 lines:
For files over 500 lines:
Before sending a response, test each factual statement: "Could someone verify this by reading the file I'm referencing?"
If yes: the statement is grounded. If no: you need to add the file reference and relevant quote. If you don't have a file to reference: either find one or mark as unverified.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub a-ariff/ariff-claude-plugins --plugin context-groundingOther plugins' skills for the same job