google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Use when asking about Midnight smart contracts, Compact language basics, Impact VM, contract state separation, circuit entry points, deployment, or transaction execution model.
Full skill instructions
Midnight smart contracts are replicated state machines that process transactions to modify ledger state. Unlike traditional blockchains, they incorporate zero-knowledge proofs to enable data privacy.
Transaction = Public Transcript + Zero-Knowledge Proof
The proof demonstrates correct execution without revealing private inputs.
Compact is Midnight's domain-specific language for writing privacy-preserving contracts.
// Ledger state (on-chain, public unless MerkleTree)
ledger {
counter: Field;
commitments: MerkleTree<32, Bytes<32>>;
}
// Circuit = entry point with ZK proof
export circuit increment(amount: Field): Void {
ledger.counter = ledger.counter + amount;
}
// Witness = circuit with private inputs
export witness privateIncrement(
secret: Field // Private, not revealed
): Void {
assert secret > 0;
ledger.counter = ledger.counter + 1;
}
| Construct | Purpose |
|---|---|
ledger { } | On-chain public state |
export circuit | Public entry point, generates ZK proof |
export witness | Entry point with private inputs |
assert | Constraint that must hold (proven via ZK) |
Everything in ledger { } is publicly visible except MerkleTree contents:
ledger {
public_counter: Field; // Visible to all
public_address: Address; // Visible to all
hidden_set: MerkleTree<32, T>; // Contents hidden
}
Private data exists only in the user's local environment:
export witness transfer(
secret_key: Bytes<32>, // Private - user's machine only
amount: Field // Private - user's machine only
): Void {
// Prove authorization without revealing key
const pub_key = persistentHash(secret_key);
assert pub_key == ledger.authorized;
// ... rest of logic
}
Well-formedness check (no ledger state needed)
Guaranteed phase (must succeed)
Fallible phase (may fail without reverting guaranteed)
Old State + Transaction → New State
↓
Impact Program Execution
↓
Effects must match declared effects
↓
New state stored
Impact is the on-chain virtual machine that executes contract logic.
| Property | Description |
|---|---|
| Stack-based | Operations push/pop from stack |
| Non-Turing-complete | Bounded execution, no infinite loops |
| Deterministic | Same input → same output always |
| Gas-bounded | Programs have cost limits |
[Context, Effects, State]
↓ ↓ ↓
Tx data Actions Contract data
Developers write Compact, not Impact. Impact is an implementation detail visible when inspecting transactions.
Contracts interact with tokens through Zswap:
// Receive coins into contract
receive coins: Coin[];
// Send coins from contract
send value: QualifiedValue, to: Address;
Important: Coin operations are recorded in the public transcript but don't directly modify contract state. They're Zswap-level operations.
Contracts are deployed via deployment transactions:
Deployment Transaction = Contract State + Nonce
Contract Address = Hash(deployment data)
ledger {
count: Field;
}
export circuit increment(): Void {
ledger.count = ledger.count + 1;
}
ledger {
owner_hash: Bytes<32>;
value: Field;
}
export witness authorizedUpdate(
owner_secret: Bytes<32>,
new_value: Field
): Void {
assert persistentHash(owner_secret) == ledger.owner_hash;
ledger.value = new_value;
}
ledger {
commitments: MerkleTree<32, Bytes<32>>;
nullifiers: Set<Bytes<32>>;
}
export witness spend(
amount: Field,
secret: Bytes<32>,
path: MerkleTreePath<32, Bytes<32>>
): Void {
const commitment = persistentCommit(amount, secret);
assert ledger.commitments.member(commitment, path);
const nullifier = persistentHash(commitment, secret);
assert !ledger.nullifiers.member(nullifier);
ledger.nullifiers.insert(nullifier);
}
For detailed technical information:
references/compact-syntax.md - Complete language referencereferences/impact-vm.md - VM internals, opcodes, gas costsreferences/execution-semantics.md - Detailed transaction execution flowWorking contracts:
examples/counter.compact - Minimal contract exampleexamples/private-vault.compact - Private state managementProject scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.