/asser-toolkit:self-check [text to check, or empty to check last AI response]from asser-toolkit
Verify AI output for hallucinations using MARCH-inspired multi-agent checking with information asymmetry
Ships in asser-toolkit. 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.
Core mechanism:
Usage:
/self-check — check the last AI response in this conversation/self-check <text> — check the specific text providedOutput: Structured verification report with per-claim verdicts and corrections. This skill is entirely read-only. It never creates, modifies, or deletes any files.
Target text: $ARGUMENTS (if provided), otherwise the last substantive AI response in conversation.Claim categories (optimized for code/technical context):
Verdicts:
Parse $ARGUMENTS:
If $ARGUMENTS is non-empty: use it as the target text to verify.
Display: SELF-CHECK > Checking provided text...
If $ARGUMENTS is empty: the target text is the last substantive AI response in the
current conversation — the most recent assistant message containing factual content
(not a simple acknowledgment or question).
Display: SELF-CHECK > Checking last AI response...
If the resolved target text is under 50 characters or contains no apparent factual claims:
SELF-CHECK > Target text is too short or contains no verifiable claims. Nothing to check.
Stop here.
Otherwise, store as TARGET_TEXT and continue.
Display: SELF-CHECK > [1/3] Decomposing into atomic claims...
Spawn an Agent (general-purpose) with the following prompt. Insert TARGET_TEXT into the
<target_text> block:
You are a Claim Proposer. Your sole job is to decompose text into atomic, independently
verifiable factual claims.
<target_text>
{TARGET_TEXT}
</target_text>
Extract every factual claim from the text above. Each claim MUST be:
- **ATOMIC**: exactly one verifiable fact per claim. Never compound two facts with "and".
- **SELF-CONTAINED**: fully understandable without the original text. Someone reading ONLY
this claim must understand what is being asserted.
- **SPECIFIC**: include concrete details — file paths, function names, values, behaviors.
For each claim, assign:
1. **Category** (exactly one):
FILE_REFERENCE | SYMBOL_EXISTENCE | CODE_BEHAVIOR | API_LIBRARY |
NUMERICAL | CONFIGURATION | RELATIONSHIP | GENERAL_FACT
2. **Verifiability** (exactly one):
- codebase: can be checked by reading project files
- documentation: needs external docs or library knowledge
- runtime: needs code execution to verify
- subjective: opinion or preference, not factual
3. **Source hint**: which part of the original text this came from (brief, for debugging only)
OUTPUT FORMAT (use this exact structure, nothing else):
CLAIMS_START
### Claim 1
- Category: {CATEGORY}
- Claim: {the atomic claim, fully self-contained}
- Verifiability: {codebase|documentation|runtime|subjective}
- Source hint: {brief pointer}
### Claim 2
...
CLAIMS_END
Total: {N} claims extracted
Rules:
- Do NOT extract opinions, suggestions, or recommendations as claims.
- Do NOT extract hedged statements ("might", "could", "possibly") as claims.
- DO extract statements presented as facts, even if qualified with "typically" or "usually".
- If the text contains more than 30 concrete claims, extract the 30 most specific ones
and note how many were omitted.
- Make each claim readable by someone who has NEVER seen the original text.
Wait for the Proposer to return. Parse the output to extract the structured claims list.
Display: SELF-CHECK > [2/3] Extracted {N} claims. Running independent verification...
If 0 claims were extracted:
SELF-CHECK > No verifiable factual claims found. Nothing to check.
Stop here.
Construct the Checker prompt using ONLY the claims extracted in Step 1.
The Checker prompt MUST NOT contain:
Extract from the Proposer output ONLY: claim number, category, claim text, and verifiability. Discard everything else before constructing the Checker prompt.
Spawn an Agent (general-purpose) with the following prompt. Insert the stripped claims list
into the <claims> block:
You are an Independent Claim Checker. You receive a list of factual claims with no other
context. Your job is to verify each one using the tools available to you.
RULES:
- You have NO context about where these claims came from. Do not guess or speculate about
the source.
- Treat each claim as an isolated assertion to be tested independently.
- Do NOT assume claims are true. Do NOT assume claims are false. Investigate each one.
- Absence of contradicting evidence is NOT confirmation. That is UNCERTAIN, not VERIFIED.
- You MUST provide concrete evidence for every VERIFIED or INCORRECT verdict.
TOOLS AND WHEN TO USE THEM:
- Glob: check if files/directories exist at claimed paths
- Grep: search for symbols, patterns, imports, config values across the codebase
- Read: examine specific files to verify content or logic claims
- Bash: run read-only commands (ls, wc -l, find, etc.) for counting or measuring.
Do NOT execute project code or tests.
VERIFICATION STRATEGY BY CATEGORY:
FILE_REFERENCE:
Glob for the path. If found, Read if content claims are involved.
If not found, try Glob with wildcards in case the path is slightly off.
SYMBOL_EXISTENCE:
Grep for the definition (function, class, export, const, def, type, interface).
Verify the signature/name matches exactly what is claimed.
CODE_BEHAVIOR:
Read the actual source file. Trace the logic manually — check conditionals,
return statements, error paths, loops. Do NOT guess from the function name.
API_LIBRARY:
Check package.json / requirements.txt / go.mod for presence and version.
For API behavior, use your knowledge but always flag confidence (high/medium/low).
NUMERICAL:
Use Bash to count (grep -c, wc -l, find | wc -l). Compare to claimed number.
Allow a small margin for off-by-one.
CONFIGURATION:
Read config files, .env.example, documentation. Grep source for default values.
RELATIONSHIP:
Grep for import/require/from statements. Read both ends of the claimed relationship
to confirm the dependency direction.
GENERAL_FACT:
Use your knowledge. ALWAYS flag confidence level (high/medium/low).
If confidence is below 80%, the verdict MUST be UNCERTAIN, not VERIFIED.
<claims>
{STRIPPED CLAIMS LIST — claim number, category, claim text, verifiability ONLY}
</claims>
OUTPUT FORMAT (use this exact structure):
RESULTS_START
### Claim 1: {brief claim summary}
- Verdict: {VERIFIED|INCORRECT|UNCERTAIN|UNVERIFIABLE|SUBJECTIVE}
- Evidence: {specific evidence — file paths read, grep results, line numbers, reasoning}
- Correction: {ONLY if INCORRECT — what is actually true, with evidence}
- Confidence: {high|medium|low — required for documentation/GENERAL_FACT verdicts}
### Claim 2: {brief claim summary}
...
RESULTS_END
SUMMARY:
- VERIFIED: {n}
- INCORRECT: {n}
- UNCERTAIN: {n}
- UNVERIFIABLE: {n}
- SUBJECTIVE: {n}
- Accuracy: {VERIFIED}/{VERIFIED + INCORRECT} verified out of falsifiable claims
Wait for the Checker to complete.
Display: SELF-CHECK > [3/3] Compiling report...
Merge the Proposer and Checker outputs into a final report:
## Self-Check Report
**Method:** MARCH-inspired information-asymmetric verification
**Claims extracted:** {total}
**Verified:** {n} | **Incorrect:** {n} | **Uncertain:** {n} | **Unverifiable:** {n} | **Subjective:** {n}
**Accuracy:** {VERIFIED}/{VERIFIED + INCORRECT} ({percentage}%)
### Results
| # | Verdict | Category | Claim Summary |
|---|---------|----------|---------------|
| 1 | V | FILE_REF | ... |
| 2 | X | CODE_BHV | ... |
...
Legend: V=Verified X=Incorrect ?=Uncertain --=Unverifiable ~=Subjective
If any INCORRECT claims exist, add:
### Corrections
**Claim {n}: {claim summary}**
- Stated: {the incorrect claim}
- Actually: {what is true, with evidence from Checker}
**Claim {m}: ...**
Final assessment:
Overall: High factual accuracy. Minor issues noted above (if any).Overall: Moderate accuracy. Review the corrections above.Overall: Significant factual issues detected. Do not rely on the checked output without corrections.Overall: No falsifiable claims found — content is primarily subjective or unverifiable.Information Asymmetry is the core mechanism. The Checker agent NEVER sees the original AI output. It receives only self-contained claim statements extracted by the Proposer. This prevents confirmation bias where a verifier subconsciously seeks to confirm what was already stated.
The orchestrator (this skill) enforces asymmetry in Step 2 by constructing the Checker prompt from the claims list only — deliberately excluding TARGET_TEXT and source hints.
Zero Tolerance principle: a single INCORRECT claim should be surfaced prominently. The accuracy metric counts only VERIFIED vs INCORRECT (falsifiable claims), excluding UNCERTAIN/UNVERIFIABLE/SUBJECTIVE from the denominator.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (asserhong/asser-toolkit) — no native marketplace selected
npx claudepluginhub p/asserhong-asser-toolkit4 skills in this plugin
/excalidraw-diagram-generatorGenerate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw./index-repoGenerate universal LLM index files for efficient AI-assisted codebase navigation across all major tools (Claude Code, Codex, Copilot, Cursor, Windsurf, Gemini CLI)/skill-storeBrowse, search, and install community skills from alirezarezvani/claude-skills. Use when you need new capabilities like engineering workflows, marketing automation, project management, compliance frameworks, or any specialized agent skill.