Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add paritytech/polkadot-apps --skill polkadot-contractsgit clone --depth 1 https://github.com/paritytech/polkadot-appsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/paritytech/polkadot-apps/polkadot-contracts)<a href="https://agentmods.dev/skills/paritytech/polkadot-apps/polkadot-contracts"><img src="https://agentmods.dev/badge/skills/paritytech/polkadot-apps/polkadot-contracts/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/paritytech/polkadot-apps/polkadot-contracts"><img src="https://agentmods.dev/badge/skills/paritytech/polkadot-apps/polkadot-contracts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00070 | $0.01616 |
| Opus 5 | $0.00035 | $0.00808 |
| Sonnet 5 | $0.00014 | $0.00323 |
| Haiku 4.5 | $0.00007 | $0.00162 |
Grade A, and why
polkadot-contracts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Polkadot Smart Contract Interactions
This skill covers the @polkadot-apps/contracts package for typed contract interactions on Asset Hub.
| Export | Import | Purpose |
|---|---|---|
| ContractManager | @polkadot-apps/contracts |
CDM-managed contracts from cdm.json |
| ContractManager.fromClient | @polkadot-apps/contracts |
Convenience: CDM-managed contracts from a ChainClient (creates InkSdk internally) |
| createContract | @polkadot-apps/contracts |
Single contract from raw address + ABI (size-optimized) |
| createContractFromClient | @polkadot-apps/contracts |
Convenience: single contract from a ChainClient (creates InkSdk internally) |
| generateContractTypes | @polkadot-apps/contracts/codegen |
Build-time type generation |
Quick Start: Size-Optimized Path (Recommended for Production)
The constructor + explicit createInkSdk path gives you full control over the InkSdk instance and avoids pulling @polkadot-api/sdk-ink as a transitive dependency of @polkadot-apps/contracts.
import { getChainAPI } from "@polkadot-apps/chain-client";
import { createInkSdk } from "@polkadot-api/sdk-ink";
import { ContractManager } from "@polkadot-apps/contracts";
import { SignerManager } from "@polkadot-apps/signer";
import cdmJson from "./cdm.json";
// Connect and create InkSdk from raw PolkadotClient
const client = await getChainAPI("paseo");
const inkSdk = createInkSdk(client.raw.assetHub, { atBest: true });
const signerManager = new SignerManager();
await signerManager.connect();
const manager = new ContractManager(cdmJson, inkSdk, { signerManager });
const counter = manager.getContract("@example/counter");
// Read (dry-run, no gas cost)
const { value } = await counter.getCount.query();
// Write (signs and submits via signerManager)
await counter.increment.tx();
BYOD Path (Bring Your Own Descriptors)
import { createChainClient } from "@polkadot-apps/chain-client";
import { createInkSdk } from "@polkadot-api/sdk-ink";
import { paseo_asset_hub } from "@polkadot-apps/descriptors/paseo-asset-hub";
import { ContractManager } from "@polkadot-apps/contracts";
import cdmJson from "./cdm.json";
const client = await createChainClient({
chains: { assetHub: paseo_asset_hub },
rpcs: { assetHub: ["wss://sys.ibp.network/asset-hub-paseo"] },
});
const inkSdk = createInkSdk(client.raw.assetHub, { atBest: true });
const manager = new ContractManager(cdmJson, inkSdk, { signerManager });
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 174 lines · 70 tokens per session scan A 018b701030bc
polkadot-contracts is a skill published in the GitHub repository paritytech/polkadot-apps (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 70 tokens to every session and 1,616 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
web3-fullstack-packaged-build
Systematic full-stack Web3 build with mandatory packaging and delivery phase.
web3-fullstack-systematic-build
Systematic approach to building full-stack Web3 applications layer by layer.
solana-dev
Use when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "fuzz my Solana program", "deploy to devnet", "send a v1 transaction", "support larger transactions", "fix maxSupportedTransactionVersion", or "explain…
devtools-event-client
Create typed EventClient for a library. Define event maps with typed payloads, pluginId auto-prepend namespacing, emit()/on()/onAll()/onAllPluginEvents() API. Connection lifecycle (5 retries, 300ms), event queuing, enabled/disabled state, SSR fallbacks, singleton pattern. Unique pluginId requirement to avoid event…
walkeros-create-destination
Use when creating a new walkerOS destination to send events to a vendor or API (GA4/gtag, Meta/Facebook Pixel, Mixpanel, Amplitude, a custom HTTP API, Measurement Protocol), web or server-side. Example-driven workflow: research the vendor SDK and define step examples before implementing the destination interface, env…
walkeros-create-source
Use when creating a new walkerOS source to capture events (browser source, dataLayer interception, server/HTTP source, webhook receiver, event capture), web or server-side. Example-driven workflow: research the input format and define step examples before implementing the push interface, createTrigger, and env pattern.