Version-specific example:
Claim: "React 18 introduces automatic batching for all updates"
Verification: Query Context7 with topic="batching" for React 18 docs
Result: Confirmed - React 18 automatically batches state updates inside promises, setTimeout, and native event handlers
</example>
Threshold: Flag claims with confidence below 80
</example>
Web standards: WebSearch with domain filters
MDN Web Docs: developer.mozilla.org
W3C: w3.org
WHATWG: html.spec.whatwg.org
OWASP: owasp.org
</example>
1---2name: fact-check-83description: This skill should be used when the user asks to "verify claims", "fact check", "validate documentation", "check sources", or needs verification of external source references. Provides patterns for systematic fact verification using Context7 and WebSearch.4---56<purpose>7 Provide patterns for systematic fact-checking of claims against authoritative external sources using Context7 MCP and WebSearch tools.8</purpose>910<tools>11 <tool name="resolve-library-id">12 <description>Resolve package name to Context7-compatible library ID</description>13 <param name="libraryName">Library name to search for</param>14 <use_case>Must call before get-library-docs for library documentation claims</use_case>15 </tool>1617 <tool name="get-library-docs">18 <description>Fetch documentation for a specific library to verify claims</description>19 <param name="context7CompatibleLibraryID">Library ID from resolve-library-id</param>20 <param name="topic">Specific topic to verify</param>21 <param name="tokens">Max tokens to retrieve (default: 5000)</param>22 <use_case>Verify claims about library APIs, behavior, and best practices</use_case>23 </tool>2425 <tool name="WebSearch">26 <description>Search web for verification of general claims</description>27 <param name="query">Search query for verification</param>28 <use_case>Verify claims about standards, specifications, and general technical facts</use_case>29 </tool>3031 <tool name="WebFetch">32 <description>Fetch specific URL content for verification</description>33 <param name="url">URL to fetch</param>34 <param name="prompt">Extraction prompt for relevant content</param>35 <use_case>Verify claims against specific documentation pages or specifications</use_case>36 </tool>37</tools>3839<workflow>40 <phase name="extract">41 <objective>Identify verifiable claims from content</objective>42 <step>1. Scan content for claims referencing external sources</step>43 <step>2. Classify claims by type (library API, documentation, standard, specification)</step>44 <step>3. Prioritize claims by impact and verifiability</step>45 </phase>46 <phase name="verify">47 <objective>Verify each claim against authoritative sources</objective>48 <step>1. Select appropriate verification source (Context7 for libraries, WebSearch for general)</step>49 <step>2. Query source for relevant information</step>50 <step>3. Compare claim against retrieved evidence</step>51 <step>4. Calculate verification confidence (0-100)</step>52 </phase>53 <phase name="synthesize">54 <objective>Generate verification report</objective>55 <step>1. Compile verified claims with evidence</step>56 <step>2. Flag claims with confidence below 80</step>57 <step>3. Document unverifiable claims</step>58 </phase>59</workflow>6061<error_escalation>62 <level severity="low">63 <example>Claim cannot be verified due to missing documentation</example>64 <action>Note in report as unverifiable, proceed</action>65 </level>66 <level severity="medium">67 <example>Conflicting information from different sources</example>68 <action>Document discrepancy, use AskUserQuestion for clarification</action>69 </level>70 <level severity="high">71 <example>Claim directly contradicts authoritative source</example>72 <action>STOP, flag discrepancy to user with evidence</action>73 </level>74 <level severity="critical">75 <example>Security-related claim is incorrect</example>76 <action>BLOCK operation, require explicit user acknowledgment</action>77 </level>78</error_escalation>7980<patterns>81 <pattern name="claim_extraction">82 <description>Identify claims that reference external sources for verification</description>83 <decision_tree name="when_to_use">84 <question>Does the content reference external documentation or standards?</question>85 <if_yes>Apply claim extraction to identify verifiable assertions</if_yes>86 <if_no>No fact-checking needed for this content</if_no>87 </decision_tree>88 <example>89 Claim types to extract:90 Library API claims: "useState returns a tuple"91 Documentation references: "according to the React docs"92 Standard compliance: "follows WCAG 2.1 AA"93 Version-specific behavior: "in React 18, Suspense..."94 Performance claims: "O(log n) complexity per MDN"9596 Version-specific example:97 Claim: "React 18 introduces automatic batching for all updates"98 Verification: Query Context7 with topic="batching" for React 18 docs99 Result: Confirmed - React 18 automatically batches state updates inside promises, setTimeout, and native event handlers100 </example>101 </pattern>102103 <pattern name="source_selection">104 <description>Choose appropriate verification source based on claim type</description>105 <decision_tree name="when_to_use">106 <question>What type of claim needs verification?</question>107 <branch condition="Library/framework API">Use Context7 with resolve-library-id then get-library-docs</branch>108 <branch condition="Web standard/specification">Use WebSearch for official specification</branch>109 <branch condition="General technical fact">Use WebSearch with authoritative domain filter</branch>110 <branch condition="Specific documentation URL">Use WebFetch to retrieve and verify</branch>111 </decision_tree>112 <example>113 Source priority:114 Context7 for library documentation (trust score 7+)115 WebFetch for specific URLs cited in claims116 WebSearch for general technical claims117 Mark as unverifiable if no source available118 </example>119 </pattern>120121 <pattern name="confidence_assessment">122 <description>Calculate verification confidence based on evidence quality</description>123 <decision_tree name="when_to_use">124 <question>Has verification evidence been collected?</question>125 <if_yes>Apply confidence assessment to rate verification quality</if_yes>126 <if_no>Continue evidence collection before assessment</if_no>127 </decision_tree>128 <example>129 Confidence levels:130 90-100: Exact match with authoritative source131 80-89: Strong match with minor wording differences132 70-79: Partial match, some details unverified133 60-69: Weak match, significant uncertainty134 0-59: No match or contradictory evidence135136 Threshold: Flag claims with confidence below 80137 </example>138 </pattern>139140 <pattern name="discrepancy_reporting">141 <description>Format and report verification failures with evidence</description>142 <decision_tree name="when_to_use">143 <question>Is the verification confidence below 80?</question>144 <if_yes>Apply discrepancy reporting to document the issue</if_yes>145 <if_no>Mark claim as verified</if_no>146 </decision_tree>147 <example>148 Discrepancy report format:149 Claim: Original assertion made150 Source: Where claim was made151 Verification source: Context7/WebSearch result152 Evidence: Actual information from source153 Confidence: 0-100 score154 Recommendation: Suggested correction or note155 </example>156 </pattern>157</patterns>158159<concepts>160 <concept name="verification_sources">161 <description>Authoritative sources for different claim types</description>162 <example>163 Library documentation: Context7 MCP164 React: /facebook/react165 Next.js: /vercel/next.js166 TypeScript: /microsoft/typescript167 NixOS: /nixos/nixpkgs168169 Web standards: WebSearch with domain filters170 MDN Web Docs: developer.mozilla.org171 W3C: w3.org172 WHATWG: html.spec.whatwg.org173 OWASP: owasp.org174 </example>175 </concept>176177 <concept name="claim_types">178 <description>Categories of verifiable claims</description>179 <example>180 API behavior: Function signatures, return types, parameters181 Configuration: Config options, default values, valid settings182 Best practices: Recommended patterns from official docs183 Deprecation: API deprecation status and alternatives184 Compatibility: Version compatibility and requirements185 Performance: Complexity claims, benchmark references186 Security: Security recommendations and vulnerability info187 </example>188 </concept>189190 <concept name="confidence_thresholds">191 <description>Confidence score interpretation</description>192 <example>193 80+: Verified - Claim matches authoritative source194 60-79: Uncertain - Partial verification, review recommended195 Below 60: Disputed - Claim contradicts or unsupported by source196 Unverifiable: No authoritative source available197 </example>198 </concept>199</concepts>200201<best_practices>202 <practice priority="critical">Use Context7 as primary source for library documentation claims</practice>203 <practice priority="critical">Flag all claims with verification confidence below 80</practice>204 <practice priority="critical">Document evidence source for each verification</practice>205 <practice priority="high">Prefer libraries with Context7 trust score 7+ for verification</practice>206 <practice priority="high">Use WebSearch fallback when Context7 unavailable</practice>207 <practice priority="medium">Include direct quotes from sources as evidence</practice>208 <practice priority="medium">Note when verification source has version mismatch</practice>209</best_practices>210211<anti_patterns>212 <avoid name="assumption_verification">213 <description>Marking claims as verified without actual source check</description>214 <instead>Always query Context7 or WebSearch for evidence before marking verified</instead>215 </avoid>216217 <avoid name="single_source_reliance">218 <description>Relying on only one source for disputed claims</description>219 <instead>Cross-reference with multiple sources when confidence is borderline (70-85)</instead>220 </avoid>221222 <avoid name="ignoring_version_context">223 <description>Verifying claims without considering version differences</description>224 <instead>Note version context and verify against appropriate documentation version</instead>225 </avoid>226227 <avoid name="over_verification">228 <description>Attempting to verify every statement including obvious facts</description>229 <instead>Focus on claims referencing external sources, APIs, and specifications</instead>230 </avoid>231</anti_patterns>232233<rules priority="critical">234 <rule>Always verify claims against authoritative sources before flagging</rule>235 <rule>Use Context7 as primary source for library and framework claims</rule>236 <rule>Flag claims with confidence below 80 in fact check results</rule>237 <rule>Document evidence source for every verification</rule>238</rules>239240<rules priority="standard">241 <rule>Use WebSearch as fallback when Context7 unavailable</rule>242 <rule>Prefer official documentation over third-party sources</rule>243 <rule>Note version context when verifying version-specific claims</rule>244 <rule>Cross-reference disputed claims with multiple sources</rule>245</rules>246247<constraints>248 <must>Query authoritative sources before verification</must>249 <must>Document evidence for all verification results</must>250 <must>Flag discrepancies with confidence scores</must>251 <avoid>Marking claims verified without source check</avoid>252 <avoid>Verifying claims based on assumption or memory</avoid>253 <avoid>Ignoring version context in verification</avoid>254</constraints>255256<related_agents>257 <agent name="fact-check">Primary agent using this skill for verification</agent>258 <agent name="quality-assurance">Uses fact-check for documentation accuracy</agent>259 <agent name="docs">Uses fact-check to verify documentation claims</agent>260</related_agents>261262<related_skills>263 <skill name="context7-usage">Core tool for library documentation verification</skill>264 <skill name="investigation-patterns">Evidence collection methodology</skill>265 <skill name="technical-documentation">Documentation accuracy standards</skill>266</related_skills>