# @atlashub/smartstack-cli

[![npm version](https://img.shields.io/npm/v/@atlashub/smartstack-cli.svg)](https://www.npmjs.com/package/@atlashub/smartstack-cli)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

SmartStack CLI v1.4.0 - Claude Code automation toolkit for GitFlow, APEX methodology, Business Analysis, EF Core migrations, and more.

## Installation

```bash
# Install globally
npm install -g @atlashub/smartstack-cli

# Install commands to Claude Code
smartstack install

# Or use the short alias
ss install
```

## Usage

After installation, the following commands are available in Claude Code:

### GitFlow Workflow

- `/gitflow` - Full GitFlow workflow
- `/gitflow:1-init` - Initialize GitFlow structure
- `/gitflow:2-status` - Show repository status
- `/gitflow:3-commit` - Smart commit with validation
- `/gitflow:4-plan` - Create integration plan
- `/gitflow:5-exec` - Execute integration plan
- `/gitflow:6-abort` - Rollback operations
- `/gitflow:7-pull-request` - Create PR
- `/gitflow:8-review` - Review PR
- `/gitflow:9-merge` - Merge PR
- `/gitflow:10-start` - Start feature/release/hotfix
- `/gitflow:11-finish` - Finish and tag
- `/gitflow:12-cleanup` - Cleanup worktrees

### Development Methodologies

- `/apex` - APEX methodology (Analyze-Plan-Execute-eXamine)
- `/epct` - Explore-Plan-Code-Test methodology
- `/oneshot` - Ultra-fast implementation
- `/debug` - Systematic bug debugging
- `/explore` - Deep codebase exploration
- `/explain` - Code explanation with diagrams
- `/review` - Quick code review
- `/implement` - Implementation from BA handoff

### Business Analysis

- `/business-analyse` - Full BA workflow with automatic orchestration
- `/business-analyse:1-init` - Initialize BA structure
- `/business-analyse:2-discover` - Requirements elicitation + similarity detection
- `/business-analyse:3-analyse` - Business analysis (BRD)
- `/business-analyse:4-specify` - Functional specification (FRD)
- `/business-analyse:5-validate` - User validation gate
- `/business-analyse:6-handoff` - Implementation brief (English)
- `/business-analyse:7-doc-html` - Auto-generated HTML documentation
- `/business-analyse:bug` - Bug resolution documentation
- `/business-analyse:change-request` - Change request during development

### EF Core Migrations

- `/efcore` - EF Core orchestrator
- `/efcore:migration` - Create/recreate migration
- `/efcore:db-status` - Show migration status
- `/efcore:db-deploy` - Apply migrations
- `/efcore:db-seed` - Seed database
- `/efcore:db-reset` - Reset database
- `/efcore:scan` - Scan migrations across branches
- `/efcore:conflicts` - Detect conflicts
- `/efcore:rebase-snapshot` - Rebase ModelSnapshot
- `/efcore:squash` - Squash multiple migrations

### Prompts & Tools

- `/prompts:create` - Expert prompt creation
- `/prompts:agent` - Agent prompt optimization
- `/prompts:command` - Command prompt patterns
- `/prompts:claude-memory` - CLAUDE.md file management

### Ralph Loop (v1.4.0)

- `/ralph-loop` - Start autonomous Ralph Loop session
- `/ralph-loop:cancel-ralph` - Cancel active Ralph Loop
- `/ralph-loop:help` - Ralph Loop documentation

### Quick Search

- `/quick-search` - Lightning-fast codebase search

## CLI Commands

```bash
# Install commands globally
smartstack install
ss install              # Short alias

# Install to current project only
smartstack install --local

# Show installation status
smartstack status
smartstack status --verbose

# Update to latest version
smartstack update

# Uninstall
smartstack uninstall
```

## What's New in v1.4.0

- **Ralph Loop Integration**: Fully automated BA orchestration with Ralph Loop framework
- **License Generator**: New license protection system for commercial features
- **Documentation Overhaul**: Redesigned BA workflow diagrams, improved SVG rendering
- **Prompts System**: New prompt creation and optimization tools
- **Quick Search**: Lightning-fast codebase exploration

## Documentation

Full documentation is available at:
- [GitFlow Documentation](.documentation/gitflow.html)
- [Business Analysis Documentation](.documentation/business-analyse.html)

## License

MIT
