rails-knowledge-patch
Rails 8.0–8.1 changes — Solid Queue/Cache/Cable (no Redis), Kamal 2 deployment, Propshaft, authentication generator, Turbo 8 morphing, params.expect, job continuations, structured events. Load before working with Rails.
What this skill does
# Ruby on Rails Knowledge Patch
Covers Rails 8.0–8.1 changes. Training cutoff: Rails 7.1, Ruby 3.3.
## Index
| Topic | Reference | Key features |
|---|---|---|
| Rails 8.0 architecture | [references/rails-8-architecture.md](references/rails-8-architecture.md) | Solid Queue/Cache/Cable, Kamal 2, Propshaft, auth generator, Turbo morphing |
| Active Record queries & schema | [references/active-record-queries.md](references/active-record-queries.md) | params.expect, pluck hash, UPDATE with JOIN, first/last deprecation, schema sorting |
| Active Record columns & serialization | [references/active-record-columns.md](references/active-record-columns.md) | only_columns, update_column touch, serialized comparable, JSON coder, PG 18 virtual columns |
| Database configuration | [references/database-config.md](references/database-config.md) | Connection pool options, transaction isolation, SQLite extensions, invisible indexes |
| Active Job continuations | [references/active-job-continuations.md](references/active-job-continuations.md) | Resumable multi-step jobs with cursor tracking |
| Tooling & framework | [references/tooling.md](references/tooling.md) | Local CI, credentials:fetch, structured events, markdown rendering, deprecated associations |
| Deprecations & removals | [references/deprecations.md](references/deprecations.md) | sidekiq adapter, ActiveSupport::Configurable, mb_chars, Active Storage Azure |
## Rails 8.0 — No Redis, No Sprockets, No Traefik
Rails 8.0 removes external dependencies:
- **Solid Queue** replaces Sidekiq/Resque as default Active Job backend (database-backed, `FOR UPDATE SKIP LOCKED`)
- **Solid Cache** replaces Redis/Memcached for fragment caching
- **Solid Cable** replaces Redis for Action Cable pub/sub
- **Propshaft** replaces Sprockets (digest stamping only, no transpilation)
- **Kamal 2** replaces Capistrano/manual deployment (with `kamal-proxy` instead of Traefik)
- **Authentication generator** (`rails generate authentication`) — session-based, password-resettable
- **Turbo 8 morphing** — `turbo_refreshes_with method: :morph, scroll: :preserve` for DOM morphing
- **allow_browser** guard — `allow_browser versions: :modern` returns 406 for old browsers
- **Thruster** — HTTP/2 proxy in Dockerfile for asset caching/compression
See `references/rails-8-architecture.md` for full details, configuration, and code examples.
## Quick Reference
### params.expect replaces require/permit (8.0)
```ruby
# New preferred way (safer, more explicit)
params.expect(post: [:title, :body])
# replaces: params.require(:post).permit(:title, :body)
```
### SQLite virtual tables (8.0)
```ruby
create_virtual_table :posts_search, :fts5, ["content", "title"]
```
### Custom batch columns (8.0)
```ruby
Product.in_batches(cursor: [:shop_id, :id]) do |relation|
# batches using composite cursor
end
```
### Pluck with hash for joined tables (8.0)
```ruby
Post.joins(:comments).pluck(:id, comments: :id)
```
### db:migrate on fresh database (8.0)
`db:migrate` on a fresh database now loads the schema first, then runs only pending migrations. Use `db:migrate:reset` for the old behavior.
### Active Job Continuations (8.1)
Long-running jobs broken into resumable steps via `ActiveJob::Continuable`:
```ruby
class ProcessImportJob < ApplicationJob
include ActiveJob::Continuable
def perform(import_id)
step :validate do
# runs once
end
step :process do |step|
Record.find_each(start: step.cursor) do |record|
record.process
step.advance! from: record.id
end
end
step :finalize # calls private method
end
end
```
### Structured Event Reporting (8.1)
```ruby
Rails.event.notify("user.signup", user_id: 123, email: "[email protected]")
Rails.event.tagged("graphql") { Rails.event.notify("query.executed", duration: 42) }
Rails.event.set_context(request_id: "abc123", shop_id: 456)
```
### Connection pool configuration (8.1)
```yaml
production:
adapter: postgresql
max_connections: 10 # renamed from pool (old name still works)
min_connections: 2
keepalive: 300
max_age: 600
```
### Transaction isolation (8.1)
```ruby
ActiveRecord.with_transaction_isolation_level(:read_committed) do
Tag.create! # uses read_committed isolation
end
# Also: connection.current_transaction.isolation
```
### Deprecated associations (8.1)
```ruby
has_many :posts, deprecated: true # warn mode (default)
has_many :posts, deprecated: { mode: :raise } # or :notify
has_many :posts, deprecated: { mode: :warn, backtrace: true }
```
Reports all usage: `author.posts`, `author.preload(:posts)`, nested attributes, etc.
### only_columns — inverse of ignored_columns (8.1)
```ruby
class User < ApplicationRecord
self.only_columns = %w[id name email]
end
```
### UPDATE with JOIN — PostgreSQL & SQLite3 (8.1)
```ruby
Comment.joins(:post).update_all("title = posts.title")
```
Previously MySQL-only. Now works for PostgreSQL and SQLite3 (without LIMIT/ORDER/GROUP BY).
### Local CI (8.1)
```ruby
# config/ci.rb — run with bin/ci
CI.run do
step "Setup", "bin/setup --skip-server"
step "Style: Ruby", "bin/rubocop"
step "Tests: Rails", "bin/rails test"
if success?
step "Signoff", "gh signoff"
else
failure "CI failed.", "Fix the issues and try again."
end
end
```
### credentials:fetch command (8.1)
```bash
rails credentials:fetch kamal.registry_password
# Useful in .kamal/secrets:
# KAMAL_REGISTRY_PASSWORD=$(rails credentials:fetch kamal.registry_password)
```
### update_column with touch (8.1)
```ruby
user.update_column(:nice, true, touch: true) # also updates updated_at
user.update_columns(last_ip: request.remote_ip, touch: true)
```
### Serialized comparable attributes (8.1)
```ruby
serialize :config, type: Hash, coder: JSON, comparable: true # avoids false dirty tracking
```
### SQLite extensions in database.yml (8.1)
```yaml
development:
adapter: sqlite3
extensions:
- SQLean::UUID # module responding to .to_path
- .sqlpkg/nalgeon/crypto/crypto.so # filesystem path
```
### PG 18 virtual generated columns (8.1)
```ruby
create_table :users do |t|
t.string :name
t.virtual :lower_name, type: :string, as: "LOWER(name)" # virtual on PG 18+
t.virtual :name_length, type: :integer, as: "LENGTH(name)", stored: true
end
```
### first/last without order deprecated (8.1)
```ruby
# config/application.rb (Rails 8.1 default)
config.active_record.raise_on_missing_required_finder_order_columns = true
```
Raises `ActiveRecord::MissingRequiredOrderError` if no `order`, `implicit_order_column`, `query_constraints`, or `primary_key`.
### New exception classes (8.1)
- `ActiveRecord::CheckViolation` — check constraint violations
- `ActiveRecord::ExclusionViolation` — PostgreSQL exclusion constraint violations
### Key changes summary
| Feature | Version | Area |
|---------|---------|------|
| Solid Queue/Cache/Cable defaults | 8.0 | Infrastructure |
| Kamal 2 deployment | 8.0 | Deployment |
| Propshaft asset pipeline | 8.0 | Assets |
| Authentication generator | 8.0 | Security |
| Turbo 8 morphing | 8.0 | Hotwire |
| `allow_browser` guard | 8.0 | Security |
| `params.expect` | 8.0 | Controllers |
| SQLite virtual tables | 8.0 | Active Record |
| Custom batch cursors | 8.0 | Active Record |
| Pluck with hash | 8.0 | Active Record |
| `db:migrate` loads schema first | 8.0 | Migrations |
| Job continuations | 8.1 | Active Job |
| Structured events | 8.1 | Framework |
| Local CI (`bin/ci`) | 8.1 | Tooling |
| Markdown rendering | 8.1 | Action View |
| `credentials:fetch` | 8.1 | Tooling |
| Deprecated associations | 8.1 | Active Record |
| `only_columns` | 8.1 | Active Record |
| `update_column` touch | 8.1 | Active Record |
| Connection pool config | 8.1 | Database |
| Transaction isolation | 8.1 | Active Record |
| Serialized comparable | 8.1 | Active Record |
| JSON coder options | 8.1 | Active Record |
| SQLite extensions in YAML | 8.1 | DatabRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.