From d44a2288b4ed7712a0ae9f1f03c9d4d572cc3b1b Mon Sep 17 00:00:00 2001 From: Stefano Fiorini Date: Fri, 6 Mar 2026 08:23:49 -0600 Subject: [PATCH] Update Atlassian skill prereq checks --- docs/ATLASSIAN.md | 6 +++--- skills/atlassian/claude-code/SKILL.md | 8 ++++---- skills/atlassian/codex/SKILL.md | 8 ++++---- skills/atlassian/cursor/SKILL.md | 8 ++++---- skills/atlassian/opencode/SKILL.md | 8 ++++---- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/ATLASSIAN.md b/docs/ATLASSIAN.md index de5ede1..b82b1b4 100644 --- a/docs/ATLASSIAN.md +++ b/docs/ATLASSIAN.md @@ -23,6 +23,8 @@ pnpm --dir skills/atlassian/shared/scripts sync:agents - `ATLASSIAN_EMAIL` - `ATLASSIAN_API_TOKEN` +The `ATLASSIAN_*` values may come from the shell environment or a `.env` file in the installed agent-specific `scripts/` folder. + Optional: - `ATLASSIAN_JIRA_BASE_URL` @@ -121,9 +123,7 @@ Run in the installed `scripts/` folder: ```bash node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')" -test -n \"$ATLASSIAN_BASE_URL\" -test -n \"$ATLASSIAN_EMAIL\" -test -n \"$ATLASSIAN_API_TOKEN\" +node -e 'require("dotenv").config({ path: ".env" }); const required = ["ATLASSIAN_BASE_URL", "ATLASSIAN_EMAIL", "ATLASSIAN_API_TOKEN"]; const missing = required.filter((key) => !(process.env[key] || "").trim()); if (missing.length) { console.error("Missing required Atlassian config: " + missing.join(", ")); process.exit(1); } console.log("OK: Atlassian config present")' pnpm atlassian health ``` diff --git a/skills/atlassian/claude-code/SKILL.md b/skills/atlassian/claude-code/SKILL.md index a79c876..c7708d8 100644 --- a/skills/atlassian/claude-code/SKILL.md +++ b/skills/atlassian/claude-code/SKILL.md @@ -16,6 +16,8 @@ Portable Atlassian workflows for Claude Code using a shared TypeScript CLI. - `ATLASSIAN_EMAIL` - `ATLASSIAN_API_TOKEN` +The `ATLASSIAN_*` values may come from the shell environment or a `.env` file in `~/.claude/skills/atlassian/scripts`. + ## First-Time Setup ```bash @@ -30,15 +32,13 @@ pnpm install ```bash cd ~/.claude/skills/atlassian/scripts node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')" -test -n \"$ATLASSIAN_BASE_URL\" -test -n \"$ATLASSIAN_EMAIL\" -test -n \"$ATLASSIAN_API_TOKEN\" +node -e 'require("dotenv").config({ path: ".env" }); const required = ["ATLASSIAN_BASE_URL", "ATLASSIAN_EMAIL", "ATLASSIAN_API_TOKEN"]; const missing = required.filter((key) => !(process.env[key] || "").trim()); if (missing.length) { console.error("Missing required Atlassian config: " + missing.join(", ")); process.exit(1); } console.log("OK: Atlassian config present")' pnpm atlassian health ``` If any check fails, stop and return: -`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Run setup and configure ATLASSIAN_* env vars, then retry.` +`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Configure ATLASSIAN_* in the shell environment or scripts/.env, then retry.` ## Supported Commands diff --git a/skills/atlassian/codex/SKILL.md b/skills/atlassian/codex/SKILL.md index 0444d02..e955654 100644 --- a/skills/atlassian/codex/SKILL.md +++ b/skills/atlassian/codex/SKILL.md @@ -16,6 +16,8 @@ Portable Atlassian workflows for Codex using a shared TypeScript CLI. - `ATLASSIAN_EMAIL` - `ATLASSIAN_API_TOKEN` +The `ATLASSIAN_*` values may come from the shell environment or a `.env` file in `~/.codex/skills/atlassian/scripts`. + ## First-Time Setup ```bash @@ -32,15 +34,13 @@ Run before using the skill: ```bash cd ~/.codex/skills/atlassian/scripts node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')" -test -n \"$ATLASSIAN_BASE_URL\" -test -n \"$ATLASSIAN_EMAIL\" -test -n \"$ATLASSIAN_API_TOKEN\" +node -e 'require("dotenv").config({ path: ".env" }); const required = ["ATLASSIAN_BASE_URL", "ATLASSIAN_EMAIL", "ATLASSIAN_API_TOKEN"]; const missing = required.filter((key) => !(process.env[key] || "").trim()); if (missing.length) { console.error("Missing required Atlassian config: " + missing.join(", ")); process.exit(1); } console.log("OK: Atlassian config present")' pnpm atlassian health ``` If any check fails, stop and return: -`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Run setup and configure ATLASSIAN_* env vars, then retry.` +`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Configure ATLASSIAN_* in the shell environment or scripts/.env, then retry.` ## Supported Commands diff --git a/skills/atlassian/cursor/SKILL.md b/skills/atlassian/cursor/SKILL.md index 477807c..91cfb1c 100644 --- a/skills/atlassian/cursor/SKILL.md +++ b/skills/atlassian/cursor/SKILL.md @@ -17,6 +17,8 @@ Portable Atlassian workflows for Cursor Agent CLI using a shared TypeScript CLI. - `ATLASSIAN_EMAIL` - `ATLASSIAN_API_TOKEN` +The `ATLASSIAN_*` values may come from the shell environment or a `.env` file in the installed `scripts/` folder. + ## First-Time Setup Repo-local install: @@ -45,15 +47,13 @@ Repo-local form: cursor-agent --version cd .cursor/skills/atlassian/scripts node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')" -test -n \"$ATLASSIAN_BASE_URL\" -test -n \"$ATLASSIAN_EMAIL\" -test -n \"$ATLASSIAN_API_TOKEN\" +node -e 'require("dotenv").config({ path: ".env" }); const required = ["ATLASSIAN_BASE_URL", "ATLASSIAN_EMAIL", "ATLASSIAN_API_TOKEN"]; const missing = required.filter((key) => !(process.env[key] || "").trim()); if (missing.length) { console.error("Missing required Atlassian config: " + missing.join(", ")); process.exit(1); } console.log("OK: Atlassian config present")' pnpm atlassian health ``` If any check fails, stop and return: -`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Run setup and configure ATLASSIAN_* env vars, then retry.` +`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Configure ATLASSIAN_* in the shell environment or scripts/.env, then retry.` ## Supported Commands diff --git a/skills/atlassian/opencode/SKILL.md b/skills/atlassian/opencode/SKILL.md index f2a33be..5fb17ab 100644 --- a/skills/atlassian/opencode/SKILL.md +++ b/skills/atlassian/opencode/SKILL.md @@ -16,6 +16,8 @@ Portable Atlassian workflows for OpenCode using a shared TypeScript CLI. - `ATLASSIAN_EMAIL` - `ATLASSIAN_API_TOKEN` +The `ATLASSIAN_*` values may come from the shell environment or a `.env` file in `~/.config/opencode/skills/atlassian/scripts`. + ## First-Time Setup ```bash @@ -30,15 +32,13 @@ pnpm install ```bash cd ~/.config/opencode/skills/atlassian/scripts node -e "require.resolve('commander');require.resolve('dotenv');console.log('OK: runtime dependencies installed')" -test -n \"$ATLASSIAN_BASE_URL\" -test -n \"$ATLASSIAN_EMAIL\" -test -n \"$ATLASSIAN_API_TOKEN\" +node -e 'require("dotenv").config({ path: ".env" }); const required = ["ATLASSIAN_BASE_URL", "ATLASSIAN_EMAIL", "ATLASSIAN_API_TOKEN"]; const missing = required.filter((key) => !(process.env[key] || "").trim()); if (missing.length) { console.error("Missing required Atlassian config: " + missing.join(", ")); process.exit(1); } console.log("OK: Atlassian config present")' pnpm atlassian health ``` If any check fails, stop and return: -`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Run setup and configure ATLASSIAN_* env vars, then retry.` +`Missing dependency/config: atlassian requires installed CLI dependencies and valid Atlassian Cloud credentials. Configure ATLASSIAN_* in the shell environment or scripts/.env, then retry.` ## Supported Commands