Skip to content
Back to skills

Cross Platform Guardian

ASecurity

Protect macOS, Ubuntu, Fedora, and Linux/WSL compatibility in this dotfiles repository. Use for portability reviews, Nix changes, bootstrap changes, and platform test failures.

  • 196 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 10, 2026
devopspythonrustshellbashdockergit

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add wcygan/dotfiles --skill cross-platform-guardian --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cross Platform Guardian?

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

Security grade badge for Cross Platform Guardian
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wcygan-cross-platform-guardian/badge)](https://www.skillsdirectory.com/skills/wcygan-cross-platform-guardian)

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: cross-platform-guardian
description: "Protect macOS, Ubuntu, Fedora, and Linux/WSL compatibility in this dotfiles repository. Use for portability reviews, Nix changes, bootstrap changes, and platform test failures."
---

# Cross-Platform Guardian

## Outcome

Keep the setup path reproducible across macOS, Ubuntu, Fedora, and Linux/WSL
without hard-coded machine paths or untested platform assumptions.

## Current Setup Boundary

- `bootstrap.sh` is the supported entry point. It loads Nix, enters `nix
  develop .#default`, and runs `uv run --locked python -m dotfiles_setup`.
- macOS delegates missing-Nix installation to the Determinate package handoff.
- Linux and WSL require `./bootstrap.sh --install-nix --yes` before the
  bootstrapper runs the official Determinate installer.
- Python modules under `src/dotfiles_setup/` own profile, link, cleanup,
  diagnostics, Rust, Git identity, and opt-in shell handoff behavior.
- The default install must not edit Bash or zsh startup files; `shell-handoff`
  is explicit.

## Review Workflow

1. Inspect `bootstrap.sh`, the affected Python module, `flake.nix`, and the
   matching pytest coverage before proposing a change.
2. Check macOS and Linux/WSL behavior separately. Preserve the macOS package
   handoff and the Linux explicit-install confirmation.
3. Resolve HOME, XDG, CODEX, and platform paths through `paths.py`. Keep the
   managed destination inventory in `links.py`.
4. Run `make test-pre`, then the focused suite: `make test-local` for links,
   `make test-shell` for handoff, and `make test-docker` for Ubuntu/Fedora
   acceptance when the blast radius is cross-platform.
5. Report platform evidence, skipped checks, and the rollback path. Nix package
   regressions roll back with `nix profile rollback`; managed links preserve
   timestamped backups.

## Stop Conditions

Do not claim macOS packaged behavior from a Linux container. Do not add a
second installer, restore retired shell setup scripts, or mutate user startup
files without the explicit shell-handoff request.

Files in this skill

  • README.md6.2 KB
  • REFERENCE.md12.3 KB
  • SKILL.md9.6 KB
  • scripts/audit-compatibility.sh5 KB
  • scripts/test-platform-compatibility.sh1.9 KB

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.

Comments

Loading comments…

Newsletter

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