/kipi-core:research-modefrom kipi-core
Toggles anti-hallucination mode with citation requirements, source grounding, and 'I don't know' behavior. Enforces a source lookup cascade from local files to web search.
Ships in kipi-core. 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.
Read when SKILL.md points to them.
Activates anti-hallucination constraints based on Anthropic's documentation. Stay in this mode until the user says to exit.
Source: Anthropic - Reduce Hallucinations
Before starting: Read references/anthropic-reduce-hallucinations.md for the full technique set from Anthropic's documentation. The constraints below are derived from that source.
If you don't have a credible source for a claim, say so. Don't guess. Don't infer. "I don't have data on this" is always a valid answer.
Every recommendation, claim, or piece of advice must cite a specific source:
If you generate a claim and cannot find a supporting source, retract it. Do not present it.
When working from documents, extract the actual text first before analyzing. Ground your response in word-for-word quotes, not paraphrased summaries. Reference the quote when making your point.
Check sources in this order. Stop at the first level that answers the question.
Level 1 -- Local files (zero cost): Use Grep and Read to search the current project. Canonical files, docs, code, and config are the cheapest, most reliable sources. If the claim is about this project, local files ARE the citation.
Level 2 -- Perplexity (low cost, preferred for all web research):
Call mcp__perplexity__perplexity_ask with a focused question. Perplexity returns a grounded answer with inline citations in a single call. Cite the Perplexity response and its source URLs verbatim. Do NOT paraphrase without attribution.
sonar for general questions, sonar-pro for technical depth or multi-source synthesis.Level 3a -- Jina Reader (cheap default for page reads): When Perplexity's summary is insufficient and you need word-for-word text from a specific page, default to Jina Reader BEFORE WebFetch. Returns clean markdown of any public URL with near-zero cost.
Usage:
curl -s https://r.jina.ai/<TARGET_URL>
xargs -P or similarLevel 3b -- WebFetch (only when Jina fails): Use only if Jina Reader returns empty/error, or if the target page is Cloudflare-protected or auth-walled and Jina can't pass. WebFetch is ~10-50x more expensive per page than Jina due to LLM-side processing. Log every WebFetch call with rationale.
Level 3c -- Chrome DevTools MCP snapshot (JS-rendered, local only):
For pages that need browser rendering (heavy JS, hydration, single-page apps), use mcp__plugin_chrome-devtools-mcp_chrome-devtools__take_snapshot. Returns accessibility tree (~10x smaller than full DOM). Local Claude Code sessions only -- not available in cloud routines.
Level 4 -- Scholar Gateway (for academic claims): For academic papers or research findings, use Scholar Gateway MCP if available. Structured results, no page scraping.
Level 5 -- Firecrawl scrape-to-FILE (persist full source; for large or long-lived research projects):
When you need the FULL text of many pages SAVED for later search and citation (not summarized into context), run q-system/.q-system/scripts/firecrawl-scrape.py <url> <output-dir>. It writes the page's full markdown (onlyMainContent) to a file, so the cascade can grep + cite thousands of sources without hitting context limits. Requires FIRECRAWL_API_KEY (env var ONLY; no committed secret). Fail-closed on an empty body (persists nothing). Use only when persistence beats a one-shot Perplexity/WebFetch answer.
If the source is a public marketing/blog/docs/news page, default to Jina (3a). Only escalate to WebFetch (3b) when Jina fails. Use chrome-devtools-mcp (3c) only when JS rendering is required AND you are in a local session. Log every WebFetch call to justify the cost.
{{VERIFY_URL}} if no link)Say "exit research mode" or switch to any other task.
Research mode is the runtime enforcement layer. It applies the cite-or-retract rule and the source-lookup cascade during a single session.
The broader pattern is documented at q-system/methodology/anti-hallucination.md. That doc covers:
Use research mode when you need runtime enforcement. Read the methodology doc when you need to understand why this skill exists and how it fits the rest of the system.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub assafkip/kipi-system --plugin kipi-core10 skills in this plugin
/architecture-reviewSurfaces architectural friction in real code — shallow modules, tight coupling, untested seams — and proposes deepening refactors using Ousterhout's deep-module principle (small interface hiding a large implementation). Use when the founder says 'architecture review', 'find shallow modules', 'architectural friction', 'deep module analysis', or asks for refactor recommendations on a directory of code. Scope it to actual code (plugins/, q-system/.q-system/scripts/) — not markdown rules, canonical files, or prose./audhd-executive-functionAUDHD executive function accommodations. Apply to all output the founder will act on./deck-aiGenerate modern presentation decks (PDF) from markdown content. Local open-source alternative to Gamma — uses Slidev for layouts and Unsplash for imagery. Invoke when the user asks to "make a deck", "build slides from this", or "turn this into a presentation"./founder-voiceFounder voice enforcement for all written output. Apply to any text another person will read./headline-engineeringPlatform-optimized headline and hook engineering for X (Twitter), Reddit, LinkedIn, Medium, Substack. Apply when writing or reviewing any title, tweet, thread opener, Reddit post title, or social hook intended for public publication. Triggers on "write a headline", "draft a tweet", "X thread", "Reddit post", "LinkedIn post", "Medium article", "make this hook stronger", "shorter title", "more clickable", "the title is too long", or any time a draft has a title that will be seen by people outside the company./improveCritique an outside idea (a pasted tip, post, transcript or video summary) against what this system already has. Use when the founder pastes something and asks whether to adopt it, or says 'improve', 'should we do this', 'compare this to what we have'. Grounded by scripts/improve_ground.py in the lessons corpora and named files; returns adopt, skip, or already-built, and NEVER decides what to build, sell or publish.Other plugins' skills for the same job