Dfinity official canhelp

From jiayaoqijia/cryptoskill · View interactive version

Dfinity official canhelp is an AI agent skill from the GitHub repository jiayaoqijia/cryptoskill. Display a human-readable summary of a canister's interface given its mainnet canister ID or a human-readable name. Like --help but for canisters. Only for mainnet canisters — for local canisters, read the generated .did file in your project directly.

How to use this skill

Skill file

Given a canister ID or name in $ARGUMENTS, fetch and summarize its Candid interface.

Steps

  1. Resolve the canister ID by running the resolve script from the skill's base directory:

```bash

./scripts/resolve-canister-id.sh "$ARGUMENTS"

```

If $ARGUMENTS is already a valid principal, the script echoes it back.

Otherwise, it queries the IC Dashboard API and outputs matches as <canister-id> <name> (one per line).

  1. Fetch the Candid interface using the resolved canister ID:

```bash

./scripts/fetch-candid.sh <resolved-canister-id>

```

The script outputs the path to the downloaded .did file.

  1. Read the file using the Read tool.
  1. Present the output as a readable summary with the following structure:

Canister <canister-id>

Query methods:

Update methods:

Types:

Guidelines

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.