Skip to content

chore(docs): remove Cursor rules support - #443

Merged
kazupon merged 1 commit into
kazupon:mainfrom
ryoppippi:chore/remove-cursor-rules-support
Dec 18, 2025
Merged

kazupon merged 1 commit into
kazupon:mainfrom
ryoppippi:chore/remove-cursor-rules-support

Conversation

@ryoppippi

@ryoppippi ryoppippi commented Dec 18, 2025 •

Copy link
Copy Markdown
Contributor

Summary

Remove Cursor editor integration from the @gunshi/docs package.

Why

Cursor can now read CLAUDE.md and Claude Code skills directly, making separate Cursor rules configuration redundant. This simplifies the LLM-assisted development setup by maintaining only the Claude Code skills as the single source of truth.
SCR-20251218-lpvy

What Changed

  • Remove Cursor/cursor-agent detection in init.js
  • Remove .cursor/rules symlink/file creation logic
  • Remove Windows-specific handling for Cursor rules
  • Update setup.md to reference only Claude Code
  • Update v0.27 release notes to remove Cursor mentions

Summary by CodeRabbit

Release Notes

  • Documentation
    • Streamlined setup documentation and automatic installation process
    • Updated guides to focus exclusively on Claude Code integration
    • Simplified manual configuration instructions for faster onboarding

✏️ Tip: You can customize this high-level summary in your review settings.

Remove Cursor editor integration from the @gunshi/docs package.
Cursor can now read CLAUDE.md and Claude Code skills directly,
making separate Cursor rules configuration redundant.

Changes:
- Remove Cursor/cursor-agent detection in init.js
- Remove .cursor/rules symlink/file creation logic
- Remove Windows-specific handling for Cursor rules
- Update setup.md to reference only Claude Code
- Update v0.27 release notes to remove Cursor mentions
@coderabbitai

coderabbitai Bot commented Dec 18, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

The PR removes Cursor integration from the CLI initialization script, setup documentation, and release notes. The init process simplifies to handle Claude Code skills only, with conditional CLAUDE.md updates based on Gunshi presence. All Cursor configuration and setup guidance references are removed.

Changes

Cohort / File(s) Summary
CLI initialization logic
packages/docs/bin/init.js
Removed multi-command presence checks and Cursor setup code, including CURSOR_RULES_PATH constant and Windows/POSIX file handling. Simplified flow: create Claude skill, conditionally append Gunshi instructions to CLAUDE.md (if not already present), skip Cursor duplication logic.
Setup documentation
packages/docs/src/guide/introduction/setup.md
Removed all Cursor integration references from LLM-Assisted Development section. Consolidated Automatic Setup to single sentence on Claude Code skills. Removed Cursor configuration guidance from Manual Setup. Updated configuration reference to CLAUDE.md only.
Release notes
packages/docs/src/release/v0.27.md
Removed mention of Cursor rules setup and .cursor/rules/use-gunshi-cli.mdc file path from @gunshi/docs package description. Updated package reference to Claude Code only.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Verify completeness of Cursor reference removal across all three files
  • Confirm CLAUDE.md conditional logic (hasGunshiInstruction check) functions correctly
  • Review release notes for accuracy and consistency with actual implementation changes
  • Ensure no orphaned Cursor-related constants or file paths remain in codebase

Possibly related PRs

  • feat(docs): init cli #422: Original PR that introduced Cursor integration to the same CLI bootstrap and setup documentation, now being reversed by this change.

Suggested reviewers

  • kazupon

Poem

🐰 Hop! We've simplified our CLI,
No more Cursor rules to apply,
Claude Code skills shine bright,
Gunshi instructions set right,
One true path, streamlined and spry! ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: removing Cursor rules support from the codebase, which aligns with the primary objective of eliminating Cursor editor integration across three key files.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fdc9273 and 6ff8e06.

📒 Files selected for processing (3)
  • packages/docs/bin/init.js (2 hunks)
  • packages/docs/src/guide/introduction/setup.md (3 hunks)
  • packages/docs/src/release/v0.27.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
packages/docs/**/*

📄 CodeRabbit inference engine (CLAUDE.md)

Update documentation when adding new features or changing APIs in the documentation site at packages/docs/

Files:

  • packages/docs/src/guide/introduction/setup.md
  • packages/docs/src/release/v0.27.md
  • packages/docs/bin/init.js
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

Code style must be enforced by ESLint and Prettier; run pnpm fix to auto-fix issues

Files:

  • packages/docs/bin/init.js
🧠 Learnings (1)
📚 Learning: 2025-12-11T17:01:43.864Z
Learnt from: CR
Repo: kazupon/gunshi PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-12-11T17:01:43.864Z
Learning: Applies to packages/gunshi/src/utils.ts : Runtime-specific utilities must be implemented in `packages/gunshi/src/utils.ts` for Node.js, Deno, and Bun compatibility

Applied to files:

  • packages/docs/bin/init.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Test on Node.js 20
🔇 Additional comments (5)
packages/docs/src/release/v0.27.md (1)

185-195: LGTM - Clean removal of Cursor references.

The documentation now correctly describes the package as supporting Claude Code only, which aligns with the PR objective that Cursor can now read CLAUDE.md and Claude Code skills directly.

packages/docs/src/guide/introduction/setup.md (1)

34-99: LGTM - Documentation consolidated to Claude Code only.

The setup documentation now provides a streamlined experience focused solely on Claude Code integration, which simplifies the setup process for users.

packages/docs/bin/init.js (3)

44-46: Claude Code detection is Unix-focused but safely handled.

