helplisted
Install: claude install-skill bozkurtonur3-lgtm/magi-workflow
# /magi:help — quick reference & next-step hint
You are the coordinator. This skill is a read-only reference printer. **Do
not modify any files, do not call subagents, do not invoke external CLIs.**
Output goes to the user as plain markdown.
## 0. Resolve paths
```bash
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-}"
[[ -z "$PLUGIN_ROOT" ]] && PLUGIN_ROOT="$(cd "$(dirname "$BASH_SOURCE[0]")/../.." 2>/dev/null && pwd)"
USER_CONFIG="$HOME/.config/magi-workflow/config.json"
```
Verify `$PLUGIN_ROOT/skills` is a directory. If not, the plugin is installed
incorrectly — print a one-line error pointing to the install instructions
and stop.
## 0.1. Output language
Read `output_language` from `$USER_CONFIG` if it exists; default `zh-TW`.
Missing config is **not** an error — `/magi:help` must work before
`/magi:setup` has ever been run, since "I don't know what to do" is exactly
when users reach for help.
```bash
LANG_PREF="zh-TW"
if [[ -f "$USER_CONFIG" ]]; then
LANG_PREF=$(jq -r '.output_language // "zh-TW"' "$USER_CONFIG" 2>/dev/null || echo "zh-TW")
fi
```
Section headers and ASCII flow diagrams stay English (matching README
conventions); descriptive prose follows `LANG_PREF`.
## 0.2. State preflight (fail-soft)
Try to read project state; never refuse. Help is unconditionally allowed,
but the reading lets the overview append a "current state → suggested next"
hint at the end.
```bash
STATE_JSON=""
if STATE_RAW=$(bash "$PLUGIN_ROOT/scripts/shared/detect-state.sh" 2>/dev/null); the