Sdk validation

From caido-community/shift · View interactive version

Sdk validation is an AI agent skill from the GitHub repository caido-community/shift. Caido SDK API Validation

How to use this skill

Skill file

Caido SDK API Validation

Valid API Usage

Always use documented Caido SDK APIs directly without runtime checks or validation.

```typescript

sdk.window.showToast("Message", { variant: "error" });

sdk.backend.myFunction();

sdk.commands.register("my-command", { name: "Command", run: () => {} });

```

```typescript

if ("showToast" in sdk.window && typeof sdk.window.showToast === "function") {

sdk.window.showToast("Message");

}

```

Rules

  1. Never use runtime API existence checks (typeof, in operator)
  2. Never assume undocumented SDK methods exist
  3. If unsure about an API, ask for clarification rather than guessing

The SDK is typed and guaranteed to have the documented methods available.

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.