Set up JIRA Assistant Skills with credentials and configuration
npx claudepluginhub grandcamel/jira-assistant-skills --plugin jira-assistant-skills# JIRA Assistant Setup You are helping the user set up JIRA Assistant Skills. Guide them through the process conversationally. ## Step 1: Check Prerequisites First, verify the environment: Check if the jira-as package is installed: If the library is missing, install it: ## Step 2: Get API Token Tell the user they need an API token from Atlassian. Offer to open the browser: "To connect to JIRA, you'll need an API token from Atlassian. I can open the page where you can create one. Would you like me to open https://id.atlassian.com/manage-profile/security/api-tokens ?" If they ag...
You are helping the user set up JIRA Assistant Skills. Guide them through the process conversationally.
First, verify the environment:
python3 --version
Check if the jira-as package is installed:
pip show jira-as 2>/dev/null && echo "Library installed" || echo "Library missing"
If the library is missing, install it:
pip install jira-as>=0.1.5
Tell the user they need an API token from Atlassian. Offer to open the browser:
"To connect to JIRA, you'll need an API token from Atlassian. I can open the page where you can create one.
Would you like me to open https://id.atlassian.com/manage-profile/security/api-tokens ?"
If they agree, use:
python3 -c "import webbrowser; webbrowser.open('https://id.atlassian.com/manage-profile/security/api-tokens')"
Guide them:
Ask the user for their JIRA credentials:
JIRA Site URL: Ask "What is your JIRA site URL? It should look like https://yourcompany.atlassian.net"
Email: Ask "What email address do you use to log into JIRA?"
API Token: Ask "Please paste your API token (I'll store it securely)"
Profile Name: Ask "What would you like to name this profile? (default: production)"
Guide the user to set environment variables:
For bash/zsh (add to ~/.bashrc or ~/.zshrc):
export JIRA_SITE_URL="https://company.atlassian.net"
export JIRA_EMAIL="user@company.com"
export JIRA_API_TOKEN="their-token-here"
For PowerShell (add to profile):
$env:JIRA_SITE_URL="https://company.atlassian.net"
$env:JIRA_EMAIL="user@company.com"
$env:JIRA_API_TOKEN="their-token-here"
After setting, reload the shell:
source ~/.bashrc # or source ~/.zshrc
Test the connection using the CLI:
jira-as issue get {any_issue_key}
Or test with a Python script:
python3 -c "
from jira_as import get_jira_client
client = get_jira_client()
me = client.get('/rest/api/3/myself')
print(f'Connected as: {me.get(\"displayName\", \"Unknown\")}')
"
If validation succeeds, tell the user:
"Your JIRA Assistant Skills are now set up! Here's what you can do:
Test with a known issue:
jira-as issue get PROJ-123
Or just ask me naturally:
I'm ready to help you with JIRA!"
If authentication fails:
If the CLI is not found:
pip install -e /path/to/pluginpython "${CLAUDE_PLUGIN_ROOT}/skills/jira-issue/scripts/get_issue.py" PROJ-123If import errors occur:
pip install jira-as>=0.1.5