Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .cursor/rules/commit-changes-rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
description: Rules for commiting and pushing changes
globs:
alwaysApply: false
---
# Commit Changes Guidelines

When making changes to the codebase, follow these guidelines for committing your work:

## Analysis Process
1. Run `git --no-pager status` to see which files have changed
2. Run `git --no-pager diff` to see the actual changes in the code
3. Analyze the changes to understand the purpose and impact

## Commit Process
1. Review and stage your changes
2. Prepare a proper commit message (see format below)
3. Commit the changes
4. Push to remote repository

## Commit Message Format
- Title: One sentence summary (max 120 characters)
- Empty line
- Body: Bullet list of changes (with NO extra lines between bullet points)
- No additional text

## Example:
```
Add user authentication to login page

- Add password validation function
- Create JWT token generation
- Add error handling for invalid credentials
```

## Git Command Format
For creating commit messages with proper formatting, use one of these approaches:

### Method 1: Build commit message using separate echo commands
```
# Create commit message file line by line
echo "Your commit title" > /tmp/commit-msg.txt
echo "" >> /tmp/commit-msg.txt
echo "- First bullet point" >> /tmp/commit-msg.txt
echo "- Second bullet point" >> /tmp/commit-msg.txt
echo "- Third bullet point" >> /tmp/commit-msg.txt

# Commit using the file and clean up
git commit -F /tmp/commit-msg.txt && rm /tmp/commit-msg.txt
```

### Method 2: For simple commits, use the -m flag twice
```
git commit -m "Your commit title" -m "- First bullet point"
```
67 changes: 0 additions & 67 deletions .cursor/rules/conventional-commits.mdc

This file was deleted.

64 changes: 64 additions & 0 deletions .cursor/rules/pull-request-rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
description: Rules for creating and updating pull requests
globs:
alwaysApply: false
---
Rule Name: pull-request-rules
Description:
# Pull Request Guidelines

When creating or updating a pull request, follow these guidelines:

## Analysis Process
1. Run `git --no-pager status` to see which files have changed
2. Run `git --no-pager diff` to compare the current branch with main
3. Analyze the changes to understand the purpose and impact

## Pull Request Types

- `fix`: Patches a bug in your codebase (correlates with PATCH in Semantic Versioning)
- `feat`: Introduces a new feature to the codebase (correlates with MINOR in Semantic Versioning)
- `BREAKING CHANGE`: Introduces a breaking API change (correlates with MAJOR in Semantic Versioning)
- Other allowed types: `build:`, `chore:`, `ci:`, `docs:`, `style:`, `refactor:`, `perf:`, `test:`

## Specification Details

1. Title MUST be prefixed with a type, followed by an OPTIONAL scope, OPTIONAL !, and REQUIRED terminal colon and space
2. The type `feat` MUST be used when adding a new feature
3. The type `fix` MUST be used when fixing a bug
4. A scope MAY be provided after a type, surrounded by parenthesis (e.g., `fix(parser):`)

## Pull Request Format
- Title: One sentence summary (max 120 characters)
- Body:
- Bullet list of changes (with NO extra lines between bullet points)
- After the list, add a brief explanation of why this PR is needed
- Do NOT repeat the title in the body

## Example:
```
feat: Add user authentication to login page

Body:
- Add password validation function
- Create JWT token generation
- Add error handling for invalid credentials

This feature is necessary to secure user accounts and prevent unauthorized access to the application.
```

## PR Description Formatting
When creating a PR, ensure that:
- The title is not repeated in the body
- All bullet points are written without extra lines between them
- The body starts directly with bullet points (no introductory text)
- When using GitHub CLI, use `--body-file` instead of `--body` to avoid escape character issues
- Always create the PR body file in the `/tmp/` folder (e.g., `/tmp/pr-body.md`)
In GitHub or similar platforms, preview the PR description to verify there are no unwanted
line breaks between bullet points.

## Process
1. Analyze changes between main and current branch
2. Create PR title and bullet list description
3. Create new PR or update existing PR tied to current branch
4. Request review if needed
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ lerna-debug.log*
*.swo
.DS_Store

# mcp executable
mcp
mcp-config.json

# JetBrains IDE
.idea/

Expand Down