---
name: admin
description: Admin account management - reset passwords, manage local admin accounts
argument-hint: "<subcommand> [options]"
disable-model-invocation: true
---

<objective>
Manage SmartStack admin accounts. Wraps the `smartstack admin` CLI command with guided workflows.

**WARNING:** This skill modifies database records directly. Always confirm before executing.
</objective>

<quick_start>
```bash
/admin reset              # Reset local admin password (guided)
/admin reset --force      # Reset without confirmation
```
</quick_start>

<workflow>

## Subcommands

| Command | Description |
|---------|-------------|
| `/admin reset` | Reset the localAdmin account password |

## /admin reset

1. **Detect SmartStack.app** - Look for `.smartstack/config.json` or `SmartStack.Api/` directory
2. **Run CLI command:**
   ```bash
   smartstack admin reset
   ```
3. **If `--force` flag passed:**
   ```bash
   smartstack admin reset --force
   ```
4. **Report result** - Show new credentials or error message

</workflow>

<success_criteria>
- Admin command executed successfully or clear error displayed
- New credentials shown to user (for reset)
- SmartStack.app project correctly detected
</success_criteria>