The which command is Unix-specific and may not work on Windows, but the error handling (throwOnError: false and .catch()) ensures it defaults to false gracefully. This means Windows users won't get automatic CLAUDE.md updates, but the skill file will still be created successfully.


78-97: LGTM - Robust CLAUDE.md update logic.

The logic correctly handles all cases: existing file with/without Gunshi instructions, new file creation, and skipping when instructions already exist. Good use of hasGunshiInstruction helper to prevent duplication.


99-132: LGTM - Clear and user-friendly installation flow.

The interactive prompt correctly installs gunshi as a production dependency and @gunshi/docs as a dev dependency, with appropriate error handling and fallback instructions.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new

pkg-pr-new Bot commented Dec 18, 2025

Copy link
Copy Markdown

Open in StackBlitz

@gunshi/bone

npm i https://pkg.pr.new/@gunshi/bone@443

@gunshi/definition

npm i https://pkg.pr.new/@gunshi/definition@443

@gunshi/docs

npm i https://pkg.pr.new/@gunshi/docs@443

gunshi

npm i https://pkg.pr.new/gunshi@443

@gunshi/plugin

npm i https://pkg.pr.new/@gunshi/plugin@443

@gunshi/plugin-completion

npm i https://pkg.pr.new/@gunshi/plugin-completion@443

@gunshi/plugin-dryrun

npm i https://pkg.pr.new/@gunshi/plugin-dryrun@443

@gunshi/plugin-global

npm i https://pkg.pr.new/@gunshi/plugin-global@443

@gunshi/plugin-i18n

npm i https://pkg.pr.new/@gunshi/plugin-i18n@443

@gunshi/plugin-renderer

npm i https://pkg.pr.new/@gunshi/plugin-renderer@443

@gunshi/resources

npm i https://pkg.pr.new/@gunshi/resources@443

@gunshi/shared

npm i https://pkg.pr.new/@gunshi/shared@443

commit: 6ff8e06

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/docs/bin/init.js (1)

70-76: Cross-platform issue: mkdir -p fails on Windows.

The mkdir -p command is Unix-specific and will fail on Windows (cmd.exe doesn't recognize the -p flag). This prevents Windows users from using the init script.

🔎 Apply this diff to use Node.js built-in mkdir for cross-platform compatibility:
-await x('mkdir', ['-p', path.dirname(CLAUDE_SKILL_PATH)])
+await fs.mkdir(path.dirname(CLAUDE_SKILL_PATH), { recursive: true })
 await fs.writeFile(CLAUDE_SKILL_PATH, SKILL_CONTENT, 'utf8')
 console.log(`Created Claude skill at ${CLAUDE_SKILL_PATH}`)
📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fdc9273 and 6ff8e06.

📒 Files selected for processing (3)
  • packages/docs/bin/init.js (2 hunks)
  • packages/docs/src/guide/introduction/setup.md (3 hunks)
  • packages/docs/src/release/v0.27.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
packages/docs/**/*

📄 CodeRabbit inference engine (CLAUDE.md)

Update documentation when adding new features or changing APIs in the documentation site at packages/docs/

Files:

  • packages/docs/src/guide/introduction/setup.md
  • packages/docs/src/release/v0.27.md
  • packages/docs/bin/init.js
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

Code style must be enforced by ESLint and Prettier; run pnpm fix to auto-fix issues

Files:

  • packages/docs/bin/init.js
🧠 Learnings (1)
📚 Learning: 2025-12-11T17:01:43.864Z
Learnt from: CR
Repo: kazupon/gunshi PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-12-11T17:01:43.864Z
Learning: Applies to packages/gunshi/src/utils.ts : Runtime-specific utilities must be implemented in `packages/gunshi/src/utils.ts` for Node.js, Deno, and Bun compatibility

Applied to files:

  • packages/docs/bin/init.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Test on Node.js 20
🔇 Additional comments (5)
packages/docs/src/release/v0.27.md (1)

185-195: LGTM - Clean removal of Cursor references.

The documentation now correctly describes the package as supporting Claude Code only, which aligns with the PR objective that Cursor can now read CLAUDE.md and Claude Code skills directly.

packages/docs/src/guide/introduction/setup.md (1)

34-99: LGTM - Documentation consolidated to Claude Code only.

The setup documentation now provides a streamlined experience focused solely on Claude Code integration, which simplifies the setup process for users.

packages/docs/bin/init.js (3)

44-46: Claude Code detection is Unix-focused but safely handled.

The which command is Unix-specific and may not work on Windows, but the error handling (throwOnError: false and .catch()) ensures it defaults to false gracefully. This means Windows users won't get automatic CLAUDE.md updates, but the skill file will still be created successfully.


78-97: LGTM - Robust CLAUDE.md update logic.

The logic correctly handles all cases: existing file with/without Gunshi instructions, new file creation, and skipping when instructions already exist. Good use of hasGunshiInstruction helper to prevent duplication.


99-132: LGTM - Clear and user-friendly installation flow.

The interactive prompt correctly installs gunshi as a production dependency and @gunshi/docs as a dev dependency, with appropriate error handling and fallback instructions.

@kazupon kazupon added the improvement Includes backwards-compatible fixes label Dec 18, 2025

@kazupon kazupon left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
LGTM!

@kazupon
kazupon merged commit d06626a into kazupon:main Dec 18, 2025
9 checks passed
@ryoppippi
ryoppippi deleted the chore/remove-cursor-rules-support branch December 18, 2025 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Includes backwards-compatible fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants