Agent Skill
2/7/2026nkh-webapp-development
Specialized skill for developing features in the NKH WebApp (Laravel/Inertia/React).
S
supxzero
0GitHub Stars
1Views
npx skills add SUPxZERO/NKH_WebApp
SKILL.md
| Name | nkh-webapp-development |
| Description | Specialized skill for developing features in the NKH WebApp (Laravel/Inertia/React). |
name: NKH WebApp Development description: Specialized skill for developing features in the NKH WebApp (Laravel/Inertia/React).
NKH WebApp Development Guide
This skill encapsulates the standards, workflows, and best practices for the NKH WebApp.
Project Architecture
- Tech Stack:
- Backend: Laravel 11 (PHP 8.2+)
- Frontend: React 18+ via Inertia.js 2.0
- Styling: TailwindCSS 3.x (with shadcn/ui components)
- Language: TypeScript (.tsx) & PHP
- Design Pattern:
- Service Layer: Business logic lives in
app/Services. Follow Single Responsibility Principle (e.g.,OrderPlacementService, not justOrderService). - Thin Controllers: Controllers should only handle request validation/parsing and response formatting. Delegate work to Services.
- Service Layer: Business logic lives in
Development Workflows
1. New Feature Implementation
Follow this order:
- Database: Create migrations and update Models (
app/Models). - Logic: Implement business logic in specific Service classes (
app/Services). - API/Route: Expose functionality via Controllers (
app/Http/Controllers) and Routes (routes/web.phporroutes/api.php). - Frontend:
- Define Types in
resources/js/types. - Build Components (
resources/js/Components). - Construct Pages (
resources/js/Pages).
- Define Types in
2. "Human Feel" UI Guidelines
The user prioritizes a "Human", "Premium", and "Intentional" aesthetic over generic AI designs.
- Visuals:
- Use refined, subtle gradients (e.g., Violet/Slate/Zinc) rather than primary defaults.
- Avoid excessive "glow" effects or high-contrast neon unless specific.
- Use glassmorphism and subtle borders for depth.
- Typography:
- Use clear hierarchies.
- Components:
- Reuse existing UI components in
resources/js/Components.
- Reuse existing UI components in
Common Commands
- New Migration:
php artisan make:migration create_table_name - New Service: Manually create in
app/Services. - Run Server:
php artisan serve&npm run dev. - Clear Cache:
php artisan optimize:clear.
Troubleshooting
- Inertia Reloads: Ensure
PreserveScrollandPreserveStateare used correctly for partial reloads. - TypeScript Errors: Run
tsc --noEmitto verify type safety.
Skills Info
Original Name:nkh-webapp-developmentAuthor:supxzero
Download