build-approval-workflow

Community

Automate end-to-end time-off approvals.

Authorerwaen
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Build a cohesive, end-to-end approval workflow inside a Rails time-off tracking system, reducing manual handoffs and errors by providing a complete, tested framework.

Core Features & Use Cases

  • State machine on TimeOffRequest to manage transitions: pending → approved, pending → denied, and pending|approved → cancelled, with guard methods for role-based authorization.
  • ApprovalService handling the core workflow logic, including two-step approval rules, persistence of approvals, and status updates.
  • Mailers and views to notify managers, admins, and employees about submissions, approvals, denials, and cancellations.
  • Background job (NotificationJob) to enqueue notifications asynchronously.
  • Comprehensive specs for services, mailers, and jobs to ensure reliability and maintainability.

Quick Start

Run the build-approval-workflow skill after scaffolding all relevant models to generate the full approval workflow.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: build-approval-workflow
Download link: https://github.com/erwaen/one-shot-test/archive/main.zip#build-approval-workflow

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.