ilude/claude-code-config/hanami-workflow
Claude Code and agent skill by ilude/claude-code-config
- community
Checking that the SKILL.md file is still in the repository.
Hanami framework workflow guidelines. Activate when working with Hanami projects, Hanami CLI, or Hanami-specific patterns.
Install
npx vskill@latest install ilude/claude-code-config/hanami-workflowSKILL.md
The same SKILL.md was published earlier as ilude/claude-code-config/hanami-workflow.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Hanami Workflow
Tool Grid
| Task | Tool | Command | |
|---|---|---|---|
| Lint | StandardRB | bundle exec standardrb | |
| Test | RSpec | bundle exec rspec | |
| Console | Hanami CLI | bundle exec hanami console | |
| Server | Hanami CLI | bundle exec hanami server | |
| Generate | Hanami CLI | bundle exec hanami generate <type> | |
| DB Migrate | Hanami CLI | bundle exec hanami db migrate | |
| Routes | Hanami CLI | bundle exec hanami routes |
Slices Architecture
Hanami applications MUST be organized into isolated slices (slices/admin/, slices/api/, slices/main/).
- Each slice MUST have its own container and dependencies
- Slices SHOULD NOT directly depend on other slices
- Cross-slice communication SHOULD use explicit interfaces or events
- Shared code MUST live in
lib/orapp/(application layer)
Dependency Injection via Deps
Hanami uses dry-system for dependency injection. All dependencies MUST be injected, not hardcoded.
- MUST use
include Deps[...]for injecting dependencies - SHOULD prefer constructor injection for testability
- MUST NOT use global state or singletons directly
Entities, Relations, and Repositories (ROM)
Hanami uses ROM (Ruby Object Mapper) for persistence.
Entities
Entities MUST be simple domain objects without persistence logic.
Relations
Relations MUST define the database schema mapping.
Repositories
Repositories MUST encapsulate all persistence operations.
- Repositories MUST NOT expose ROM internals to actions
- Relations SHOULD use
infer: truewhen schema matches database - Changesets SHOULD be used for create/update operations
Validation with dry-validation
Input validation MUST use dry-validation contracts.
- Contracts MUST validate all external input
- Params SHOULD define type coercion
- Error messages MUST be user-friendly
Actions
Actions MUST be single-purpose request handlers.
- Each action MUST handle exactly one request type
- Actions MUST use contracts for input validation
- Actions SHOULD delegate business logic to interactors/services
Views and Templates
Views MUST separate presentation logic from templates.
- Views MUST use
exposefor passing data to templates - Templates SHOULD contain minimal logic
- Presenters SHOULD format data for display
Configuration
- Sensitive config MUST use environment variables
- Per-slice config SHOULD override app defaults only when needed
Testing Patterns
- Actions MUST be tested with mocked dependencies
- Repositories SHOULD be tested against real database
Interactor/Service Pattern
- Services SHOULD return Result objects (Success/Failure)
- Actions SHOULD use
haltfor error responses
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/hanami-workflow/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ilude/claude-code-config/hanami-workflow)