Skip to content

Commit 149cac8

Browse files
Optimize Agent Rules for Suspenders (#789)
Follow-up to #783. First, move the usage section into a dedicated README. Next, update commands to reflect what's actually supported with Suspenders and a new Rails application.
1 parent e5bbe37 commit 149cac8

2 files changed

Lines changed: 17 additions & 19 deletions

File tree

rails/ai-rules/CLAUDE.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,21 @@
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]
152

163
[One sentence: what the app does and who it serves.]
174

185
## Commands
196

207
```bash
21-
bin/rails server # Start dev server
8+
bin/dev # Start dev server and worker
229
bin/rails spec # Full test suite (Suspenders rake task)
2310
bundle exec rspec spec/models # Model specs only
2411
bundle exec rspec spec/requests # Request specs only
2512
bundle exec rspec spec/path/to/file_spec.rb # Run all tests in file
2613
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
2916
bin/rails db:migrate # Run migrations
30-
bin/rails suspenders:db:migrate # Migrate + annotate
31-
bin/rails suspenders:cleanup:organize_gemfile # Sort Gemfile
3217
bundle audit # Check gem vulnerabilities
18+
bin/ci # Run all tests, linters, and security scanners
3319
bin/rails routes # View routes
3420
```
3521

rails/ai-rules/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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/`

0 commit comments

Comments
 (0)