---
name: feature-full
description: |
  Creates a complete SmartStack feature with all integrations.
  Use this skill when:
  - User wants to create a complete feature from A to Z
  - User mentions "oneshot", "complete feature", "full-stack"
  - Creating a module with notifications, workflows and/or AI
  - Need for complete user experience
  Scope: Domain -> Application -> Infrastructure -> API -> Web + Notifications + Workflows + AI
disable-model-invocation: true
---

# Skill Feature Full SmartStack

> **OneShot Development:** Orchestrates all skills for a complete feature.

**Reference:** [_shared.md](../_shared.md) for architecture, permissions, i18n

## When This Skill Activates

| Trigger | Example |
|---------|---------|
| Complete feature | "Create a product management module" |
| Full-stack | "Create the backend and frontend for..." |
| Integration | "With notifications and automated emails" |

## Complete Flow

```
DOMAIN -> APPLICATION -> INFRASTRUCTURE -> API -> WEB
                      + NOTIFICATIONS + WORKFLOWS + AI
```

## Phase 1: Analysis

```
- Module/functionality?
- Entities? CRUD operations? Business rules?
- Notifications required? Automated emails? AI?
- Display: Cards/Table/Kanban? Permissions?
```

## Phases 2-7: Implementation

Start with [steps/step-00-init.md](steps/step-00-init.md) to analyze requirements and existing patterns, then proceed to [steps/step-01-implementation.md](steps/step-01-implementation.md) for detailed code templates covering:
- Phase 2: Domain (Entity + Factory + Behaviors + Enum)
- Phase 3: Application (Interface + DTOs + Permissions)
- Phase 4: Infrastructure (EF Config + Service + DI)
- Phase 5: API (Controller + Authorize + RequirePermission)
- Phase 6: Frontend (API + Hook + Page + Routes)
- Phase 7: Integrations (Notifications + Workflows + AI)

## Complete Checklist

### Backend
```
- Domain: Entity + Factory + Behaviors + Enum + IAuditableEntity
- Application: Interface + DTOs + Permissions (2 files!)
- Infrastructure: EF Config + Service + DI + DbSet + Migration
- API: Controller + Authorize + RequirePermission + ProducesResponseType
```

### Frontend
```
- {module}Api.ts + use{Module}.ts (with SignalR) + {Module}Page.tsx + {Module}Form.tsx
- i18n: fr, en, it, de
- Nested routes in App.tsx
```

### Integrations
```
- Notifications: NotificationType + SendNotificationAsync + useSignalR
- Workflows: Trigger + Workflow + TriggerAsync
- AI: Prompt + OutputSchema + ExecutePromptAsync
```

### Validation
```
- dotnet build + npm run build + npm run lint OK
```

## Orchestrated Skills

| Skill | Phase |
|-------|-------|
| `/application` | 2-6 |
| `/controller` | 5 |
| `/notification` | 7.1 |
| `/workflow` | 7.2 |
| `/ai-prompt` | 7.3 |
| `/ui-components` | 6 |
| `/efcore migration` | 4 |

## Absolute Rules

| DO | DON'T |
|----|-------|
| Layered architecture | Direct frontend DB access |
| Entity Factory Methods | Hardcoded permission strings |
| Permissions 2 files | Flat routes |
| SignalR hooks | Skip i18n 4 languages |
| ProducesResponseType | Skip logging |

<success_criteria>
- All layers created: Domain, Infrastructure, Application, API, Frontend
- Navigation, permissions, and roles seed data generated via MCP
- EF Core migration created and applied
- Tests pass (unit + integration)
- i18n translations in 4 languages
</success_criteria>
