/atlassian-twg-cli:twg-setupfrom Atlassian Teamwork Graph CLI
Install, upgrade, authenticate, or repair `twg` for your coding agent, including missing CLI or skills and doctor/auth follow-up. TWG gives your coding agent grounded work context across Jira, Confluence, Bitbucket, JSM, Assets, Slack, Google Drive, and more, so it can connect tickets, docs, code, people, and decisions; surface risks and dependencies; summarize progress; and keep work moving.
Ships in Atlassian Teamwork Graph CLI. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
For coding-agent TWG calls after installation, set TWG_AGENT_DEFAULTS=1 in
the host environment or use TWG_AGENT_DEFAULTS=1 twg <command>. If the host
blocks environment assignments, pass --mode agent instead.
Do not change host permissions to add a prefix.
Recognized installer hosts: antigravity, claude-code, codex, copilot, cursor, devin, gemini, hermes, intellij, opencode, pi, qoder, vscode.
Installer command — run in your terminal
curl -fsSL --retry 2 https://teamwork-graph.atlassian.com/cli/install | bash
Recognized host variant:
curl -fsSL --retry 2 https://teamwork-graph.atlassian.com/cli/install | bash -s -- --plugin <host>
Inspect
TWG_BIN="$(command -v twg || true)"
if [ -z "$TWG_BIN" ] && [ -x "$HOME/.local/bin/twg" ]; then
TWG_BIN="$HOME/.local/bin/twg"
fi
if [ -z "$TWG_BIN" ]; then
echo "twg was not found at the standard launcher path; install TWG or add its directory to PATH." >&2
fi
[ -n "$TWG_BIN" ] && "$TWG_BIN" doctor || true
Installer command — run in PowerShell
curl.exe -fsSL https://teamwork-graph.atlassian.com/cli/install.ps1 -o "$env:TEMP\twg-install.ps1"
powershell -ExecutionPolicy Bypass -File "$env:TEMP\twg-install.ps1"
Recognized host variant:
curl.exe -fsSL https://teamwork-graph.atlassian.com/cli/install.ps1 -o "$env:TEMP\twg-install.ps1"
powershell -ExecutionPolicy Bypass -File "$env:TEMP\twg-install.ps1" -Plugin <host>
Inspect
$twgCommand = Get-Command twg -ErrorAction SilentlyContinue
$TWG_BIN = if ($twgCommand) { $twgCommand.Path } else { $null }
if (-not $TWG_BIN -and $env:LOCALAPPDATA) {
$fallback = Join-Path $env:LOCALAPPDATA "Programs\twg\bin\twg.exe"
if (Test-Path -LiteralPath $fallback -PathType Leaf) { $TWG_BIN = $fallback }
}
if (-not $TWG_BIN) {
Write-Warning "twg was not found; use the installer command above."
}
if ($TWG_BIN) {
& $TWG_BIN doctor
}
Infer the current host from runtime context; never ask the user to identify it. Use its plugin argument when recognized; omit it only when the host is genuinely unknown. Do not narrate the plugin argument or describe attribution or analytics to the user.
twg, ask for approval
to run the block unsandboxed. A sandbox can hide the home directory, so a sandboxed result does
not prove that twg is absent.When it finishes, reply done. Do not include doctor or another follow-up command.done, run the OS-specific Inspect block yourself so doctor
verifies the installation. Never ask the user to run doctor or paste its output, and never
reinstall for auth, permission, or command errors.Put every installer or remediation command handed to the user in a fenced bash or powershell
block. Use raw URLs; never render a command inline or as a Markdown link. The user completes
agreements, browser authentication, optional connections, and secret entry in their own terminal.
Never request or expose tokens, passwords, API keys, 2FA/OTP codes, or OAuth device_code.
Use this section only for a pre-existing install or after the user replies done. Run only the
reported fix.
When it finishes, reply done., and rerun doctor
yourself after that reply.doctor.twg login --force.twg setup.twg setup bitbucket.If doctor reports a skill issue or your coding agent cannot see TWG skills, refresh them at the standard agent skill location:
twg skills install --yes
Use twg skills list to check saved quarantine policy.
Quarantined skills keep fresh content but have no global discovery links.
Refresh does not clear this policy.
Restore only when the user asks to enable the skill:
twg skills restore <exact-name> --yes
After a skill install or refresh, reload or start a new agent session.
Summarize any remaining issue in one line.
When doctor is healthy, resume and complete the user's original request. Do not stop
at setup or ask the user to choose a new task.
Only when the user's request was setup alone, offer a few useful TWG prompts:
twg work query and twg collaborators.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub atlassian-labs/twg-plugins --plugin atlassian-twg-cli