Wireit

From forcedotcom/salesforcedx-vscode · View interactive version

Wireit is an AI agent skill from the GitHub repository forcedotcom/salesforcedx-vscode. Author and use Wireit scripts. Use when working with Wireit configuration, package.json scripts, build pipelines, or when the user mentions Wireit.

How to use this skill

Skill file

Wireit

Documentation

Full documentation: https://github.com/google/wireit

Authoring Wireit Scripts

caching: if you specify files and output (even []) you'll get caching (skips when neither have changed). test:container* scripts declare CB_GREP and CB_UNDER_TEST as { "external": true } env — VSIX and image under test aren't wireit inputs, so caching includes them in the fingerprint via env.

Using Wireit Scripts

Extra Arguments (passing CLI flags through wireit)

ref: https://github.com/google/wireit?tab=readme-ov-file#extra-arguments

Common Patterns

Errors

If you see "Unknown error thrown: Error: Did not expect..." or "Internal error!" from wireit — another process was running the same scripts. Re-run the command yourself to confirm it passes. DO NOT CLEAR .wireit to solve this.

Notes

each package will have its own .wireit cache, and there's also one at the top level.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.