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 UvRoxx/midnight-agent-skills --skill midnight-sdk-guidegit clone --depth 1 https://github.com/UvRoxx/midnight-agent-skillsWrote 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/uvroxx/midnight-agent-skills/midnight-sdk-guide)<a href="https://agentmods.dev/skills/uvroxx/midnight-agent-skills/midnight-sdk-guide"><img src="https://agentmods.dev/badge/skills/uvroxx/midnight-agent-skills/midnight-sdk-guide/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/uvroxx/midnight-agent-skills/midnight-sdk-guide"><img src="https://agentmods.dev/badge/skills/uvroxx/midnight-agent-skills/midnight-sdk-guide.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.00056 | $0.01761 |
| Opus 5 | $0.00028 | $0.00881 |
| Sonnet 5 | $0.00011 | $0.00352 |
| Haiku 4.5 | $0.00006 | $0.00176 |
Grade A, and why
midnight-sdk-guide 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 12d 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 — 331 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Midnight TypeScript SDK Quick Reference
Guide for integrating Midnight contracts with TypeScript applications.
When to Use
Reference this guide when:
- Building a frontend for a Midnight dApp
- Connecting the Lace wallet
- Deploying or calling contracts from TypeScript
- Handling errors from the SDK
- Building transaction flows
Installation
npm install @midnight-ntwrk/midnight-js-contracts
Core Types
Contract Deployment
import { deployContract, ContractDeployment } from '@midnight-ntwrk/midnight-js-contracts';
const deployment: ContractDeployment = await deployContract({
contract: compiledContract,
privateState: initialPrivateState,
args: constructorArgs,
});
const { contractAddress, initialState } = deployment;
Contract Interaction
import { callContract } from '@midnight-ntwrk/midnight-js-contracts';
// Call a circuit
const result = await callContract({
contractAddress,
circuitName: 'increment',
args: [amount],
privateState: currentPrivateState,
});
// Result contains new state and return value
const { newPrivateState, returnValue, proof } = result;
Providers
import {
MidnightProvider,
createMidnightProvider
} from '@midnight-ntwrk/midnight-js-contracts';
const provider = await createMidnightProvider({
indexer: 'https://indexer.testnet.midnight.network',
node: 'https://node.testnet.midnight.network',
proofServer: 'https://prover.testnet.midnight.network',
});
State Management
interface ContractState<T> {
publicState: PublicState;
privateState: T;
}
// Subscribe to state changes
provider.subscribeToContract(contractAddress, (state) => {
console.log('New state:', state);
});
Transaction Building
import { buildTransaction } from '@midnight-ntwrk/midnight-js-contracts';
const tx = await buildTransaction({
contractAddress,
circuitName: 'transfer',
args: [recipient, amount],
privateState,
});
// Sign and submit
const signedTx = await wallet.signTransaction(tx);
const txHash = await provider.submitTransaction(signedTx);
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.
- 12d ago First seen · 331 lines · 56 tokens per session scan A cb5c128f4579
midnight-sdk-guide is a skill published in the GitHub repository UvRoxx/midnight-agent-skills (9 stars, last pushed 5mo ago), licensed MIT. It adds 56 tokens to every session and 1,761 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
midnight-dapp-dev
Comprehensive guide for Midnight Network DApp frontend development covering project scaffolding with Vite and React 19 plus shadcn/ui templates, Next.js wallet connector patterns via the DApp Connector API with App Router, React wallet connector with Vite setup, provider architecture including MidnightProviders, proof…
prowler-tour
Keeps product-tour definitions aligned with the UI features they describe. Trigger: When modifying UI components that have associated tours, editing tour definition files, or renaming data-tour-id attributes.
onchainkit
Build onchain apps with Coinbase's OnchainKit React components - wallets, swaps, NFTs, payments.
remotion-animation
Generates animation configurations for Remotion including spring configs, interpolations, easing functions, and timing logic. Focuses ONLY on animation parameters, NOT component implementation. Use when defining animation behavior or when asked to "configure animations", "setup spring configs", "define easing curves".
system-text-json-net11
Imperative guidance for the System.Text.Json APIs added in .NET 11: the built-in JsonNamingPolicy.PascalCase naming policy, and the strongly-typed JsonSerializerOptions.GetTypeInfo () and JsonSerializerOptions.TryGetTypeInfo (out JsonTypeInfo ? info) metadata accessors. USE ONLY when the user is targeting net11.0 or…
adopting-generated-api-types
Use when migrating frontend code from manual API client calls (api.get, api.create, api.surveys.get, api.dashboards.list, new ApiRequest()) and handwritten TypeScript interfaces to generated API functions and types. Triggers on files importing from lib/api, files with api.get . , manual interface definitions that…