From b058f8ff979599d29f21e9dd0f0b0b666aa12a68 Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Wed, 16 Jul 2025 00:38:11 +0900 Subject: [PATCH 1/2] chore(rules): Configure AI agent rules and cross-tool compatibility - Add alwaysApply and inclusion fields to base.md frontmatter - Create symlinks for Cursor (.cursor/rules/base.mdc) and Kiro (.kiro/steering/base.md) - Update .gitignore to allow .cursor/rules/ directory - Enable rule sharing across multiple AI coding assistants - Fix trailing whitespace in base.md --- .agents/rules/base.md | 4 +++- .cursor/rules/base.mdc | 1 + .gitignore | 1 - .kiro/steering/base.md | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) create mode 120000 .cursor/rules/base.mdc create mode 120000 .kiro/steering/base.md diff --git a/.agents/rules/base.md b/.agents/rules/base.md index 161ba35b4..fa8858130 100644 --- a/.agents/rules/base.md +++ b/.agents/rules/base.md @@ -1,5 +1,7 @@ --- description: Core project guidelines for the Repomix codebase. Apply these rules when working on any code, documentation, or configuration files within the Repomix project. +alwaysApply: true +inclusion: always --- # Repomix Project Structure and Overview @@ -90,7 +92,7 @@ repomix/ - [ ] Run `npm run lint` ``` - Include a clear summary of the changes at the top of the pull request description -- Reference any related issues using the format `#issue-number` +- Reference any related issues using the format `#issue-number` ## PR Review Guidelines When reviewing pull requests, provide thoughtful feedback on: diff --git a/.cursor/rules/base.mdc b/.cursor/rules/base.mdc new file mode 120000 index 000000000..f47ed5333 --- /dev/null +++ b/.cursor/rules/base.mdc @@ -0,0 +1 @@ +../../.agents/rules/base.md \ No newline at end of file diff --git a/.gitignore b/.gitignore index e11026aee..92785a3bd 100644 --- a/.gitignore +++ b/.gitignore @@ -43,7 +43,6 @@ repomix-output.md .repomix/ # Agent -.cursor/rules/ .mcp.json .agents/local/ diff --git a/.kiro/steering/base.md b/.kiro/steering/base.md new file mode 120000 index 000000000..f47ed5333 --- /dev/null +++ b/.kiro/steering/base.md @@ -0,0 +1 @@ +../../.agents/rules/base.md \ No newline at end of file From 8f0b74b206e6cff25cc5277a0167bfac25763026 Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Wed, 16 Jul 2025 00:48:24 +0900 Subject: [PATCH 2/2] feat(rules): Add feature-based architecture guideline and reorganize Claude commands - Add guideline to maintain feature-based directory structure and avoid cross-feature dependencies - Reorganize .claude/commands/ files into categorized subdirectories: - agent/ for AI agent-related commands - code/ for code quality commands - git/ for git workflow commands - Translate gemini-discuss.md and lint-fix.md to English - Improve code organization and maintainability guidelines --- .agents/rules/base.md | 1 + .claude/commands/{ => agent}/claude-rule-update.md | 0 .claude/commands/agent/gemini-discuss.md | 11 +++++++++++ .claude/commands/code/lint-fix.md | 2 ++ .claude/commands/{ => git}/git-commit-push.md | 0 .claude/commands/{ => git}/git-commit.md | 0 .claude/commands/{ => git}/pr-create.md | 0 .claude/commands/{ => git}/pr-review-request.md | 0 .claude/commands/{ => git}/pr-review.md | 0 9 files changed, 14 insertions(+) rename .claude/commands/{ => agent}/claude-rule-update.md (100%) create mode 100644 .claude/commands/agent/gemini-discuss.md create mode 100644 .claude/commands/code/lint-fix.md rename .claude/commands/{ => git}/git-commit-push.md (100%) rename .claude/commands/{ => git}/git-commit.md (100%) rename .claude/commands/{ => git}/pr-create.md (100%) rename .claude/commands/{ => git}/pr-review-request.md (100%) rename .claude/commands/{ => git}/pr-review.md (100%) diff --git a/.agents/rules/base.md b/.agents/rules/base.md index fa8858130..9c364f391 100644 --- a/.agents/rules/base.md +++ b/.agents/rules/base.md @@ -48,6 +48,7 @@ repomix/ # Coding Guidelines - Follow the Airbnb JavaScript Style Guide. +- Always maintain feature-based directory structure and avoid dependencies between features. - Split files into smaller, focused units when appropriate: - Aim to keep code files under 250 lines. If a file exceeds 250 lines, split it into multiple files based on functionality. - Add comments to clarify non-obvious logic. **Ensure all comments are written in English.** diff --git a/.claude/commands/claude-rule-update.md b/.claude/commands/agent/claude-rule-update.md similarity index 100% rename from .claude/commands/claude-rule-update.md rename to .claude/commands/agent/claude-rule-update.md diff --git a/.claude/commands/agent/gemini-discuss.md b/.claude/commands/agent/gemini-discuss.md new file mode 100644 index 000000000..94fa58ed8 --- /dev/null +++ b/.claude/commands/agent/gemini-discuss.md @@ -0,0 +1,11 @@ +# Discussion with Gemini + +Conduct detailed discussions about current work and use Gemini CLI to improve Claude Code's accuracy through multi-faceted analysis and iterative improvements. + +First, organize the discussion topics and start the discussion with Gemini using the following command: + +``` +gemini -p "" +``` + +Based on Gemini's responses, conduct in-depth discussions and follow-up questions, ultimately creating an actionable plan. diff --git a/.claude/commands/code/lint-fix.md b/.claude/commands/code/lint-fix.md new file mode 100644 index 000000000..6af93c7b0 --- /dev/null +++ b/.claude/commands/code/lint-fix.md @@ -0,0 +1,2 @@ +Run `npm run lint` and fix any errors that occur. + diff --git a/.claude/commands/git-commit-push.md b/.claude/commands/git/git-commit-push.md similarity index 100% rename from .claude/commands/git-commit-push.md rename to .claude/commands/git/git-commit-push.md diff --git a/.claude/commands/git-commit.md b/.claude/commands/git/git-commit.md similarity index 100% rename from .claude/commands/git-commit.md rename to .claude/commands/git/git-commit.md diff --git a/.claude/commands/pr-create.md b/.claude/commands/git/pr-create.md similarity index 100% rename from .claude/commands/pr-create.md rename to .claude/commands/git/pr-create.md diff --git a/.claude/commands/pr-review-request.md b/.claude/commands/git/pr-review-request.md similarity index 100% rename from .claude/commands/pr-review-request.md rename to .claude/commands/git/pr-review-request.md diff --git a/.claude/commands/pr-review.md b/.claude/commands/git/pr-review.md similarity index 100% rename from .claude/commands/pr-review.md rename to .claude/commands/git/pr-review.md