-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Optimize Agent Rules for Suspenders #789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,35 +1,21 @@ | ||
| # thoughtbot project architecture and coding standards for Rails development using agents | ||
|
|
||
| See the folder `rules` for language-specific guidelines, testing conventions, | ||
| and other standards. | ||
|
|
||
| > **Usage:** | ||
| > | ||
| > 1. Copy the content of this file. | ||
| > 2. Create a new file in the root of your project called `.claude/CLAUDE.md`. | ||
| > 3. Update the information in the new file to match your project. | ||
| > 4. Paste the content of this file into the new file. | ||
| > 5. Copy the rules folder into `.claude/` | ||
|
|
||
| ## Project: [APP_NAME] | ||
| # Project: [APP_NAME] | ||
|
|
||
| [One sentence: what the app does and who it serves.] | ||
|
|
||
| ## Commands | ||
|
|
||
| ```bash | ||
| bin/rails server # Start dev server | ||
| bin/dev # Start dev server and worker | ||
| bin/rails spec # Full test suite (Suspenders rake task) | ||
| bundle exec rspec spec/models # Model specs only | ||
| bundle exec rspec spec/requests # Request specs only | ||
| bundle exec rspec spec/path/to/file_spec.rb # Run all tests in file | ||
| bundle exec rspec spec/path/to/file_spec.rb:72 # Run just the test at line 72 | ||
| bundle exec rake standard # Lint | ||
| bundle exec rake standard:fix # Auto-fix lint issues | ||
|
Comment on lines
-27
to
-28
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These commands aren't supported on new Rails applications. |
||
| bundle exec rubocop # Lint | ||
| bundle exec rubocop -a # Auto-fix lint issues | ||
| bin/rails db:migrate # Run migrations | ||
| bin/rails suspenders:db:migrate # Migrate + annotate | ||
| bin/rails suspenders:cleanup:organize_gemfile # Sort Gemfile | ||
|
Comment on lines
-30
to
-31
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These commands no longer exist. |
||
| bundle audit # Check gem vulnerabilities | ||
| bin/ci # Run all tests, linters, and security scanners | ||
| bin/rails routes # View routes | ||
| ``` | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # thoughtbot project architecture and coding standards for Rails development using agents | ||
|
|
||
| See the folder `rules` for language-specific guidelines, testing conventions, | ||
| and other standards. | ||
|
|
||
| > **Usage:** | ||
| > | ||
| > 1. Copy the content of this file. | ||
| > 2. Create a new file in the root of your project called `.claude/CLAUDE.md`. | ||
| > 3. Update the information in the new file to match your project. | ||
| > 4. Paste the content of this file into the new file. | ||
| > 5. Copy the rules folder into `.claude/` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is an improvement since background jobs are supported with this command.