Cursor .mdc Globs (F8) + Claude Code Hooks (H1 / H2 / H4) · 100% Browser-Local

    Cursor .mdc Glob Tester & Claude Hook Validator.

    Two silent failures break AI coding rules every day: Cursor .mdc files using paths: instead of globs: (or broken glob syntax), and .claude/settings.json hooks with misspelled PascalCase event names. Test and auto-fix both live in your browser.

    Frontmatter Diagnostics

    Rule F8 →
    Valid Cursor .mdc frontmatter (2 glob pattern(s) parsed).

    Live Glob Match Results

    2 / 8 matched
    src/api/orders.tsmatched src/api/**/*.{ts,tsx}
    src/api/orders.test.tsexcluded by !src/api/**/*.test.ts
    src/api/webhooks/stripe.tsxmatched src/api/**/*.{ts,tsx}
    src/components/Button.tsxno match
    src/lib/linter.tsno match
    packages/shared/types.tsno match
    docs/architecture.mdno match
    .github/workflows/ci.ymlno match

    Frequently Asked Questions

    Why does Cursor ignore my .cursor/rules/*.mdc file when I use paths: in frontmatter?

    Claude Code .claude/rules/*.md files use paths: frontmatter, whereas Cursor .cursor/rules/*.mdc files require globs:. Cursor silently ignores paths:, leaving your rule detached. AgentLint rule F8 catches this automatically.

    Which glob operators work in Cursor .mdc globs?

    Standard workspace-relative patterns including * (single segment), ** (recursive directories), ? (single char), {ts,tsx} brace alternation, and ! negation patterns to exclude test or generated files.

    Why didn't my Claude Code hook fire when I wrote preToolUse or BeforeToolUse?

    Claude Code matches exact PascalCase event keys (PreToolUse, PostToolUse, Stop, SessionStart, UserPromptSubmit, etc.) and silently ignores unknown keys. Always validate .claude/settings.json and quote $CLAUDE_FILE_PATHS in shell commands.

    58-Check Online Linter →Cursor Globs Error Guide →Claude Hook Error Guide →