Frontmatter Diagnostics
Rule F8 →Valid Cursor .mdc frontmatter (2 glob pattern(s) parsed).
Live Glob Match Results
2 / 8 matchedsrc/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
よくある質問
Cursor .mdc で paths: を使うと無視されるのはなぜですか?
paths: は Claude Code 側のフロントマター仕様であり、Cursor の .mdc では globs: が必須です。AgentLint ルール F8 で自動検出できます。
フックコマンド内で $CLAUDE_FILE_PATHS をクォートすべき理由は?
空白やシェル特殊文字を含むファイルパスで単語分割やコマンドインジェクションが発生するのを防ぐため、必ずダブルクォートで囲む必要があります。