|
1 | | -# thoughtbot project architecture and coding standards for Rails development using agents |
2 | | - |
3 | | -See the folder `rules` for language-specific guidelines, testing conventions, |
4 | | -and other standards. |
5 | | - |
6 | | -> **Usage:** |
7 | | -> |
8 | | -> 1. Copy the content of this file. |
9 | | -> 2. Create a new file in the root of your project called `.claude/CLAUDE.md`. |
10 | | -> 3. Update the information in the new file to match your project. |
11 | | -> 4. Paste the content of this file into the new file. |
12 | | -> 5. Copy the rules folder into `.claude/` |
13 | | -
|
14 | | -## Project: [APP_NAME] |
| 1 | +# Project: [APP_NAME] |
15 | 2 |
|
16 | 3 | [One sentence: what the app does and who it serves.] |
17 | 4 |
|
18 | 5 | ## Commands |
19 | 6 |
|
20 | 7 | ```bash |
21 | | -bin/rails server # Start dev server |
| 8 | +bin/dev # Start dev server and worker |
22 | 9 | bin/rails spec # Full test suite (Suspenders rake task) |
23 | 10 | bundle exec rspec spec/models # Model specs only |
24 | 11 | bundle exec rspec spec/requests # Request specs only |
25 | 12 | bundle exec rspec spec/path/to/file_spec.rb # Run all tests in file |
26 | 13 | bundle exec rspec spec/path/to/file_spec.rb:72 # Run just the test at line 72 |
27 | | -bundle exec rake standard # Lint |
28 | | -bundle exec rake standard:fix # Auto-fix lint issues |
| 14 | +bundle exec rubocop # Lint |
| 15 | +bundle exec rubocop -a # Auto-fix lint issues |
29 | 16 | bin/rails db:migrate # Run migrations |
30 | | -bin/rails suspenders:db:migrate # Migrate + annotate |
31 | | -bin/rails suspenders:cleanup:organize_gemfile # Sort Gemfile |
32 | 17 | bundle audit # Check gem vulnerabilities |
| 18 | +bin/ci # Run all tests, linters, and security scanners |
33 | 19 | bin/rails routes # View routes |
34 | 20 | ``` |
35 | 21 |
|
|
0 commit comments