Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 5 additions & 19 deletions rails/ai-rules/CLAUDE.md
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

Copy link
Copy Markdown
Contributor Author

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.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The 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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The 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
```

Expand Down
12 changes: 12 additions & 0 deletions rails/ai-rules/README.md
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/`
Loading