You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursor/rules/general.mdc
+24-11Lines changed: 24 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,36 @@ alwaysApply: true
8
8
9
9
- Name: @exercode/problem-utils
10
10
- Description: :100: A set of utilities for judging programs on Exercode (https://exercode.willbooster.com/).
11
-
- Package Manager: yarn
11
+
- Package Manager: yarn on zsh
12
12
13
-
## General Instructions
13
+
## Development Workflow
14
14
15
-
- Do not write tests unless explicitly requested.
16
-
- When fixing tests, gather debug information through logging and screenshots before modifying the code.
17
-
- After making code changes, run `yarn check-all-for-ai` to execute all tests (note: this may take up to 30 minutes), or run `yarn check-for-ai` for type checking and linting only.
18
-
- If you are confident your changes will not break any tests, you may use `check-for-ai`.
19
-
- Once you have verified your changes, commit them to the non-main branch using the `--no-verify` option and push to the current branch.
20
-
- Follow conventional commits, i.e., your commit message should start with `feat:`, `fix:`, etc.
21
-
- Make sure to add a new line at the end of your commit message with: `Co-authored-by: WillBooster (Cursor) <agent@willbooster.com>`.
22
-
- Always create new commits. Avoid using `--amend`.
15
+
When changing code, complete these steps before responding to the user.
16
+
17
+
1. If the current branch is `main`, create a new branch.
18
+
- Include unexpected changes since they are mine.
19
+
2. Make code changes as needed.
20
+
3. If possible, write e2e tests for your changes.
21
+
4. Fix your changes until `yarn check-all-for-ai` (running all tests, taking 30 mins) or `yarn check-for-ai` (only type checking and linting) passes.
22
+
- If you are confident your changes will not break any tests, you may use `check-for-ai`.
23
+
5. Commit your changes to the current branch and push.
24
+
- Follow conventional commits, i.e., your commit message should start with `feat:`, `fix:`, `test:`, etc.
25
+
- Make sure to add a new line at the end of your commit message with: `Co-authored-by: WillBooster (Cursor) <agent@willbooster.com>`.
26
+
- When pre-commit hooks prevent your changes, fix your code, then re-commit and re-push.
27
+
6. Create a pull request using `gh`.
28
+
- The pull request title should match your commit message.
29
+
7. Repeat the following steps until the test workflow passes:
30
+
1. Monitor the CI results using the following command until the test workflow completes (timeout should be 30 mins).
31
+
- `while :; do gh run list -b "$(git branch --show-current)" --json status,conclusion | jq -e '.[] | select(.conclusion=="failure")' && exit 1; gh run list -b "$(git branch --show-current)" --json status | jq -e '.[] | select(.status=="completed" | not)' || exit 0; sleep 1m; done`
32
+
2. If tests fail, identify the root causes by gathering debug information through logging and screenshots, then fix the code and/or tests.
33
+
3. Fetch unresolved review comments from the pull request using the following command. Address them and then mark them as resolved.
Copy file name to clipboardExpand all lines: AGENTS.md
+24-11Lines changed: 24 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,23 +2,36 @@
2
2
3
3
- Name: @exercode/problem-utils
4
4
- Description: :100: A set of utilities for judging programs on Exercode (https://exercode.willbooster.com/).
5
-
- Package Manager: yarn
5
+
- Package Manager: yarn on zsh
6
6
7
-
## General Instructions
7
+
## Development Workflow
8
8
9
-
- Do not write tests unless explicitly requested.
10
-
- When fixing tests, gather debug information through logging and screenshots before modifying the code.
11
-
- After making code changes, run `yarn check-all-for-ai` to execute all tests (note: this may take up to 30 minutes), or run `yarn check-for-ai` for type checking and linting only.
12
-
- If you are confident your changes will not break any tests, you may use `check-for-ai`.
13
-
- Once you have verified your changes, commit them to the non-main branch using the `--no-verify` option and push to the current branch.
14
-
- Follow conventional commits, i.e., your commit message should start with `feat:`, `fix:`, etc.
15
-
- Make sure to add a new line at the end of your commit message with: `Co-authored-by: WillBooster (Codex CLI) <agent@willbooster.com>`.
16
-
- Always create new commits. Avoid using `--amend`.
9
+
When changing code, complete these steps before responding to the user.
10
+
11
+
1. If the current branch is `main`, create a new branch.
12
+
- Include unexpected changes since they are mine.
13
+
2. Make code changes as needed.
14
+
3. If possible, write e2e tests for your changes.
15
+
4. Fix your changes until `yarn check-all-for-ai` (running all tests, taking 30 mins) or `yarn check-for-ai` (only type checking and linting) passes.
16
+
- If you are confident your changes will not break any tests, you may use `check-for-ai`.
17
+
5. Commit your changes to the current branch and push.
18
+
- Follow conventional commits, i.e., your commit message should start with `feat:`, `fix:`, `test:`, etc.
19
+
- Make sure to add a new line at the end of your commit message with: `Co-authored-by: WillBooster (Codex CLI) <agent@willbooster.com>`.
20
+
- When pre-commit hooks prevent your changes, fix your code, then re-commit and re-push.
21
+
6. Create a pull request using `gh`.
22
+
- The pull request title should match your commit message.
23
+
7. Repeat the following steps until the test workflow passes:
24
+
1. Monitor the CI results using the following command until the test workflow completes (timeout should be 30 mins).
25
+
-`while :; do gh run list -b "$(git branch --show-current)" --json status,conclusion | jq -e '.[] | select(.conclusion=="failure")' && exit 1; gh run list -b "$(git branch --show-current)" --json status | jq -e '.[] | select(.status=="completed" | not)' || exit 0; sleep 1m; done`
26
+
2. If tests fail, identify the root causes by gathering debug information through logging and screenshots, then fix the code and/or tests.
27
+
3. Fetch unresolved review comments from the pull request using the following command. Address them and then mark them as resolved.
Copy file name to clipboardExpand all lines: CLAUDE.md
+24-11Lines changed: 24 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,23 +2,36 @@
2
2
3
3
- Name: @exercode/problem-utils
4
4
- Description: :100: A set of utilities for judging programs on Exercode (https://exercode.willbooster.com/).
5
-
- Package Manager: yarn
5
+
- Package Manager: yarn on zsh
6
6
7
-
## General Instructions
7
+
## Development Workflow
8
8
9
-
- Do not write tests unless explicitly requested.
10
-
- When fixing tests, gather debug information through logging and screenshots before modifying the code.
11
-
- After making code changes, run `yarn check-all-for-ai` to execute all tests (note: this may take up to 30 minutes), or run `yarn check-for-ai` for type checking and linting only.
12
-
- If you are confident your changes will not break any tests, you may use `check-for-ai`.
13
-
- Once you have verified your changes, commit them to the non-main branch using the `--no-verify` option and push to the current branch.
14
-
- Follow conventional commits, i.e., your commit message should start with `feat:`, `fix:`, etc.
15
-
- Make sure to add a new line at the end of your commit message with: `Co-authored-by: WillBooster (Claude Code) <agent@willbooster.com>`.
16
-
- Always create new commits. Avoid using `--amend`.
9
+
When changing code, complete these steps before responding to the user.
10
+
11
+
1. If the current branch is `main`, create a new branch.
12
+
- Include unexpected changes since they are mine.
13
+
2. Make code changes as needed.
14
+
3. If possible, write e2e tests for your changes.
15
+
4. Fix your changes until `yarn check-all-for-ai` (running all tests, taking 30 mins) or `yarn check-for-ai` (only type checking and linting) passes.
16
+
- If you are confident your changes will not break any tests, you may use `check-for-ai`.
17
+
5. Commit your changes to the current branch and push.
18
+
- Follow conventional commits, i.e., your commit message should start with `feat:`, `fix:`, `test:`, etc.
19
+
- Make sure to add a new line at the end of your commit message with: `Co-authored-by: WillBooster (Claude Code) <agent@willbooster.com>`.
20
+
- When pre-commit hooks prevent your changes, fix your code, then re-commit and re-push.
21
+
6. Create a pull request using `gh`.
22
+
- The pull request title should match your commit message.
23
+
7. Repeat the following steps until the test workflow passes:
24
+
1. Monitor the CI results using the following command until the test workflow completes (timeout should be 30 mins).
25
+
-`while :; do gh run list -b "$(git branch --show-current)" --json status,conclusion | jq -e '.[] | select(.conclusion=="failure")' && exit 1; gh run list -b "$(git branch --show-current)" --json status | jq -e '.[] | select(.status=="completed" | not)' || exit 0; sleep 1m; done`
26
+
2. If tests fail, identify the root causes by gathering debug information through logging and screenshots, then fix the code and/or tests.
27
+
3. Fetch unresolved review comments from the pull request using the following command. Address them and then mark them as resolved.
Copy file name to clipboardExpand all lines: GEMINI.md
+24-11Lines changed: 24 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,23 +2,36 @@
2
2
3
3
- Name: @exercode/problem-utils
4
4
- Description: :100: A set of utilities for judging programs on Exercode (https://exercode.willbooster.com/).
5
-
- Package Manager: yarn
5
+
- Package Manager: yarn on zsh
6
6
7
-
## General Instructions
7
+
## Development Workflow
8
8
9
-
- Do not write tests unless explicitly requested.
10
-
- When fixing tests, gather debug information through logging and screenshots before modifying the code.
11
-
- After making code changes, run `yarn check-all-for-ai` to execute all tests (note: this may take up to 30 minutes), or run `yarn check-for-ai` for type checking and linting only.
12
-
- If you are confident your changes will not break any tests, you may use `check-for-ai`.
13
-
- Once you have verified your changes, commit them to the non-main branch using the `--no-verify` option and push to the current branch.
14
-
- Follow conventional commits, i.e., your commit message should start with `feat:`, `fix:`, etc.
15
-
- Make sure to add a new line at the end of your commit message with: `Co-authored-by: WillBooster (Gemini CLI) <agent@willbooster.com>`.
16
-
- Always create new commits. Avoid using `--amend`.
9
+
When changing code, complete these steps before responding to the user.
10
+
11
+
1. If the current branch is `main`, create a new branch.
12
+
- Include unexpected changes since they are mine.
13
+
2. Make code changes as needed.
14
+
3. If possible, write e2e tests for your changes.
15
+
4. Fix your changes until `yarn check-all-for-ai` (running all tests, taking 30 mins) or `yarn check-for-ai` (only type checking and linting) passes.
16
+
- If you are confident your changes will not break any tests, you may use `check-for-ai`.
17
+
5. Commit your changes to the current branch and push.
18
+
- Follow conventional commits, i.e., your commit message should start with `feat:`, `fix:`, `test:`, etc.
19
+
- Make sure to add a new line at the end of your commit message with: `Co-authored-by: WillBooster (Gemini CLI) <agent@willbooster.com>`.
20
+
- When pre-commit hooks prevent your changes, fix your code, then re-commit and re-push.
21
+
6. Create a pull request using `gh`.
22
+
- The pull request title should match your commit message.
23
+
7. Repeat the following steps until the test workflow passes:
24
+
1. Monitor the CI results using the following command until the test workflow completes (timeout should be 30 mins).
25
+
-`while :; do gh run list -b "$(git branch --show-current)" --json status,conclusion | jq -e '.[] | select(.conclusion=="failure")' && exit 1; gh run list -b "$(git branch --show-current)" --json status | jq -e '.[] | select(.status=="completed" | not)' || exit 0; sleep 1m; done`
26
+
2. If tests fail, identify the root causes by gathering debug information through logging and screenshots, then fix the code and/or tests.
27
+
3. Fetch unresolved review comments from the pull request using the following command. Address them and then mark them as resolved.
0 commit comments