Claude Code fact-check for JavaScript Docs and Example Outputs
Use fact-check before publishing a JavaScript tutorial. It checks code outputs, compares technical claims against MDN or ECMAScript, and reviews external references. It helps find incorrect output comments, browser behavior presented as a language rule, and unsupported compatibility claims.
中文Install in Claude Code
Claude Code and a 33 JavaScript Concepts checkout containing the skill. A JavaScript runtime is needed to run examples or project tests, and a network connection is needed to verify online references.
- Open a 33 JavaScript Concepts checkout containing the pinned source. Confirm `.claude/skills/fact-check/SKILL.md` exists under the project root.
- Start Claude Code at the project root, enter `/fact-check`, and provide the Markdown file path to audit.
Example task
Create `array-example.md` in your practice checkout with `const x = [2, 4]; x.map(n => n * 2); console.log(x); // [4, 8]`. Ask: ‘/fact-check Audit the output comment in array-example.md and suggest a correction.’What to check
The report should identify `[2, 4]` as the output because `map` returns a new array. It should suggest fixing the comment or assigning the result of `map` to a variable and printing it.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should I check the references after the example tests pass?
Local tests confirm output in the current environment. Cross-check language rules and behavior across environments against MDN or ECMAScript, particularly for browser compatibility and edge cases.