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.5 | $0.00022 | $0.00704 |
| Sonnet 5.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 2mo 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.
- 2mo 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 7mo ago), licensed MIT. It adds 56 tokens to every session and 1,761 once invoked, about $0.0002 per session on Opus 5.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.
midnight-sdk-guide compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| midnight-sdk-guideUvRoxx/midnight-agent-skills | Skill | 9 | 7mo ago | MIT | A | 56 | Claude Code, Codex |
| midnight-dapp-devmzf11125/midnight_agent_skills | Skill | 5 | 4mo ago | MIT | A | 374 | Claude Code, Codex |
| midnight-compactmzf11125/midnight_agent_skills | Skill | 5 | 4mo ago | MIT | A | 91 | Claude Code, Codex |
| midnight-apimzf11125/midnight_agent_skills | Skill | 5 | 4mo ago | MIT | A | 104 | Claude Code, Codex |
| midnight-conceptsmzf11125/midnight_agent_skills | Skill | 5 | 4mo ago | MIT | A | 76 | Claude Code, Codex |
| midnight-networkmzf11125/midnight_agent_skills | Skill | 5 | 4mo ago | MIT | A | 80 | Claude Code, Codex |
| midnight-walletmzf11125/midnight_agent_skills | Skill | 5 | 4mo ago | MIT | B | 287 | Claude Code, Codex |