shaktra-initlisted
Install: claude install-skill im-shashanks/claude-plugins
# /shaktra:init — Project Initialization
## Prerequisites
- Must be run from the root of a project directory
- `.shaktra/` directory must NOT already exist (prevents double-init)
## Execution Steps
### Step 0: Verify Prerequisites
Run `python3 -c "import yaml"` via Bash.
If the command fails (non-zero exit code), stop and report:
"Shaktra requires PyYAML for its hook scripts.
Install with: pip install pyyaml
Then run /shaktra:init again."
Do not proceed to Step 1 until PyYAML is confirmed installed.
### Step 1: Guard Against Double Initialization
Check if `.shaktra/` directory exists in the current working directory.
- If it exists: stop immediately and report — "Shaktra is already initialized in this project. To reinitialize, remove the `.shaktra/` directory first."
- If it does not exist: proceed.
### Step 2: Gather Project Information
Ask the user for the following project details. Present these as a single prompt, offering sensible defaults where possible:
| Field | Prompt | Default | Valid Values |
|---|---|---|---|
| `name` | Project name? | Current directory name | Any string |
| `type` | Greenfield or brownfield? | greenfield | `greenfield`, `brownfield` |
| `language` | Primary language? | _(none)_ | `python`, `typescript`, `javascript`, `go`, `java`, `rust`, `ruby`, `php`, `csharp`, `other` |
| `architecture` | Architecture style? | _(none)_ | `layered`, `hexagonal`, `clean`, `mvc`, `feature-based`, `event-driven`, or blank |
| `test_framework`