Skip to content

CloudSecurityAlliance/DesktopSetup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSA DesktopSetup

Automated setup for Cloud Security Alliance development environments on macOS and Windows. Get from a bare machine to running AI coding assistants in a few commands.

Quick Start — AI tools

Installs Claude Desktop, ChatGPT Desktop, Claude Code, Codex CLI, Gemini CLI, plus 1Password (GUI + CLI) for secret management in AI workflows. The install scripts walk you through GitHub login (gh auth login) and configure your Git identity from your GitHub profile. They also detect tools installed via the wrong method (e.g., Claude Code via Homebrew or npm) and migrate them to the correct installer.

macOS

bash -c "$(curl -fsSL -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/CloudSecurityAlliance/DesktopSetup/HEAD/scripts/macos-ai-tools.sh)"

The macOS script shares a base layer (Xcode CLI Tools, Homebrew, Node.js/npm, Python) and installs it if not already present.

Note: The -H 'Cache-Control: no-cache' flag forces a fresh download from GitHub — without it, a stale copy from the CDN edge cache can persist for a few minutes after we ship fixes.

Windows

Windows requires one-time PowerShell setup before running any script in this repo.

Not your personal machine? Changing the execution policy is a security setting. If this is a work laptop managed by your IT department, ask them for permission before proceeding.

Step 1 — Check your current policy. Open PowerShell as Administrator (press the Windows key, type powershell, right-click Windows PowerShell, and select Run as administrator). Then run:

Get-ExecutionPolicy

Note the value it returns (usually Restricted on a fresh install). You'll restore this afterwards.

Step 2 — Temporarily allow script execution:

Set-ExecutionPolicy RemoteSigned

When prompted "Do you want to change the execution policy?", type Y and press Enter.

Step 3 — Run the AI tools script. Close the Administrator window and open a regular PowerShell window:

irm https://raw.githubusercontent.com/CloudSecurityAlliance/DesktopSetup/HEAD/scripts/windows-ai-tools.ps1 -Headers @{'Cache-Control'='no-cache'} | iex

The Windows AI tools script also installs Git, GitHub CLI, Python, and Node.js (via winget) alongside the AI apps and CLIs. Requires Windows 10/11 and winget.

Note: The -Headers @{'Cache-Control'='no-cache'} flag forces a fresh download from GitHub — without it, a stale copy from the CDN edge cache can persist for a few minutes after we ship fixes.

Step 4 — Restore the original policy. Once you're done running scripts, re-open PowerShell as Administrator and set the policy back to whatever Step 1 reported:

Set-ExecutionPolicy Restricted

Replace Restricted with the value from Step 1. If you plan to run PowerShell scripts regularly, you can leave it as RemoteSigned.

MCP servers (macOS)

Connect your AI coding CLIs to Airtable, GitHub, and Gmail. Scans your existing config files and environment for tokens, validates each against the service's API, deduplicates them into a labeled catalog (A, B, C…), and writes the right token to each tool. Also detects and removes old npm/stdio-based MCP entries that no longer work.

bash -c "$(curl -fsSL -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/CloudSecurityAlliance/DesktopSetup/HEAD/scripts/macos-mcp-setup.sh)"

Clone a repo & start Claude

Once AI tools are installed, use these one-liners to clone any CSA repo and launch Claude Code. Replace ORG/REPO with the actual org and repo name.

macOS

bash -c "$(curl -fsSL -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/CloudSecurityAlliance/DesktopSetup/HEAD/scripts/clone-and-claude.sh)" -- ORG/REPO

Windows

$env:CSA_REPO='ORG/REPO'; irm https://raw.githubusercontent.com/CloudSecurityAlliance/DesktopSetup/HEAD/scripts/clone-and-claude.ps1 -Headers @{'Cache-Control'='no-cache'} | iex

The scripts check prerequisites, clone the repo to ~/GitHub/OrgName/RepoName, and tell you how to launch Claude Code. Safe to re-run — they skip the clone if the repo already exists and pull latest changes instead.

Updating

macOS

Run the update script to update everything at once (Homebrew formulas/casks, npm globals, pip packages, and Claude Code). Saves a snapshot of all installed versions before updating so you can roll back if anything breaks:

bash -c "$(curl -fsSL -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/CloudSecurityAlliance/DesktopSetup/HEAD/scripts/macos-update.sh)"

Plugins only — if you just want to refresh CSA Claude Code plugins (no Homebrew/npm/pip), run the standalone plugins script:

bash -c "$(curl -fsSL -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/CloudSecurityAlliance/DesktopSetup/HEAD/scripts/macos-plugins.sh)"

Or update individual package managers manually:

brew update && brew upgrade     # Homebrew formulas and casks
npm update -g                   # npm global packages (Codex, Gemini, Wrangler)
pip install --upgrade pip       # pip itself
claude update                   # Claude Code

Snapshots are saved to ~/Library/Logs/CSA-DesktopSetup/ with timestamps.

Windows

Re-run either install script to upgrade — they detect what's already installed and update in place. npm tools can also be updated manually:

npm update -g @openai/codex @google/gemini-cli

Claude Code updates itself automatically.

Plugins only — Windows counterpart of macos-plugins.sh:

irm https://raw.githubusercontent.com/CloudSecurityAlliance/DesktopSetup/HEAD/scripts/windows-plugins.ps1 -Headers @{'Cache-Control'='no-cache'} | iex

Work tools (productivity apps)

Optional — install these alongside AI tools for a complete work setup. Covers productivity, communication, browser, and (optionally) general developer tools.

macOS

