agentleFS
EnjoyoerEnjoyoer/loadout/skills/web-browser/pake/SKILL.md

pake

Skill0 starsChanged 2 months agoMITView on GitHub

Package web pages, web apps, or local HTML into small cross-platform desktop applications with Pake/Tauri. Use when the user asks to wrap a website as a desktop app, create a Pake build command, troubleshoot Pake packaging, choose Pake CLI options, package local static files, or customize a Pake app with injected CSS/JS, icons, tray behavior, window sizing, navigation, or permissions.

  • Installs packages

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use Pake when a web page should behave like a native desktop app without building an Electron shell.

    line 10
  2. Distinctive:

    Prefer the CLI path for normal builds.

    line 13
  3. Very specific:

    Check prerequisites before building: Node.js 22+ recommended, Rust 1.85+, package manager available, and platform-specific Tauri …

    line 14
  4. Very specific:

    Use --width, --height, --min-width, and --min-height for apps with fixed dashboard or tool layouts.

    line 52
  5. Very specific:

    Use --icon for a local or remote icon.

    line 54
  6. Very specific:

    Use --show-system-tray, --hide-on-close, and --start-to-tray for chat, music, monitor, or background apps.

    line 56
  7. Very specific:

    Use --new-window, --multi-window, or --force-internal-navigation when authentication, popups, or cross-domain links fail.

    line 58
  8. Very specific:

    Use --inject with CSS/JS files for ad removal, visual cleanup, helper shortcuts, or site-specific behavior.

    line 60
  9. Very specific:

    Use --camera, --microphone, and --wasm only when the target app actually needs those capabilities.

    line 62
  10. Very specific:

    Use --targets when the user requests a specific output architecture or package format.

    line 64
  11. Distinctive:

    Do not retry the same failing command repeatedly.

    line 68
  12. Very specific:

    Read references/pake-cli.md when exact option names, platform requirements, or examples are needed.

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pake

Workflow

Use Pake when a web page should behave like a native desktop app without building an Electron shell.

  1. Clarify the target URL or local index.html, app name, platform, icon preference, and whether the output should be an installer, portable binary, or fast test build.
  2. Prefer the CLI path for normal builds. Use online/GitHub Actions builds when the local machine cannot satisfy Rust/Tauri prerequisites or the user wants no local setup.
  3. Check prerequisites before building: Node.js 22+ recommended, Rust 1.85+, package manager available, and platform-specific Tauri requirements installed.
  4. Build in a clean output folder. Keep generated installers/binaries outside source folders unless the user asks otherwise.
  5. Validate by launching the app, checking login/navigation/popups/downloads, and rebuilding with focused options when behavior differs from the browser.

Commands

Install:

pnpm install -g pake-cli

Basic build:

pake "https://example.com" --name "Example"

Common full build:

pake "https://example.com" --name "Example" --width 1200 --height 800 --icon ".\icon.png" --show-system-tray --keep-binary

Fast debugging build:

pake "https://example.com" --name "Example" --debug --iterative-build

Package local static files:

pake ".\dist\index.html" --name "Example" --use-local-file

Option Selection

Use --width, --height, --min-width, and --min-height for apps with fixed dashboard or tool layouts.

Use --icon for a local or remote icon. If omitted, Pake tries to fetch the site icon and convert it for the platform.

Use --show-system-tray, --hide-on-close, and --start-to-tray for chat, music, monitor, or background apps.

Use --new-window, --multi-window, or --force-internal-navigation when authentication, popups, or cross-domain links fail.

Use --inject with CSS/JS files for ad removal, visual cleanup, helper shortcuts, or site-specific behavior. Keep injected files small and source-controlled with the build when possible.

Use --camera, --microphone, and --wasm only when the target app actually needs those capabilities.

Use --targets when the user requests a specific output architecture or package format.

Troubleshooting

Do not retry the same failing command repeatedly. If a build fails twice with the same class of error, research 3-5 current fixes from the upstream Pake/Tauri docs, choose the best match, then implement it.

On Windows, Tauri prerequisites are usually the blocker: Visual Studio Build Tools 2022, Windows 10 SDK, and C++ build components must be present. For ARM64 output, install the ARM64 C++ build tools.

For auth issues, first try --new-window or --multi-window; if the provider blocks embedded webviews, explain that Pake cannot bypass provider policy.

For local HTML, use --use-local-file so asset folders are copied recursively.

For TLS/dev-server packaging, use --ignore-certificate-errors only for trusted local or intranet targets.

References

Read references/pake-cli.md when exact option names, platform requirements, or examples are needed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.