Awesome-omni-skill coffee-staff-management
Coffee Staff Management - Admin Dashboard for a coffee shop. Focus: Backend (.NET, EF Core, MediatR), Frontend (React/TypeScript, Vite), PostgreSQL schema (csm_db).
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/coffee-staff-management" ~/.claude/skills/diegosouzapw-awesome-omni-skill-coffee-staff-management && rm -rf "$T"
manifest:
skills/development/coffee-staff-management/SKILL.mdsource content
Coffee Staff Management — Project Documentation
1. Project Overview
Coffee Staff Management (CSM) is an Admin Dashboard designed to manage employees, schedules, attendance, payroll, and revenue for a coffee shop.
- Tech Stack:
- Backend: .NET 10 (Web API), Entity Framework Core (PostgreSQL), MediatR (CQRS).
- Frontend: React (Vite), TypeScript, TailwindCSS (assumed), ShadCN (assumed).
- Database: PostgreSQL (
).csm_db
2. Core Workflows
2.1 Authentication & Dashboard
- Actors: Admin (Manager).
- Flow: Admin logs in via
/username
-> Dashboard.password - Dashboard: Displays general stats (Overview). Includes Sidebar/Header for navigation.
2.2 Employee Management (Employees
)
Employees- View: List of employees (#, Code, Name, Phone, CID, Gender, Salaries, DOB, HireDate, Status).
- Actions: Search, Add, Edit, Delete (Soft delete? Status toggle?).
2.3 Position & Shift Management (Positions
, Shifts
)
PositionsShifts- Structure: Employees can have multiple roles, but system manages Roles -> Shifts.
- View: List of Positions (Name, Shift Count, Status).
- Expand: Show specific Shifts for that position (Name, Start/End Time).
- Actions: Manage Positions and their Shifts.
2.4 Scheduling (Schedules
, ScheduleRequests
)
SchedulesScheduleRequests- Employee View (Mobile/Public Page):
- Login via Phone Number.
- View weekly table -> Register for shifts (optional Note).
- Submit -> Creates
(status:ScheduleRequest
).pending
- Admin View:
- View all requests.
- Action: Approve/Reject requests.
- Result: Approved requests become
records.Schedule - Calendar: View final weekly schedule.
2.5 Attendance (Attendance
)
Attendance- Employee View:
- Login via Phone Number -> Select Position -> "Check In" / "Check Out".
- System records time.
- Admin View:
- View attendance records (Status, Check-in/out times, Late/Early notes).
- Data: Links
->Attendance
->Schedule
.Employee
2.6 Payroll (Payrolls
, PayrollDetails
)
PayrollsPayrollDetails- Flow: Admin Selects Month/Year & Employee -> System calculates Salary.
- Calculation:
- Based on
(Total Hours * Role Salary).Attendance - +/-
.Rewards/Penalties - Final: Save to
table.Payrolls
- Based on
2.7 Revenue & Expenses (Revenues
, Transactions
)
RevenuesTransactions- Employee View (End of Shift):
- Login via Phone -> Input Revenue (Cash, Bank, Expenses during shift).
- System calculates Deviation (Expected vs Actual).
- Admin View:
- View Daily/Monthly Revenue reports.
- Manage
(Income/Expense).Transactions
3. Database Schema (PostgreSQL)
Tables
: System administrators.admin
: Staff details.employees
(bool).status
: Job roles.positions
: Specific work times for positions.shifts
: Staff registration for shifts.schedule_requests
('pending', 'approved', 'rejected').status
: Official assigned shifts.schedules
: Actual work logs. Links toattendance
.schedules
: Config for bonus/fines.reward_penalty_types
: Applied records.rewards_penalties
: Monthly efficiency summaries.payrolls
: Breakdown by attendance/shift.payroll_details
: Daily/Shift revenue reports.revenues
: Income/Expense records.transactions
: System audit log.activities
4. Current Implementation Status (Backend)
- Architecture: Clean Architecture (Domain, Application, Infrastructure, API).
- Entities: Synchronized with PostgreSQL Schema.
- Features:
- Employees (CRUD, Soft Delete).
- Positions/Shifts (CRUD, Status field standardized).
- Schedules (Request -> Approve cycle).
- Attendance (Check-in/out).
- Payroll (Weighted calculation, Rewards/Penalties).
- Revenue/Transactions (Expense-aware Net, Deviation logic).
5. Project Roadmap (Completed)
- Database: Fully synchronized and optimized.
- Staff Portal: Mobile-first portal with phone verification completed.
- UI/UX: Comprehensive Teal/Cyan standardization achieved across all pages.
- Financials: Automated payroll and revenue tracking fully implemented.