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

README.md

hanakai-yaku

hanakai-yaku logo

hanakai-yaku turns AI coding assistants into disciplined Hanami collaborators.

A curated library of atomic skills for Hanami, dry-rb, and ROM Ruby development. 3 initial skills and 1 agent (expanding to 18 skills + 3 agents) that teach AI tools how to configure providers, implement dependency injection, write TDD tests, create repositories, design slices, and build operations — using Hanami conventions.

The project is built around one non-negotiable rule:

Write test -> Run test -> Verify it FAILS for the right reason -> Implement -> Verify it PASSES

That TDD gate is encoded directly into the skills and agents.

Part of the AI Skill Ecosystem

This repo is one of 6 in a composable AI skill ecosystem:

RepoRole
ruby-core-skills15 shared Ruby skills + process discipline
rails-agent-skills28 Rails-specific skills + 9 agents
hanakai-yaku35 Hanami/dry-rb skills + 10 agents
agnostic-planning-skills10 planning skills + 4 agents
agent-mcp-runtimeRust CLI runtime (pack resolution, MCP)
ruby-skill-benchBenchmark/eval engine

See the Ecosystem Overview for the full architecture.

This repo depends on ruby-core-skills. See Migration Guide.

Supported agent environments

Claude Cursor GitHub Copilot Google Gemini OpenCode Windsurf

License: MIT CodeRabbit Pull Request Reviews

Who This Is For

| Reader | What you get | | Hanami developers | AI-assisted Hanami development: slices, repositories, operations, actions, views. | | dry-rb users | Guidance on operations, validation contracts, DI patterns, and type-safe design. | | ROM users | Repository patterns, relation design, changeset composition, migration safety. | | Team leads | Repeatable workflows for Hanami onboarding, TDD discipline, and slice architecture. |

What Is In The Repository

AreaPurpose
skills/Atomic Hanami skills organized by category: context, providers, actions, persistence, dry-rb, testing, slices, views.
agents/Orchestrated agents that chain skills into guided workflows.
docs/Architecture, agent guide, reference catalog, and calling conventions.
CONTEXT.mdDomain glossary — the canonical vocabulary for Hanami concepts.

Start Here

Skills are invoked via chat commands:

MethodSyntaxExample
Chat Command@skill-name@load-context
@load-context            # Discover the app's slices, providers, and routes
@configure-providers     # Set up providers and settings
@implement-di            # Configure dependency injection patterns
@hanami-setup            # Full project onboarding workflow

Skill Catalog

SkillCategoryDescription
load-contextContextLoad the Hanami app structure before coding
configure-providersProvidersSet up Hanami providers, settings, and .env
implement-diProvidersDependency injection patterns with dry-system

Agent

AgentDescription
hanami-setupProject onboarding: Context → Providers → DI → Verify

See docs/reference/skill-catalog.md for the complete catalog.

How Skills Work

Each skill is a single SKILL.md file with YAML frontmatter and a 6-section body:

1. Frontmatter (YAML)       — name, description, metadata
2. Quick Reference          — scannable table for fast lookup
3. HARD-GATE               — non-negotiable blocking rules
4. Core Process             — step-by-step procedure
5. Output Style             — exact shape of artifacts
6. Integration              — predecessor/successor skills

Documentation Map

NeedDocument
Understand the docs systemdocs/index.md
Browse all skillsdocs/reference/skill-catalog.md
Understand skill chainingdocs/reference/integration-matrix.md
Follow agent guidesdocs/agent-guide.md
Understand repository structuredocs/architecture.md

Contributing

When contributing skills, agents, or docs:

  • Keep generated artifacts in English unless the user explicitly asks for another language.
  • Preserve the tests-gate-implementation rule for every code-producing skill.
  • Keep public docs consistent with tile.json, agents.json, and CONTEXT.md.

README.md

tile.json