{
  description = "Playwright browser automation skill";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
        python = pkgs.python312;
      in
      {
        devShells.default = pkgs.mkShell {
          buildInputs = [
            (python.withPackages (ps: [
              ps.playwright
            ]))
          ];

          shellHook = ''
            echo "Playwright skill environment ready"
            echo "Run: ./scripts/visit.py --help"
          '';
        };
      }
    );
}
