Skip to content

Commit 9e54ec9

Browse files
chore: willboosterify this repo
1 parent d7b1d2d commit 9e54ec9

File tree

6 files changed

+494
-478
lines changed

6 files changed

+494
-478
lines changed

.cursor/rules/general.mdc

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,29 @@ alwaysApply: true
1010
- Description: :100: A set of utilities for judging programs on Exercode (https://exercode.willbooster.com/).
1111
- Package Manager: yarn
1212

13-
## General Instructions
13+
## Development Workflow
1414

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. 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.
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. Wait and check the CI results using `gh` until the test workflow completes.
31+
2. If tests fail, identify the root causes by gathering debug information through logging and screenshots, then fix the code and/or tests.
32+
3. Fetch unresolved review comments from the pull request using `gh` and address them.
33+
- e.g., `gh api graphql -f query='{ repository(owner: "WillBooster", name: "exercode-problem-utils") { pullRequest(number: 24) { reviewThreads(first: 100) { nodes { isResolved comments(first: 100) { nodes { body author { login } path line } } } } } } }' | jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)'`
34+
4. Commit your changes and push.
35+
5. Write `/gemini review` in the pull request.
2336

2437
## Coding Style
2538

AGENTS.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,29 @@
44
- Description: :100: A set of utilities for judging programs on Exercode (https://exercode.willbooster.com/).
55
- Package Manager: yarn
66

7-
## General Instructions
7+
## Development Workflow
88

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. 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.
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. Wait and check the CI results using `gh` until the test workflow completes.
25+
2. If tests fail, identify the root causes by gathering debug information through logging and screenshots, then fix the code and/or tests.
26+
3. Fetch unresolved review comments from the pull request using `gh` and address them.
27+
- e.g., `gh api graphql -f query='{ repository(owner: "WillBooster", name: "exercode-problem-utils") { pullRequest(number: 24) { reviewThreads(first: 100) { nodes { isResolved comments(first: 100) { nodes { body author { login } path line } } } } } } }' | jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)'`
28+
4. Commit your changes and push.
29+
5. Write `/gemini review` in the pull request.
1730

1831
## Coding Style
1932

CLAUDE.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,29 @@
44
- Description: :100: A set of utilities for judging programs on Exercode (https://exercode.willbooster.com/).
55
- Package Manager: yarn
66

7-
## General Instructions
7+
## Development Workflow
88

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. 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.
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. Wait and check the CI results using `gh` until the test workflow completes.
25+
2. If tests fail, identify the root causes by gathering debug information through logging and screenshots, then fix the code and/or tests.
26+
3. Fetch unresolved review comments from the pull request using `gh` and address them.
27+
- e.g., `gh api graphql -f query='{ repository(owner: "WillBooster", name: "exercode-problem-utils") { pullRequest(number: 24) { reviewThreads(first: 100) { nodes { isResolved comments(first: 100) { nodes { body author { login } path line } } } } } } }' | jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)'`
28+
4. Commit your changes and push.
29+
5. Write `/gemini review` in the pull request.
1730

1831
## Coding Style
1932

GEMINI.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,29 @@
44
- Description: :100: A set of utilities for judging programs on Exercode (https://exercode.willbooster.com/).
55
- Package Manager: yarn
66

7-
## General Instructions
7+
## Development Workflow
88

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. 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.
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. Wait and check the CI results using `gh` until the test workflow completes.
25+
2. If tests fail, identify the root causes by gathering debug information through logging and screenshots, then fix the code and/or tests.
26+
3. Fetch unresolved review comments from the pull request using `gh` and address them.
27+
- e.g., `gh api graphql -f query='{ repository(owner: "WillBooster", name: "exercode-problem-utils") { pullRequest(number: 24) { reviewThreads(first: 100) { nodes { isResolved comments(first: 100) { nodes { body author { login } path line } } } } } } }' | jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)'`
28+
4. Commit your changes and push.
29+
5. Write `/gemini review` in the pull request.
1730

1831
## Coding Style
1932

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"scripts": {
3333
"build": "build-ts lib --input src/index.ts src/presets/*.ts",
3434
"check-all-for-ai": "yarn check-for-ai && yarn test",
35-
"check-for-ai": "yarn install > /dev/null && yarn format > /dev/null 2> /dev/null || true && yarn lint-fix --quiet && yarn typecheck",
35+
"check-for-ai": "yarn install > /dev/null && yarn format > /dev/null 2> /dev/null || true && yarn typecheck && yarn lint-fix --quiet",
3636
"cleanup": "yarn format && yarn lint-fix",
3737
"format": "sort-package-json && yarn prettify",
3838
"postinstall": "husky || true",
@@ -60,7 +60,7 @@
6060
"@willbooster/prettier-config": "10.2.4",
6161
"build-ts": "17.0.9",
6262
"conventional-changelog-conventionalcommits": "9.1.0",
63-
"eslint": "9.39.1",
63+
"eslint": "9.39.2",
6464
"eslint-config-flat-gitignore": "2.1.0",
6565
"eslint-config-prettier": "10.1.8",
6666
"eslint-import-resolver-typescript": "4.4.4",
@@ -77,9 +77,9 @@
7777
"prettier": "3.7.4",
7878
"prettier-plugin-java": "2.7.7",
7979
"semantic-release": "25.0.2",
80-
"sort-package-json": "3.6.0",
80+
"sort-package-json": "3.5.0",
8181
"typescript": "5.9.3",
82-
"typescript-eslint": "8.49.0",
82+
"typescript-eslint": "8.50.0",
8383
"vitest": "4.0.15"
8484
},
8585
"packageManager": "yarn@4.12.0",

0 commit comments

Comments
 (0)