Claude Skill
thoughtbot/rails-audit-thoughtbot
thoughtbot开发的Claude Skill,用于对Ruby on Rails项目执行自动化代码审计,利用人工智能检测问题并提升代码质量。
概览
仓库信息
安装这个 Skill
git clone https://github.com/thoughtbot/rails-audit-thoughtbot ~/.claude/skills/rails-audit-thoughtbotRegistry 信息
项目简介
一个Claude Skill,用于对Ruby on Rails应用程序执行全面的代码审计,利用人工智能识别问题并提出改进建议。
Claude skill to run code audits
要点
- 为Rails项目自动执行代码审计
- 基于人工智能的问题检测与分析
- 与Claude AI集成实现智能审查
- 专注于Ruby on Rails最佳实践
- 为开发者简化审计工作流程
使用场景
- 审查Rails代码库中的安全漏洞
- 识别Rails应用程序中的性能瓶颈
- 确保遵循Rails编码标准
- 部署前的代码质量检查
- 重构遗留Rails项目
README 摘要
# Rails Audit Skill (thoughtbot Best Practices) A [Claude Code][claude-code] skill that performs comprehensive code audits of Ruby on Rails applications based on [thoughtbot's][thoughtbot] Ruby Science and Testing Rails best practices. [claude-code]: https://docs.anthropic.com/en/docs/claude-code [thoughtbot]: https://thoughtbot.com ## Quick links - **[Ruby Science][ruby-science]** - thoughtbot's guide to fixing code smells - **[Testing Rails][testing-rails]** - thoughtbot's guide to testing Rails applications - **[Rails Antipatterns][rails-antipatterns]** - Best practices for Ruby on Rails refactoring (Chad Pytel & Tammer Saleh) [ruby-science]: https://github.com/thoughtbot/ruby-science [testing-rails]: https://github.com/thoughtbot/testing-rails [rails-antipatterns]: https://www.informit.com/store/rails-antipatterns-best-practice-ruby-on-rails-refactoring-9780321604811 ## Table of contents - [Overview](#overview) - [Installation](#installation) - [Usage](#usage) - [Full application audit](#full-application-audit) - [Targeted audit](#targeted-audit) - [Optional data collection](#optional-data-collection) - [SimpleCov (test coverage)](#simplecov-test-coverage) - [RubyCritic (code quality)](#rubycritic-code-quality) - [Reference materials](#reference-materials) - [Contributing](#contributing) - [License](#license) - [About thoughtbot](#about-thoughtbot) ## Overview This skill analyses Rails applications and generates detailed audit reports covering: - Testing practices (RSpec) - Test coverage via [SimpleCov](#optional-data-collection) (optional) - Code quality metrics via [RubyCritic](#optional-data-collection) (optional) - Security vulnerabilities - Code design (skinny controllers, domain models, POROs with ActiveModel) - Rails conventions - Databas