Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:46:33 +08:00
commit cc6be606c5
6 changed files with 275 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
echo "[jira-cli-skill] Verifying Jira CLI environment..."
if ! command -v jira >/dev/null 2>&1; then
echo "ERROR: jira CLI not found in PATH."
echo "Install it via 'brew install jira-cli' or follow https://github.com/ankitpokhrel/jira-cli#installation"
exit 1
fi
if ! jira version >/dev/null 2>&1; then
echo "ERROR: jira CLI is installed but failed to report its version."
echo "Run 'jira init' to configure credentials, then retry."
exit 1
fi
if ! jira me >/dev/null 2>&1; then
echo "ERROR: jira CLI is not authenticated."
echo "Run 'jira init' and ensure credentials are valid."
exit 1
fi
echo "[jira-cli-skill] Environment check passed."