Skip to content
Back to skills

Machine Setup

BSecurity

Setting up a new macOS, Windows, or Linux computer so that nothing lives only on it: the CLIs, sign-ins, Claude Code user settings and marketplaces, the 1Password SSH agent with an SSH config built from 1Password, Git identities per folder, and the repositories to clone. Load when the user asks to set up a computer or when one of these is missing.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
developmentgophpshellbashgitdocumentation

Works with

  • claude code
  • cli
  • mcp

Security analysis

B75/100
  • criticalAccesses sensitive system or user directories

Pro shows the line behind each finding and how to fix it

Scanned December 2, 2026

npx -y skills add the-up/ai --skill machine-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Machine Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Machine Setup
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/the-up-machine-setup/badge)](https://www.skillsdirectory.com/skills/the-up-machine-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: machine-setup
description: "Setting up a new macOS, Windows, or Linux computer so that nothing lives only on it: the CLIs, sign-ins, Claude Code user settings and marketplaces, the 1Password SSH agent with an SSH config built from 1Password, Git identities per folder, and the repositories to clone. Load when the user asks to set up a computer or when one of these is missing."
---

# Machine Setup

- The goal is a computer that holds no secret and no state of its own. Every key, token, password, and certificate lives in 1Password; everything else comes from a repository, a plugin, or an account sign-in. Never write a private key, token, or password to a file, and if you find one on the computer, propose moving it to 1Password and deleting the file.
- Find the operating system first and follow its steps below; paths written with `~` mean `%USERPROFILE%` on Windows.
- Ask each question when its step comes, as the [Communication](../communication/SKILL.md) rules say: the Git hosting and project management accounts this computer uses, the 1Password accounts, the folder for each organization's repositories, and the repositories to clone.
- Install what's missing from the official sources, in the order of the [Service Access](../service-access/SKILL.md) rules: Git, the GitHub CLI `gh`, the GitLab CLI `glab` when GitLab is used, `jq`, and the 1Password CLI from the beta channel that the [Environment Variables](../environment-variables/SKILL.md) rules require.
  - macOS: Homebrew for Git, `gh`, `glab`, and `jq`; the 1Password CLI beta from 1Password's release page, because the Homebrew cask carries only the stable release. Before installing it, confirm with `pkgutil --check-signature` that the Developer ID is AgileBits Inc. (2BUA8C4S2C).
  - Windows: `winget` for Git for Windows, `gh`, `glab`, and `jq`; Git Bash from Git for Windows is the shell that Claude Code's Bash tool and the plugin's scripts need. Install the 1Password CLI beta from 1Password's release page into `C:\Program Files\1Password CLI` on the system `PATH`, because `winget` carries only the stable release, after `Get-AuthenticodeSignature` shows the subject `CN=Agilebits`.
  - Linux (Ubuntu): `apt` for Git and `jq`, the GitHub CLI's own apt repository for `gh`, the `.deb` from GitLab's release page for `glab`, and 1Password's apt repository on its beta channel for the 1Password CLI, with 1Password's signing key added to the keyring before the first install.
- When the computer is used for PHP projects, install Lerd and register its MCP server, as the [Local Environment](../local-environment/SKILL.md) rules describe.
- The user installs the 1Password desktop app (on Ubuntu from 1Password's apt repository), signs in to every account in it, and turns on the CLI integration and the SSH agent under Settings › Developer. On Windows, the user also stops and disables the OpenSSH Authentication Agent service, so that 1Password can take over its named pipe. Set up the 1Password MCP server as 1Password's documentation describes for that operating system, add it to Claude Code at user scope, and confirm that `op account list` shows every account.
- Sign in to each Git hosting account with its CLI (`gh auth login`, `glab auth login`), and run `gh auth setup-git`. Claude Code clones a private plugin marketplace over SSH with a key in the SSH agent, or over HTTPS with these credentials.
- Merge these into `~/.claude/settings.json` without removing keys the file already has:
  - `"attribution": false`;
  - `"autoMemoryEnabled": false`, so that Claude Code neither reads nor writes its auto memory on the computer: that memory stays on one computer, outside the repository and its history, so what a later session needs lives in the task and in the repository, as the [Task Management](../task-management/SKILL.md) rules describe;
  - `"cleanupPeriodDays": 7`, so that Claude Code deletes session transcripts that are more than a week old when a session starts: long enough to resume a session that stopped or to look something up in it, and short enough that the computer doesn't become where the history lives; keeping transcripts costs no tokens. The desktop app's session transcripts are exempt from this key, and `desktopSessionCleanupPeriodDays` limits them instead, a key you add only when the user asks for it;
  - `instructionFiles` set to `"claude-md-and-agents-md"` under `pluginConfigs` > `cc-plugin-agents-md@builtin` > `options`, which is the **Project instructions** setting in `/config`, so that Claude Code loads a repository's `AGENTS.md` also when a `CLAUDE.md`, a `.claude/CLAUDE.md`, or a `CLAUDE.local.md` exists; the [Repository Structure](../repository-structure/SKILL.md) rules say when a repository needs this. Claude Code reads this key only from the user's settings, a `--settings` file, or managed settings, never from a project's settings, which is why it's set here:

    ```json
    { "pluginConfigs": { "cc-plugin-agents-md@builtin": { "options": { "instructionFiles": "claude-md-and-agents-md" } } } }
    ```

  - each plugin marketplace the user names, with `autoUpdate` on, and its plugins enabled; when a plugin also arrives as `<plugin>@synced` from the claude.ai account, Claude Code loads this copy and leaves the synced one unloaded;
  - the permission mode, model, and effort level the user asks for.
- Point SSH at the 1Password agent:
  - macOS: `IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"`.
  - Linux: `IdentityAgent ~/.1password/agent.sock`.
  - Windows: OpenSSH reaches the agent through the named pipe without a setting; make Git use that OpenSSH with `git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe`.
- Build `~/.ssh/config` from the SSH Key items in 1Password: each item lists its hosts in an `SSH hosts` section, one field per host in the form `<alias> <hostname> <user> [port]`. For each host, write a `Host` block with `HostName`, `User`, `IdentityFile` set to the item's public key, and `IdentitiesOnly yes`, so that a server never sees more keys than its limit allows. Save the public keys with `op read "op://<vault>/<item>/public key"`; private keys never leave 1Password.
- With the user's approval, set the global Git identity and one `includeIf "gitdir:<folder>/"` file for each organization folder, each with the account's name and its commit email (the GitHub noreply address when the account uses one); on Windows, write the folder with forward slashes. When a second account on the same host needs an SSH alias, add a `url.<alias>:<owner>/.insteadOf` rule for its owner.
- Clone each main clone the user names into its folder, as the [Worktrees and Branches](../worktrees-and-branches/SKILL.md) rules describe, and render `.env` files only inside worktrees, as the Environment Variables rules describe.
- Finish with a check of each part: `gh auth status`, `glab auth status`, `op whoami` for every account, `ssh -T` for each Git host alias, `claude plugin list`, and a fetch in each main clone. Report what works, what failed, and what's left to the user.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.