Skip to content

chore(config): Move commands to .agents directory and add symlinks#826

Merged
yamadashy merged 1 commit intomainfrom
chore/agents-commands
Sep 9, 2025
Merged

chore(config): Move commands to .agents directory and add symlinks#826
yamadashy merged 1 commit intomainfrom
chore/agents-commands

Conversation

@yamadashy
Copy link
Owner

This PR moves all command files from .claude/commands to .agents/commands to standardize the agents directory structure and improve organization.

Changes

  • Moved all command files from .claude/commands/ to .agents/commands/
  • Added symlinks in .claude/commands and .cursor/commands pointing to .agents/commands
  • Maintains backward compatibility for existing tooling that expects commands in .claude/commands

This change aligns with the project's move towards using the .agents/ directory as the standard location for AI agent-related configuration and commands.

Checklist

  • Run npm run test
  • Run npm run lint

Moved all command files from .claude/commands to .agents/commands to
standardize the agents directory structure. Added symlinks in .claude/commands
and .cursor/commands to maintain backward compatibility.
Copilot AI review requested due to automatic review settings September 9, 2025 12:45
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 9, 2025

Walkthrough

Adds two new command pointer files for AI/tooling configurations: .claude/commands and .cursor/commands. Both reference ../.agents/commands, with .cursor/commands containing that path as its single line. No executable logic or public API changes.

Changes

Cohort / File(s) Summary
Tooling command pointers
\.claude/commands, \.cursor/commands
Added files pointing to ../.agents/commands; .cursor/commands contains a single line with that path. No code or API changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Pre-merge checks (3 passed)

✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed The title clearly and concisely summarizes the primary change by indicating the relocation of command files to .agents and the addition of symlinks, aligning with the PR’s main objective and using conventional commit formatting.
Description Check ✅ Passed The description provides a clear summary of the changes, enumerates the specific moves and symlink additions under a dedicated “## Changes” section, and includes the required “## Checklist” with both test and lint steps marked complete, satisfying the repository’s template requirements.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/agents-commands

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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reorganizes the project's AI agent configuration by moving command files from .claude/commands to .agents/commands and creating symlinks for backward compatibility.

Key Changes

  • Standardizes AI agent configuration under the .agents/ directory
  • Creates symlinks in .claude/commands and .cursor/commands pointing to the new location
  • Maintains backward compatibility for existing tooling

Reviewed Changes

Copilot reviewed 2 out of 10 changed files in this pull request and generated no comments.

File Description
.cursor/commands Creates symlink to standardized .agents/commands directory
.claude/commands Creates symlink to standardized .agents/commands directory

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @yamadashy, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refactors the project's command file organization by migrating them to a new, centralized directory. The primary goal is to standardize the location for AI agent-related commands, ensuring a consistent and scalable structure while maintaining full compatibility for existing workflows through strategic use of symlinks.

Highlights

  • Directory Structure Standardization: All command files have been moved from the legacy .claude/commands directory to the new, standardized .agents/commands directory. This centralizes AI agent-related configurations.
  • Backward Compatibility: Symlinks have been created in the original .claude/commands and .cursor/commands locations, pointing to the new .agents/commands directory. This ensures that existing tooling continues to function without disruption.
  • Improved Organization: The change aligns with the project's goal of using .agents/ as the primary location for all AI agent-related assets, improving overall project organization and maintainability.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request aims to reorganize command files into the .agents directory and maintain backward compatibility using symlinks. However, the implementation for the symlinks appears to be incorrect. Instead of creating symbolic links, the changes add regular text files containing the target path. This will likely break any tooling that expects .claude/commands and .cursor/commands to be directories. My review includes critical feedback on how to fix this by creating proper symlinks that Git can track.

@cloudflare-workers-and-pages
Copy link

Deploying repomix with  Cloudflare Pages  Cloudflare Pages

Latest commit: 695fedf
Status: ✅  Deploy successful!
Preview URL: https://3245f50c.repomix.pages.dev
Branch Preview URL: https://chore-agents-commands.repomix.pages.dev

View logs

@codecov
Copy link

codecov bot commented Sep 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.36%. Comparing base (aa114b4) to head (695fedf).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #826   +/-   ##
=======================================
  Coverage   87.36%   87.36%           
=======================================
  Files         113      113           
  Lines        6626     6626           
  Branches     1372     1372           
=======================================
  Hits         5789     5789           
  Misses        837      837           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yamadashy yamadashy merged commit 4eba854 into main Sep 9, 2025
47 of 48 checks passed
@yamadashy yamadashy deleted the chore/agents-commands branch September 9, 2025 12:50
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
.claude/commands (1)

1-1: Symlink configuration verified
Both .claude/commands and .cursor/commands are committed as mode 120000 symlinks pointing to ../.agents/commands, and the target directory exists.
Optional: add a note in CONTRIBUTING.md about enabling symlinks on Windows to avoid tooling breakage.

.cursor/commands (1)

1-1: Windows devs may need guidance for symlinks.

On Windows, symlinks can require Developer Mode or elevated perms; otherwise Git may check out a plain file. Consider adding a short note in CONTRIBUTING.md about enabling symlinks or providing a fallback.

I can draft a brief CONTRIBUTING snippet covering Git core.symlinks and Windows Developer Mode if helpful.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between aa114b4 and 695fedf.

📒 Files selected for processing (2)
  • .claude/commands (1 hunks)
  • .cursor/commands (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-07-18T15:12:57.179Z
Learnt from: CR
PR: yamadashy/repomix#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T15:12:57.179Z
Learning: .agents/rules/base.md

Applied to files:

  • .claude/commands
  • .cursor/commands
⏰ 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). (2)
  • GitHub Check: Test with Bun (windows-latest, latest)
  • GitHub Check: Build and run (windows-latest, 22.x)
🔇 Additional comments (2)
.cursor/commands (2)

1-1: Relative path looks correct from .cursor to .agents.

../.agents/commands correctly resolves from .cursor/commands to the repo-level .agents/commands directory.


1-1: Symlinks correctly configured
Both .cursor/commands and .claude/commands are Git-mode 120000 symlinks to ../.agents/commands, and the target exists as a directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants