Use this as a practical Windsurf playbook for shipping SDK-powered privacy apps. The prompts below target the TypeScript SDK (Documentation Index
Fetch the complete documentation index at: https://docs.cloak.ag/llms.txt
Use this file to discover all available pages before exploring further.
@cloak.dev/sdk).
Quick launch
Use in Cursor
Open the Cursor starter prompt.
Use in Claude Code
Open the Claude starter prompt.
Use in Windsurf
Open the Windsurf starter prompt.
1) Rules file
Create.windsurf/rules.md:
View .windsurf/rules.md template
View .windsurf/rules.md template
Windsurf Rules for SDK
We integrate@cloak.dev/sdk.Constants
- Program ID:
zh1eLd6rSphLejbFfJEneUwzHRfMKxgzrgkfwA6qRkW - Circuit base URL:
https://cloak-circuits.s3.us-east-1.amazonaws.com/circuits/0.1.0
Capability groups (must check all)
- Note API
- UTXO API
- Scanner/compliance
- Viewing keys + metadata encryption
- Relay/proof/Merkle helpers
- Utility modules (fees/errors/network/wallet/storage)
Runtime rules
- Prefer UTXO flows for new features.
- Keep transaction amounts as
bigint. - Enforce viewing-key registration before actions.
- Build cache-first history with explicit rescan.
Security rules
- Never output secrets in logs.
- Never include raw private material in telemetry.
- Transaction signatures are public and can be logged for support/debugging.
- Use SDK defaults for program, relay, and circuits. Do not expose these as user-facing config.
Docs
/llms.txt/llms-full.txt/sdk/llms.txt/sdk/api-reference/sdk/utxo-transactions/sdk/error-handling
2) Starter prompt
Copy starter prompt
Copy starter prompt
Implement this feature using the complete
@cloak.dev/sdk model.Step 1: output a capability matrix (all 6 groups) with used/not-used + reason.Step 2: implement with:- bigint-safe logic
- wallet-adapter-compatible flow
- keypair-bytes fallback where relevant
- scanner/compliance handling
- robust error UX; rely on SDK stale-root retries by default
3) Prompt pack
Scaffold feature-complete integration
Scaffold feature-complete integration
Generate deposit/send/withdraw/swap handlers, history scanner integration, cache, and CSV export.
Refactor existing codebase
Refactor existing codebase
Patch existing app code to current SDK contracts with minimal UI churn.
Reliability and UX pass
Reliability and UX pass
Improve error categorization, progress states, stale-root handling, and operational resilience.