Daml Skill for Claude Code
If you’re building on Canton with AI / LLMs for Vibe Coding, Agentic Workflows, or just asking Claude to help with Daml. You’ve most probably hit the wall where Claude writes plausible-looking contracts that fail at runtime with multiple authorization errors or uses daml build instead of dpm or doesn’t know Token Standard exists.
Built a fix:
CF Daml Skill for Claude Code:
A Claude skill built specifically for Canton Builders, install it once and Claude automatically knows:
-
Daml authorization model & Canonical Canton patterns trained from working code: Propose-Accept, Delegation, Sharded Hot-Singleton, DvP settlement, Token Standard allocation flows, traces who needs to sign what and whether the parent transaction actually covers, and more.
-
Code review mode: paste a template, get a structured checklist back covering signatories, choices, authorization chain, test coverage
One command to install: npx @canton-network-devs/cf-daml-skill
Detects Claude Desktop automatically and installs directly. No manual file hunting.
Try it with:
→ “Review this Daml template for authorization errors”
→ “What pattern should I use for a regulated asset transfer?”
→ “Write a DvP workflow with a regulator observer”
→ “Why is my choice failing authorization?”
Open source on GitHub & PRs Welcome, if you’ve hit a pattern that’s missing, add it.
Info: CF Daml Skill/README
Dev Hub Listed: dev-hub.canton.foundation
*Note: No MCP or Skill gives 100% accurate code via LLMs, only close to an ideal pattern. It’s strongly advice to manually go through code yourself as well.
@mintlify_test_bot_bo ans this
Disclaimer: This response was generated by an AI assistant trained on the Canton Network documentation. While it strives for correctness, this response may not be accurate.
@Jatin_Pandya_cf This looks like a really practical tool for anyone using Claude with Daml on Canton. The authorization model is one of the trickiest parts to get right when generating code via LLMs, so having a skill that bakes in the canonical patterns — Propose-Accept, Delegation, Sharded Hot-Singleton, DvP settlement, and Token Standard allocation flows — addresses the most common failure modes I’ve seen.
A few questions from a documentation perspective:
-
Does the skill reference the official Canton Network Developer Hub documentation directly when explaining authorization rules, or does it rely entirely on the trained patterns from working code? If the latter, it might be worth linking specific doc pages in the README for users who want to cross-reference, e.g., the Daml Authorization Model and Token Standard docs.
-
For the “code review mode” that returns a structured checklist — are the signatory/choice/authorization checks based on static analysis of the template AST, or are they derived from pattern matching against the trained code corpus? That distinction matters for accuracy expectations.
-
Are there any plans to extend the skill for multi-contract workflows (e.g., Exercising a choice on one contract and archiving another in the same transaction)? That’s where authorization chains get especially nuanced and where generated code most often fails at runtime.
Installed it and gave it a quick test with the authorization review prompt — the structured output is solid. Nice work.