Curated library of 42 public AI agent skills for Ruby on Rails development, plus 5 callable workflow skills. Organized by category: planning, testing, code-quality, ddd, engines, infrastructure, api, patterns, context, orchestration, and workflows. Covers code review, architecture, security, testing (RSpec), engines, service objects, DDD patterns, and TDD automation.
96
96%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Risky
Do not use without reviewing
# spec/graphql/mutations/create_order_spec.rb
RSpec.describe "Mutations::CreateOrder" do
let(:user) { create(:user) }
let(:product) { create(:product, stock: 5) }
let(:query) do
<<~GQL
mutation CreateOrder($productId: ID!, $quantity: Int!) {
createOrder(input: { productId: $productId, quantity: $quantity }) {
order { id }
errors
}
}
GQL
end
subject(:result) do
AppSchema.execute(query, variables: { productId: product.id, quantity: 1 },
context: { current_user: user })
end
it "creates an order" do
expect(result.dig("data", "createOrder", "errors")).to be_empty
expect(result.dig("data", "createOrder", "order", "id")).to be_present
end
context "when unauthenticated" do
subject(:result) { AppSchema.execute(query, variables: { productId: product.id, quantity: 1 }) }
it "returns an authorization error" do
expect(result["errors"]).not_to be_empty
end
end
endCall AppSchema.execute directly in GraphQL specs. Do not route these checks through controller/request dispatch when the behavior under test is schema, resolver, authorization, or mutation response shape.
| Test type | Suggested path |
|---|---|
| Query resolvers | spec/graphql/queries/..._spec.rb |
| Mutations | spec/graphql/mutations/..._spec.rb |
| Types | spec/graphql/types/..._spec.rb (only if type has custom logic) |
| Resolver objects | spec/graphql/resolvers/..._spec.rb |
build
docs
mcp_server
skills
api
generate-api-collection
implement-graphql
code-quality
apply-code-conventions
apply-stack-conventions
assets
snippets
code-review
refactor-code
respond-to-review
review-architecture
security-check
context
load-context
setup-environment
ddd
define-domain-language
model-domain
review-domain-boundaries
engines
create-engine
create-engine-installer
document-engine
extract-engine
release-engine
review-engine
test-engine
upgrade-engine
infrastructure
implement-background-job
implement-hotwire
optimize-performance
review-migration
seed-database
version-api
orchestration
skill-router
patterns
create-service-object
implement-calculator-pattern
write-yard-docs
planning
create-prd
generate-tasks
plan-tickets
testing
plan-tests
test-service
triage-bug
write-tests
workflows