Installs: 1Password, Slack, Zoom, Chrome, Microsoft Office, Git, GitHub CLI. Optional dev profile adds VS Code, AWS CLI, and Wrangler.

bash -c "$(curl -fsSL -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/CloudSecurityAlliance/DesktopSetup/HEAD/scripts/macos-work-tools.sh)"

Windows

Installs: Git, GitHub CLI, 1Password, Slack, Zoom, Chrome. Optional dev profile adds VS Code, AWS CLI, and Wrangler. Requires the PowerShell execution policy from the Windows AI tools section above.

irm https://raw.githubusercontent.com/CloudSecurityAlliance/DesktopSetup/HEAD/scripts/windows-work-tools.ps1 -Headers @{'Cache-Control'='no-cache'} | iex

Plugins installed

The AI tools installers (and the macOS updater) install a curated set of Claude Code plugins so CSA staff can use them right away and explore what's possible. Public plugins install for everyone; CSA-marketplace plugins install only if your GitHub account can access the private CSA marketplaces.

Process & planning

  • superpowers — brainstorming, writing-plans, TDD, systematic-debugging, code review, verification, dispatching-parallel-agents, using-git-worktrees
  • feature-dev/brainstorm, /write-plan, /execute-plan, /implement, /finish-branch
  • claude-code-setup — claude-automation-recommender (scan a repo, recommend hooks/agents/skills)
  • claude-md-management/init improvements, claude-md-improver
  • session-report — HTML report of tokens, cache, skills, expensive prompts
  • explanatory-output-style — toggle: add educational explanations to responses
  • learning-output-style — toggle: interactive learning with contribution requests

Software development

  • commit-commands/commit, /commit-push-pr, /clean_gone
  • code-review/review
  • pr-review-toolkit/review-pr, multi-agent PR review (silent-failure-hunter, type-design-analyzer, pr-test-analyzer, comment-analyzer, code-simplifier)
  • github — GitHub MCP (issues, PRs, code search, releases, reviews)
  • greptile — Greptile code intelligence
  • frontend-design — polished UI code that avoids generic AI aesthetics
  • playwright — browser automation and UI testing via Playwright MCP
  • chrome-devtools-mcp — Chrome DevTools MCP (debugging, performance, a11y, LCP)
  • playground — single-file interactive HTML explorers
  • typescript-lsp — TypeScript language server integration
  • semgrep — Semgrep security scanning (requires semgrep CLI)
  • security-guidance — security review and guidance
  • cloudflare — Workers, Pages, D1/R2/KV, Durable Objects, Agents SDK, Wrangler

Building Claude apps

  • claude-api — Claude API / Anthropic SDK (migrations, caching, tool use, batching)
  • agent-sdk-dev/new-sdk-app, Agent SDK verifiers
  • mcp-server-dev — build-mcp-server, build-mcp-app, build-mcpb (local .mcpb bundles)
  • plugin-dev/create-plugin, plugin-structure, command/agent/skill/hook development
  • skill-creator — create, edit, and benchmark skills
  • pydantic-ai — Pydantic AI framework

Business & productivity

  • slack/standup, /find-discussions, /summarize-channel, /draft-announcement, /channel-digest
  • document-skills — docx, pptx, pdf, xlsx, canvas-design, brand-guidelines, internal-comms, theme-factory, webapp-testing
  • example-skills — reference implementations of the document skills above

CSA-specific (installed if you're on CSA-Internal teams)

  • cwe-analysis — CWE assignment, chains, AI relevance
  • incident-analysis — OSINT, timeline, impact, defensive recs for cloud/AI incidents
  • nist-ir-8477-mapping — map between frameworks using NIST IR 8477
  • security-knowledge-ingestion — convert standards/regs into structured data
  • cino-project-tracker — CINO Airtable project registry
  • audience-lens — build audience profiles for writing tasks
  • writing-style-forge — generate writing-style plugins from samples
  • research-initiative-tracker — CSA research initiative tracking
  • csa-certification-development, csa-training-content-development, csa-training-design-system — training & certification workflows

The plugin lists live in scripts/csa-plugins.txt and scripts/csa-plugins-internal.txt — edit those to change what gets installed by default. Users can disable any individual plugin locally with claude plugin disable <name>.


Repository contents

scripts/

Each script is self-contained and idempotent (safe to re-run):

  • macos-ai-tools.sh — AI desktop apps and coding assistants with migration support (macOS)
  • macos-mcp-setup.sh — Discover, validate, and write MCP server tokens (Airtable, GitHub, Gmail) for Claude Code, Codex, and Gemini; cleans up legacy npm/stdio entries (macOS)
  • macos-update.sh — Update all installed tools with version snapshots (macOS)
  • macos-plugins.sh — Standalone Claude Code plugin install/update (macOS)
  • windows-plugins.ps1 — Standalone Claude Code plugin install/update (Windows)
  • macos-work-tools.sh — Core work apps + optional developer tools (macOS)
  • windows-ai-tools.ps1 — AI desktop apps and coding assistants with migration support (Windows)
  • windows-work-tools.ps1 — Core work apps + optional developer tools (Windows)
  • clone-and-claude.sh — Clone a CSA repo and set up for Claude Code (macOS)
  • clone-and-claude.ps1 — Clone a CSA repo and set up for Claude Code (Windows)

docs/

Design documents and implementation notes for the scripts.

archives/

Previous versions of scripts preserved for reference.

Contributing

Found a problem? Have a suggestion?

Open an issue — we have templates for common requests.

License

Apache License 2.0 — see LICENSE.

About

Setup of Desktop tools and AI support

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors