CtrlK
BlogDocsLog inGet started
Tessl Logo

igmarin/hanakai-yaku

Curated library of atomic AI agent skills for Hanami, dry-rb, and ROM Ruby development. Covers actions, slices, repositories, relations, changesets, providers, DI, operations, TDD, CLI, views, routing, and validation. Shared Ruby process skills have moved to ruby-core-skills. Uses Markdown + Front-matter architecture.

92

1.33x
Quality

94%

Does it follow best practices?

Impact

92%

1.33x

Average score across 35 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

RAILS_MAPPING.mdskills/db/write-migration/

ActiveRecord to Sequel Migration Syntax Mapping

Use this quick-lookup table when translating Rails/ActiveRecord migration concepts to Hanami/Sequel syntax.


Command & Syntax Comparison

OperationRails (ActiveRecord)Hanami 2.x (Sequel)
Create Tablecreate_table :users do |t| ... endcreate_table(:users) do ... end
Primary KeyGenerated automaticallyprimary_key :id (must declare explicitly)
Add Columnadd_column :users, :bio, :stringalter_table(:users) { add_column :bio, :text }
Drop Columnremove_column :users, :legacy_tokenalter_table(:users) { drop_column :legacy_token }
Add Indexadd_index :users, :emailalter_table(:users) { add_index :email }
Rename Columnrename_column :users, :old, :newalter_table(:users) { rename_column :old, :new }
Timestamp Typest.timestampscolumn :created_at, :timestamptz
ReversibilityInferred in changeInferred in change (except drops/renames)

Key Differences

  1. Explicit PKs: Sequel requires you to explicitly write primary_key :id inside the create_table block.
  2. Table Alteration Wrapping: Sequel wraps all column additions, index updates, and column modifications in an alter_table block, rather than using separate top-level functions like add_column or remove_column.
  3. No Automatic Timestamps: Sequel does not have a timestamps shorthand. Define :created_at and :updated_at explicitly.

skills

README.md

tile.json