twg-setup
Skill35 starsChanged 6 months agoApache-2.0View on GitHub
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.
- Pipes a download into a shell
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- twg-agentic-searchSkill
- twg-artifactsSkill
- twg-code-reviewSkill
- twg-confluenceSkill
- twg-context-discoverySkill
- twg-engineering-workSkill
- twg-jira-resolve-merged-workSkill
- twg-jiraSkill
- twg-operational-healthSkill
- twg-responsibility-routingSkill
- twgSkill
- twg-space-creationSkill
- twg-status-rollupsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 5 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Do not change host permissions to add a prefix.
- Very specific: line 84
Run the OS-specific Inspect block.
- Distinctive: line 87
If the CLI is missing, give the user the OS-specific installer command with the plugin argument for a recognized host.
- Very specific: line 90
After the user replies done, run the OS-specific Inspect block yourself so doctor verifies the installation.
- Very specific: line 94
Put every installer or remediation command handed to the user in a fenced bash or powershell block.
- Very specific: line 97
Never request or expose tokens, passwords, API keys, 2FA/OTP codes, or OAuth device_code.
- Very specific: line 101
Use this section only for a pre-existing install or after the user replies done.
- Very specific: line 107
Run noninteractive fixes, including skill refresh, directly, then rerun doctor.
- Distinctive: line 114
If doctor reports a skill issue or your coding agent cannot see TWG skills, refresh them at the standard agent skill location:
- Very specific: line 121
Use twg skills list to check saved quarantine policy.
- Distinctive: line 130
After a skill install or refresh, reload or start a new agent session.
- Very specific: line 136
When doctor is healthy, resume and complete the user's original request.
- Distinctive: line 141
Only when the user's request was setup alone, offer a few useful TWG prompts:
- Very specific: line 143
Use twg work query and twg collaborators to brief me on my last 7 days: top three workstreams, key people involved, blockers, and next …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
TWG Setup
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.
Unix / macOS
Installer command — run in your terminal
curl -fsSL --retry 2 https://teamwork-graph.atlassian.com/cli/install | bashRecognized 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 || trueWindows PowerShell
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
}Common flow
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.
- Run the OS-specific Inspect block. If a sandboxed run does not find
twg, ask for approval to run the block unsandboxed. A sandbox can hide the home directory, so a sandboxed result does not prove thattwgis absent. - If the CLI is missing, give the user the OS-specific installer command with the plugin
argument for a recognized host. Do not execute it, even in an interactive terminal. End with
When it finishes, reply done.Do not includedoctoror another follow-up command. - After the user replies
done, run the OS-specific Inspect block yourself sodoctorverifies the installation. Never ask the user to rundoctoror 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.
Doctor remediation
Use this section only for a pre-existing install or after the user replies done. Run only the
reported fix.
- Give interactive auth and setup fixes to the user; never execute them yourself. Put the command
in the matching fenced block, end with
When it finishes, reply done., and rerundoctoryourself after that reply. - Run noninteractive fixes, including skill refresh, directly, then rerun
doctor. - OAuth:
twg login --force. - Initial/general setup:
twg setup. - Optional Bitbucket:
twg setup bitbucket.
Skill refresh
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 --yesUse 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> --yesAfter a skill install or refresh, reload or start a new agent session.
Summarize any remaining issue in one line.
Continue The Original Request
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.
Things To Try
Only when the user's request was setup alone, offer a few useful TWG prompts:
- Use
twg work queryandtwg collaboratorsto brief me on my last 7 days: top three workstreams, key people involved, blockers, and next actions. - I was out for [N days]. Catch me up on [topic]: material changes, decisions, blockers, conversations I should respond to, and my top three next actions.
- Who should I talk to about [topic]? Identify the owner and up to three experts, explain why each is relevant, and tell me whom to contact first.
- What's the latest status of [project]? Include the owner, last update, blockers or risks, and next milestone.
- Find the three most useful current design docs or PRDs for [topic]. Explain what each establishes and flag stale or conflicting guidance.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

