hanami-workflow

Generate Hanami controllers and views within slice architecture.

Updated Apr 11, 2023
One-click install
npx skills add https://github.com/salverius-tech/dotfiles --skill hanami-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hanami-workflow
Source: https://github.com/salverius-tech/dotfiles/tree/main/home/dot_claude/skills/hanami-workflow
Command: npx skills add https://github.com/salverius-tech/dotfiles --skill hanami-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and set of commands to efficiently manage workflows within Hanami framework projects, ensuring adherence to best practices and maximizing developer productivity.

Core Features & Use Cases

  • Standardized Tooling: Offers quick access to essential Hanami CLI commands for linting, testing, generation, and database operations.
  • Architectural Guidance: Details best practices for organizing applications into slices, managing dependencies, and structuring entities, relations, and repositories.
  • Use Case: When starting a new Hanami feature, use this Skill to quickly generate the necessary components (e.g., controllers, views, models) and ensure they follow the established slice architecture and dependency injection patterns.

Quick Start

Use the hanami-workflow skill to generate a new Hanami controller for the 'users' resource within the 'api' slice.

Frequently Asked Questions about hanami-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Hanami web application using slice architecture?

Hanami slice architecture organizes your web application into distinct, isolated containers to manage dependencies and structure features. This approach separates entities, relations, and repositories to ensure modular and maintainable code.

What is the best way to generate Hanami controllers and views for a new feature?

Generating Hanami controllers and views is best handled by using standardized CLI commands provided by the workflow. These commands quickly scaffold the necessary components while ensuring adherence to dependency injection patterns and established architectural guidelines.

How does dependency injection work in the Hanami framework?

Dependency injection in Hanami allows you to manage object dependencies dynamically within your slices. It facilitates structured application development by decoupling components, making actions and views easier to test and maintain across different application layers.

Can I use ROM for database persistence and validation in a Hanami project?

Yes, you can use ROM for database persistence and validation in a Hanami project. The framework integrates ROM repositories and relations to manage data persistence, while providing specific validation patterns to ensure data integrity before processing actions.

What are the recommended testing patterns for a Hanami web application?

Recommended testing patterns for a Hanami web application involve using integrated CLI commands for linting and running test suites. These standardized tooling commands ensure your actions, views, and persistence layers consistently follow established best practices.

Do I need to manually configure database operations in Hanami?

You do not need to manually configure basic database operations in Hanami. The framework provides quick access to essential CLI commands for database operations, streamlining migrations and schema management directly within your development workflow.