Repository navigation
Load Cursor rules in Claude Code (.claude/rules) - #40
Merged
Merged
Conversation
Mirror .cursor/rules/*.mdc with wp-dev-kit sync-rules: alwaysApply -> .claude/rules, globs -> .claude/rules with paths:, description-only -> .claude/skills. CLAUDE.md drops the @.cursor/rules imports and table now that Claude loads .claude/rules automatically. wp-review comes from ~/.claude/rules (wp-dev-kit) instead of a per-repo copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: abffbcf7-7e9c-48d4-9e68-b231897e72c5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Claude Code now auto-loads this repo's rules.
.cursor/rules/*.mdcstays the source of truth (Cursor unchanged); wp-dev-kitsync-rulesmirrors them into Claude Code's native layout:alwaysApply→.claude/rules/*.md(every session)globs→.claude/rules/*.mdwithpaths:(loaded when Claude works on matching files; before, they were only listed in a table).claude/skills/<name>/SKILL.md(loaded when the task matches)3 rules and 0 skills.
wp-reviewnow comes from~/.claude/rules(wp-dev-kit, matthummel-pa/wp-dev-kit#2), so it isn't loaded twice. Zip packaging already excludes.claude/.Docs: https://code.claude.com/docs/en/memory.md
How to test
sync-rules --check→ in sync/memory: the rules are listedChecklist
.claude/excluded from the theme/plugin zip🤖 Generated with Claude Code
Note
Low Risk
Documentation and agent-only config; no application code or user-facing behavior changes.
Overview
Adds Claude Code–native rule loading by committing three mirrored rule files under
.claude/rules/(brand typography, Gutenberg block conventions, WordPress.org Plugin Directory policy). Each file is generated from the existing.cursor/rules/*.mdcsources via wp-dev-kitsync-rulesand is marked as such in the header.CLAUDE.mdnow documents that Cursor.mdcfiles remain the source of truth and that edits should flow throughsync-rulesinto.claude/rules/for automatic session loading. No plugin runtime, PHP, JS, or CSS changes.Reviewed by Cursor Bugbot for commit 044e362. Configure here.