pywf-oss-setup-machine

Guide the maintainer through setting up a Mac for pywf open-source Python libraries: global mise, uv and gh, shell activation, the home_secret.toml key paths, and the GitHub, Codecov, Read the Docs an

SKILL.md

GitHub

Take a machine from nothing to "every template repo runs mise run inst, and every setup task finds its token", as a guided runbook: check, report, and leave every step that touches a secret to the user.

Read ../pywf-oss-base/SKILL.md, then:

  • ../pywf-oss-base/references/01-secrets.md
  • ../pywf-oss-base/references/02-machine-setup.md

Steps

  1. Check the tools: mise --version, uv --version, gh auth status, and mise activate in ~/.zshrc. Report what is present and missing in a short table.
  2. Install what is missing. Show the brew install ... lines, and run them after the user's yes. gh auth login is interactive; run it only if the user asks.
  3. Secrets file.
    • Check only that the file exists and its permissions, with ls -l ~/home_secret.toml. Never read its content.
    • If it is missing, list the key paths in the [env] block of mise.toml, say what each value is for, and show the chmod 600 line.
  4. Tokens. For each token, give the creation URL and the exact scopes. The user creates each token and writes it into the file. Never ask for a token in the chat.
  5. Verify. In a template repo, run mise trust if needed, then mise run inst and the True/False check. Report each variable as present or missing, naming the mise.toml key path of a missing one.

Boundaries

  • The user makes account-level settings, such as connecting GitHub in Read the Docs, in the browser. Give the link and say what to click.

Next step for a new repo: pywf-oss-setup-repo.